texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texmacs-dev] Another fix for Qt/X11 4.4.3 (but not enough....)


From: Massimiliano Gubinelli
Subject: [Texmacs-dev] Another fix for Qt/X11 4.4.3 (but not enough....)
Date: Mon, 6 Oct 2008 14:13:41 +0200

I just commited another patch which should fix a crash while rendering chars and tm_buttons. 
Now on my Linux machine with Qt/X11 4.4 (on a remote connection) the program crashes if trying to display a dialog box otherwise seems to work fine.

The backtrace follows. I do not quite really undestand the reason but as Abdelrazak suggested this should be related to (maybe nested) painters not correclty handled by TeXmacs. 

Massimiliano


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208936768 (LWP 2691)]
qt_memfill32_sse2 (dest=0xa746a60, value=0, count=221)
    at /usr/lib/gcc/i386-redhat-linux/3.4.6/include/emmintrin.h:607
607  __u.__a[3] = __Z;
(gdb) bt
#0  qt_memfill32_sse2 (dest=0xa746a60, value=0, count=221)
    at /usr/lib/gcc/i386-redhat-linux/3.4.6/include/emmintrin.h:607
#1  0x00a90e68 in QImage::fill (this=0xbff879dc, pixel=0)
    at ../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_p.h:1445
#2  0x00ae6516 in QPainterPrivate::draw_helper (this=0xa6c5908, 
    address@hidden, op=Variable "op" is not available.
) at painting/qpainter.cpp:339
#3  0x00ae829e in QPainter::drawRects (this=0xbff893cc, rects=0xbff8925c, 
    rectCount=1) at painting/qpainter.cpp:3006
#4  0x00ae8396 in QPainter::fillRect (this=0xbff893cc, address@hidden, 
    address@hidden)
    at ../../include/QtGui/../../src/gui/painting/qpainter.h:587
#5  0x00cf2a62 in QPlastiqueStyle::drawComplexControl (this=0xa140260, 
    control=QStyle::CC_ComboBox, option=0xbff8936c, painter=0xbff893cc, 
    widget=0xa1ccb48)
    at ../../include/QtCore/../../src/corelib/tools/qrect.h:302
#6  0x00d537a3 in QComboBox::paintEvent (this=0xa1ccb48)
    at ../../include/QtGui/../../src/gui/painting/qstylepainter.h:90
#7  0x00a3e544 in QWidget::event (this=0xa1ccb48, event=0xbff899fc)
    at kernel/qwidget.cpp:7301
#8  0x00d54dbc in QComboBox::event (this=0xa1ccb48, event=0xbff899fc)
    at widgets/qcombobox.cpp:2633
#9  0x009ed68e in QApplicationPrivate::notify_helper (this=0xa10ea20, 
    receiver=0xa1ccb48, e=0xbff899fc) at kernel/qapplication.cpp:3803
#10 0x009ed864 in QApplication::notify (this=0xa0fd6a0, receiver=0xa1ccb48, 
    e=0xbff899fc) at kernel/qapplication.cpp:3768
#11 0x005e47de in QCoreApplication::notifyInternal (this=0xa0fd6a0, 
    receiver=0xa1ccb48, event=0xbff899fc) at kernel/qcoreapplication.cpp:587
#12 0x00a49077 in qt_sendSpontaneousEvent (receiver=0xa1ccb48, event=0xe)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:212
#13 0x00a42c91 in QWidgetPrivate::drawWidget (this=0xa5567d8, pdev=0xa1de0b4, 
    address@hidden, address@hidden, flags=4, sharedPainter=0xa5245b0)
    at kernel/qwidget.cpp:4636
#14 0x00a436f7 in QWidgetPrivate::paintSiblingsRecursive (this=0xa7446e0, 
    pdev=0xa1de0b4, address@hidden, index=3, address@hidden, 
    address@hidden, flags=4, sharedPainter=0xa5245b0)
    at ../../include/QtGui/../../src/gui/kernel/qwidget.h:139
#15 0x00a435ba in QWidgetPrivate::paintSiblingsRecursive (this=0xa7446e0, 
    pdev=0xa1de0b4, address@hidden, index=4, address@hidden, 
    address@hidden, flags=4, sharedPainter=0xa5245b0)
    at kernel/qwidget.cpp:4721
#16 0x00a429b3 in QWidgetPrivate::drawWidget (this=0xa7446e0, pdev=0xa1de0b4, 
    address@hidden, address@hidden, flags=4, sharedPainter=0xa5245b0)
    at ../../include/QtCore/../../src/corelib/tools/qlist.h:113
#17 0x00baf376 in QWidgetBackingStore::cleanRegion (this=0xa612490, 
    address@hidden, widget=0xbff8a99c, recursiveCopyToScreen=true)
    at ../../include/QtGui/../../src/gui/kernel/qwidget.h:139
#18 0x00baf53b in qt_syncBackingStore (rgn=
        {d = 0xa44c448, static shared_empty = {ref = {_q_value = 936}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, widget=0xbff8a99c, recursive=3)
    at painting/qbackingstore.cpp:232
#19 0x00baf58a in qt_syncBackingStore (widget=0xbff8a99c)
    at painting/qbackingstore.cpp:239
#20 0x00a5710e in QETWidget::translatePaintEvent (this=0xbff8a99c, 
    event=0xbff8a65c) at kernel/qapplication_x11.cpp:4628
#21 0x00a58974 in QApplication::x11ProcessEvent (this=0xa0fd6a0, 
    event=0xbff8a65c) at kernel/qapplication_x11.cpp:3060
#22 0x00a7c359 in x11EventSourceDispatch (s=0xa0ed368, callback=0, 
    user_data=0x0)
    at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:98
#23 0x0031974b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#24 0x0031b1d2 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#25 0x0031b6b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#26 0x0060e295 in QEventDispatcherGlib::processEvents (this=0xa0e9650, flags=Cannot access memory at address 0x1
)
    at kernel/qeventdispatcher_glib.cpp:321
#27 0x00a7bd8f in QGuiEventDispatcherGlib::processEvents (this=0xa0e9650, 
    flags=Cannot access memory at address 0x3d
) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1909
#28 0x005e3e08 in QEventLoop::processEvents (this=0xbff8a93c, flags={i = 4})
    at ../../include/QtCore/../../src/corelib/global/qglobal.h:1909
---Type <return> to continue, or q <return> to quit---
#29 0x005e3fa6 in QEventLoop::exec (this=0xbff8a93c, flags={i = 0})
    at ../../include/QtCore/../../src/corelib/global/qglobal.h:1925
#30 0x00e5c409 in QDialog::exec (this=0xbff8a99c)
    at ../../include/QtCore/../../src/corelib/global/qglobal.h:1910
#31 0x00e7935e in QInputDialog::getItem (parent=0x0, address@hidden, 
    address@hidden, address@hidden, current=0, editable=Variable "editable" is not available.
)
    at dialogs/qinputdialog.cpp:516
#32 0x082de954 in qt_tm_widget_rep::do_interactive_prompt (this=0xa1a40a0)
    at /home1/mgubi/t/local/include/QtCore/qstring.h:386
#33 0x082edc3e in QTMInteractiveInputHelper::qt_metacall (this=0xa1a40c8, 
    _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0xbff8ab0c)
    at ./Plugins/Qt/QTMInteractiveInputHelper.moc:65
#34 0x005f518e in QMetaObject::activate (sender=0xa589288, 
    from_signal_index=4, to_signal_index=4, argv=0x3)
    at kernel/qobject.cpp:3022
#35 0x005f574f in QMetaObject::activate (sender=0xa589288, m=0x6c5afc, 
    local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3092
#36 0x005ff92f in QSingleShotTimer::timeout (this=0xa589288)
    at .moc/release-shared/qtimer.moc:74
#37 0x005ff9cc in QSingleShotTimer::timerEvent (this=0xa589288)
    at kernel/qtimer.cpp:294
#38 0x005f5bc5 in QObject::event (this=0xa589288, e=0xbff8b060)
    at kernel/qobject.cpp:1111
#39 0x009ed68e in QApplicationPrivate::notify_helper (this=0xa10ea20, 
    receiver=0xa589288, e=0xbff8b060) at kernel/qapplication.cpp:3803
#40 0x009ed7c8 in QApplication::notify (this=0xa0fd6a0, receiver=0xa589288, 
    e=0xbff8b060) at kernel/qapplication.cpp:3768
#41 0x005e47de in QCoreApplication::notifyInternal (this=0xa0fd6a0, 
    receiver=0xa589288, event=0xbff8b060) at kernel/qcoreapplication.cpp:587
#42 0x00610c61 in QTimerInfoList::activateTimers (this=0xa11834c)
    at kernel/qcoreapplication.h:209
#43 0x0060dacb in timerSourceDispatch (source=0xa118318)
    at kernel/qeventdispatcher_glib.cpp:160
#44 0x0031974b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#45 0x0031b1d2 in g_main_context_acquire () from /usr/lib/libglib-2.0.so.0
#46 0x0031b6b8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#47 0x0060e295 in QEventDispatcherGlib::processEvents (this=0xa0e9650, flags=Cannot access memory at address 0x1
)
    at kernel/qeventdispatcher_glib.cpp:321
#48 0x00a7bd8f in QGuiEventDispatcherGlib::processEvents (this=0xa0e9650, 
    flags=Cannot access memory at address 0x3d
) at ../../include/QtCore/../../src/corelib/global/qglobal.h:1909
#49 0x005e874e in QCoreApplication::processEvents (flags={i = 4})
    at ../../include/QtCore/../../src/corelib/global/qglobal.h:1909
#50 0x082e230a in qt_gui_rep::event_loop (this=0xa14e770)
    at /home1/mgubi/t/local/include/QtCore/qglobal.h:1910
#51 0x082e29ce in gui_start_loop () at ./Plugins/Qt/qt_gui.cpp:609
#52 0x0832e47e in TeXmacs_main (argc=1, argv=0xbff8b7f4)
---Type <return> to continue, or q <return> to quit---
    at ./Texmacs/Texmacs/texmacs.cpp:234
#53 0x081d46d6 in new_call_back (closure=0x0, argc=1, argv=0xbff8b7f4)
    at ./Guile/Scheme/evaluate.cpp:29
#54 0x003ee06c in invoke_main_func (body_data=0xbff8b6e0) at init.c:367
#55 0x003c71c3 in c_body (d=0xbff8b660) at continuations.c:350
#56 0x00426cc9 in scm_c_catch (tag=0x104, body=0x3c71b4 <c_body>, 
    body_data=0xbff8b660, handler=0x3c71d0 <c_handler>, 
    handler_data=0xbff8b660, 
    pre_unwind_handler=0x4274a0 <scm_handle_by_message_noexit>, 
    pre_unwind_handler_data=0x0) at throw.c:200
#57 0x003c7193 in scm_i_with_continuation_barrier (body=0x3c71b4 <c_body>, 
    body_data=0xbff8b660, handler=0x3c71d0 <c_handler>, 
    handler_data=0xbff8b660, 
    pre_unwind_handler=0x4274a0 <scm_handle_by_message_noexit>, 
    pre_unwind_handler_data=0x0) at continuations.c:326
#58 0x003c7223 in scm_c_with_continuation_barrier (func=0x3, data="">
    at continuations.c:368
#59 0x00424ec4 in scm_i_with_guile_and_parent (
    func=0x3ee03c <invoke_main_func>, data="" parent=0x0)
    at threads.c:695
#60 0x00424f0c in scm_with_guile (func=0x3ee03c <invoke_main_func>, 
    data="" at threads.c:683
#61 0x003ee01f in scm_boot_guile (argc=1, argv=0xbff8b7f4, 
    main_func=0x81d46c0 <new_call_back>, closure=0x0) at init.c:350
#62 0x081d46fc in start_guile (argc=1, argv=0xbff8b7f4, 
    call_back=0x832c5e0 <TeXmacs_main(int, char**)>)
    at ./Guile/Scheme/evaluate.cpp:37
#63 0x0832ee16 in main (argc=1, argv=0xbff8b7f4)
    at ./Texmacs/Texmacs/texmacs.cpp:301



reply via email to

[Prev in Thread] Current Thread [Next in Thread]