Hi,

We have strange freeze with the attached script. It enables QsciLexerDiff
and contains several tabs, alphabets and russian characters.

Environment:
Debian GNU/Linux (sid)
Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.32-1 x86_64 GNU/Linux

libqt4-core       4:4.8.2+dfsg-2
libqscintilla2-8  2.6.2-2

I've attached the backtrace captured by gdb.

Regards,
Starting program: /usr/bin/python thg-issue2271-sci.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGINT, Interrupt.
0x00007ffff1414037 in Document::SafeSegment(char const*, int, int) () from 
/usr/lib/libqscintilla2.so.8
#0  0x00007ffff1414037 in Document::SafeSegment(char const*, int, int) () from 
/usr/lib/libqscintilla2.so.8
#1  0x00007ffff143cac8 in PositionCache::MeasureWidths(Surface*, ViewStyle&, 
unsigned int, char const*, unsigned int, int*, Document*) () from 
/usr/lib/libqscintilla2.so.8
#2  0x00007ffff1425438 in Editor::LayoutLine(int, Surface*, ViewStyle&, 
LineLayout*, int) () from /usr/lib/libqscintilla2.so.8
#3  0x00007ffff142bf1c in Editor::Paint(Surface*, PRectangle) () from 
/usr/lib/libqscintilla2.so.8
#4  0x00007ffff12b5359 in QsciScintillaQt::paintEvent(QPaintEvent*) () from 
/usr/lib/libqscintilla2.so.8
#5  0x00007ffff16efc2b in ?? () from 
/usr/lib/python2.7/dist-packages/PyQt4/Qsci.so
#6  0x00007ffff5942dc2 in QWidget::event (this=0xd435b0, event=0x7fffffffc910) 
at kernel/qwidget.cpp:8517
#7  0x00007ffff5cedd56 in QFrame::event (this=0xd435b0, e=0x7fffffffc910) at 
widgets/qframe.cpp:557
#8  0x00007ffff175331b in ?? () from 
/usr/lib/python2.7/dist-packages/PyQt4/Qsci.so
#9  0x00007ffff53becc6 in 
QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, 
receiver=0xd7f3b0, event=0x7fffffffc910) at kernel/qcoreapplication.cpp:1025
#10 0x00007ffff58f36dc in QApplicationPrivate::notify_helper 
(this=this@entry=0x9145b0, receiver=receiver@entry=0xd7f3b0, 
e=e@entry=0x7fffffffc910) at kernel/qapplication.cpp:4552
#11 0x00007ffff58f7b8a in QApplication::notify (this=0xca90d0, 
receiver=0xd7f3b0, e=0x7fffffffc910) at kernel/qapplication.cpp:4417
#12 0x00007ffff691fc66 in notify (a1=0x7fffffffc910, a0=0xd7f3b0, 
this=0xca90d0) at sipQtGuipart9.cpp:35916
#13 sipQApplication::notify (this=0xca90d0, a0=0xd7f3b0, a1=0x7fffffffc910) at 
sipQtGuipart9.cpp:35908
#14 0x00007ffff53beb5e in QCoreApplication::notifyInternal (this=0xca90d0, 
receiver=0xd7f3b0, event=0x7fffffffc910) at kernel/qcoreapplication.cpp:915
#15 0x00007ffff593ead4 in sendSpontaneousEvent (event=0x7fffffffc910, 
receiver=0xd7f3b0) at 
../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#16 QWidgetPrivate::drawWidget (this=this@entry=0xd40ea0, 
pdev=pdev@entry=0xf3fc60, rgn=..., offset=..., flags=flags@entry=4, 
sharedPainter=sharedPainter@entry=0x0, 
backingStore=backingStore@entry=0xf3b510) at kernel/qwidget.cpp:5594
#17 0x00007ffff593f5cf in QWidgetPrivate::paintSiblingsRecursive 
(this=this@entry=0xd230f0, pdev=pdev@entry=0xf3fc60, siblings=..., 
index=<optimized out>, index@entry=2, rgn=..., offset=..., flags=flags@entry=4, 
sharedPainter=sharedPainter@entry=0x0, 
backingStore=backingStore@entry=0xf3b510) at kernel/qwidget.cpp:5803
#18 0x00007ffff593f414 in QWidgetPrivate::paintSiblingsRecursive 
(this=0xd230f0, pdev=0xf3fc60, siblings=..., index=2, rgn=..., offset=..., 
flags=4, sharedPainter=0x0, backingStore=0xf3b510) at kernel/qwidget.cpp:5790
#19 0x00007ffff593e665 in QWidgetPrivate::drawWidget (this=0xd230f0, 
pdev=0xf3fc60, rgn=..., offset=..., flags=<optimized out>, sharedPainter=0x0, 
backingStore=0xf3b510) at kernel/qwidget.cpp:5647
#20 0x00007ffff5b08f48 in QWidgetBackingStore::sync (this=this@entry=0xf3b510) 
at painting/qbackingstore.cpp:1373
#21 0x00007ffff5b0930e in QWidgetBackingStore::sync (this=0xf3b510, 
exposedWidget=0xd435b0, exposedRegion=...) at painting/qbackingstore.cpp:1161
#22 0x00007ffff596d20a in QETWidget::translatePaintEvent 
(this=this@entry=0xd435b0, event=event@entry=0x7fffffffd900) at 
kernel/qapplication_x11.cpp:5237
#23 0x00007ffff596e155 in QApplication::x11ProcessEvent (this=0xca90d0, 
event=0x7fffffffd900) at kernel/qapplication_x11.cpp:3546
#24 0x00007ffff5994bc2 in x11EventSourceDispatch (s=0xae83d0, callback=0, 
user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#25 0x00007ffff483c355 in g_main_context_dispatch () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007ffff483c688 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007ffff483c744 in g_main_context_iteration () from 
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff53ed276 in QEventDispatcherGlib::processEvents (this=0x914a00, 
flags=...) at kernel/qeventdispatcher_glib.cpp:424
#29 0x00007ffff599483e in QGuiEventDispatcherGlib::processEvents 
(this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#30 0x00007ffff53bd8af in QEventLoop::processEvents 
(this=this@entry=0x7fffffffdcd0, flags=...) at kernel/qeventloop.cpp:149
#31 0x00007ffff53bdb38 in QEventLoop::exec (this=0x7fffffffdcd0, flags=...) at 
kernel/qeventloop.cpp:204
#32 0x00007ffff53c2cf8 in QCoreApplication::exec () at 
kernel/qcoreapplication.cpp:1187
#33 0x00007ffff68e1b3b in meth_QApplication_exec_ (sipArgs=<optimized out>) at 
sipQtGuipart9.cpp:37856
#34 0x00000000004b1764 in call_function (oparg=<optimized out>, 
pp_stack=0x7fffffffdec0) at ../Python/ceval.c:4021
#35 PyEval_EvalFrameEx (f=f@entry=Frame 0xa26860, for file 
thg-issue2271-sci.py, line 13, in <module> (), throwflag=throwflag@entry=0) at 
../Python/ceval.c:2666
#36 0x00000000004b9158 in PyEval_EvalCodeEx (co=co@entry=0x97ebb0, 
globals=globals@entry={'sci': <QsciScintilla at remote 0xb6f440>, 
'QsciLexerDiff': <PyQt4.QtCore.pyqtWrapperType at remote 0xcacfe0>, 
'__builtins__': <module at remote 0x7ffff7f9aad0>, '__file__': 
'thg-issue2271-sci.py', 'QApplication': <PyQt4.QtCore.pyqtWrapperType at remote 
0xb15b30>, 'QsciScintilla': <PyQt4.QtCore.pyqtWrapperType at remote 0xcb70b0>, 
'__package__': None, 'sys': <module at remote 0x7ffff7f9ab78>, '__name__': 
'__main__', 'app': <QApplication at remote 0xb6f3b0>, '__doc__': None}, 
locals=locals@entry={'sci': <QsciScintilla at remote 0xb6f440>, 
'QsciLexerDiff': <PyQt4.QtCore.pyqtWrapperType at remote 0xcacfe0>, 
'__builtins__': <module at remote 0x7ffff7f9aad0>, '__file__': 
'thg-issue2271-sci.py', 'QApplication': <PyQt4.QtCore.pyqtWrapperType at remote 
0xb15b30>, 'QsciScintilla': <PyQt4.QtCore.pyqtWrapperType at remote 0xcb70b0>, 
'__package__': None, 'sys': <module at remote 0x7ffff7f9ab78>, '__
 name__': '__main__', 'app': <QApplication at remote 0xb6f3b0>, '__doc__': 
None}, args=args@entry=0x0, argcount=argcount@entry=0, kws=kws@entry=0x0, 
kwcount=kwcount@entry=0, defs=defs@entry=0x0, defcount=defcount@entry=0, 
closure=closure@entry=0x0) at ../Python/ceval.c:3253
#37 0x0000000000541fd3 in PyEval_EvalCode (locals={'sci': <QsciScintilla at 
remote 0xb6f440>, 'QsciLexerDiff': <PyQt4.QtCore.pyqtWrapperType at remote 
0xcacfe0>, '__builtins__': <module at remote 0x7ffff7f9aad0>, '__file__': 
'thg-issue2271-sci.py', 'QApplication': <PyQt4.QtCore.pyqtWrapperType at remote 
0xb15b30>, 'QsciScintilla': <PyQt4.QtCore.pyqtWrapperType at remote 0xcb70b0>, 
'__package__': None, 'sys': <module at remote 0x7ffff7f9ab78>, '__name__': 
'__main__', 'app': <QApplication at remote 0xb6f3b0>, '__doc__': None}, 
globals={'sci': <QsciScintilla at remote 0xb6f440>, 'QsciLexerDiff': 
<PyQt4.QtCore.pyqtWrapperType at remote 0xcacfe0>, '__builtins__': <module at 
remote 0x7ffff7f9aad0>, '__file__': 'thg-issue2271-sci.py', 'QApplication': 
<PyQt4.QtCore.pyqtWrapperType at remote 0xb15b30>, 'QsciScintilla': 
<PyQt4.QtCore.pyqtWrapperType at remote 0xcb70b0>, '__package__': None, 'sys': 
<module at remote 0x7ffff7f9ab78>, '__name__': '__main__', 'app': <QApplication 
at remote
  0xb6f3b0>, '__doc__': None}, co=0x97ebb0) at ../Python/ceval.c:667
#38 run_mod (mod=<optimized out>, filename=<optimized out>, globals={'sci': 
<QsciScintilla at remote 0xb6f440>, 'QsciLexerDiff': 
<PyQt4.QtCore.pyqtWrapperType at remote 0xcacfe0>, '__builtins__': <module at 
remote 0x7ffff7f9aad0>, '__file__': 'thg-issue2271-sci.py', 'QApplication': 
<PyQt4.QtCore.pyqtWrapperType at remote 0xb15b30>, 'QsciScintilla': 
<PyQt4.QtCore.pyqtWrapperType at remote 0xcb70b0>, '__package__': None, 'sys': 
<module at remote 0x7ffff7f9ab78>, '__name__': '__main__', 'app': <QApplication 
at remote 0xb6f3b0>, '__doc__': None}, locals={'sci': <QsciScintilla at remote 
0xb6f440>, 'QsciLexerDiff': <PyQt4.QtCore.pyqtWrapperType at remote 0xcacfe0>, 
'__builtins__': <module at remote 0x7ffff7f9aad0>, '__file__': 
'thg-issue2271-sci.py', 'QApplication': <PyQt4.QtCore.pyqtWrapperType at remote 
0xb15b30>, 'QsciScintilla': <PyQt4.QtCore.pyqtWrapperType at remote 0xcb70b0>, 
'__package__': None, 'sys': <module at remote 0x7ffff7f9ab78>, '__name__': 
'__main__', 'app': <QAppl
 ication at remote 0xb6f3b0>, '__doc__': None}, flags=<optimized out>, 
arena=<optimized out>) at ../Python/pythonrun.c:1365
#39 0x000000000044a52b in PyRun_FileExFlags (fp=fp@entry=0xa27d30, 
filename=filename@entry=0x7fffffffe5af "thg-issue2271-sci.py", 
start=start@entry=257, globals=globals@entry={'sci': <QsciScintilla at remote 
0xb6f440>, 'QsciLexerDiff': <PyQt4.QtCore.pyqtWrapperType at remote 0xcacfe0>, 
'__builtins__': <module at remote 0x7ffff7f9aad0>, '__file__': 
'thg-issue2271-sci.py', 'QApplication': <PyQt4.QtCore.pyqtWrapperType at remote 
0xb15b30>, 'QsciScintilla': <PyQt4.QtCore.pyqtWrapperType at remote 0xcb70b0>, 
'__package__': None, 'sys': <module at remote 0x7ffff7f9ab78>, '__name__': 
'__main__', 'app': <QApplication at remote 0xb6f3b0>, '__doc__': None}, 
locals=locals@entry={'sci': <QsciScintilla at remote 0xb6f440>, 
'QsciLexerDiff': <PyQt4.QtCore.pyqtWrapperType at remote 0xcacfe0>, 
'__builtins__': <module at remote 0x7ffff7f9aad0>, '__file__': 
'thg-issue2271-sci.py', 'QApplication': <PyQt4.QtCore.pyqtWrapperType at remote 
0xb15b30>, 'QsciScintilla': <PyQt4.QtCore.pyqtWrapperType a
 t remote 0xcb70b0>, '__package__': None, 'sys': <module at remote 
0x7ffff7f9ab78>, '__name__': '__main__', 'app': <QApplication at remote 
0xb6f3b0>, '__doc__': None}, closeit=closeit@entry=1, 
flags=flags@entry=0x7fffffffe120) at ../Python/pythonrun.c:1351
#40 0x000000000044aa25 in PyRun_SimpleFileExFlags (fp=fp@entry=0xa27d30, 
filename=<optimized out>, filename@entry=0x7fffffffe5af "thg-issue2271-sci.py", 
closeit=closeit@entry=1, flags=flags@entry=0x7fffffffe120) at 
../Python/pythonrun.c:943
#41 0x000000000044aae5 in PyRun_AnyFileExFlags (fp=fp@entry=0xa27d30, 
filename=filename@entry=0x7fffffffe5af "thg-issue2271-sci.py", 
closeit=closeit@entry=1, flags=flags@entry=0x7fffffffe120) at 
../Python/pythonrun.c:747
#42 0x000000000044b616 in Py_Main (argc=<optimized out>, argv=0x7fffffffe2d8) 
at ../Modules/main.c:639
#43 0x00007ffff6fb5ead in __libc_start_main (main=<optimized out>, 
argc=<optimized out>, ubp_av=<optimized out>, init=<optimized out>, 
fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffe2c8) at 
libc-start.c:228
#44 0x00000000004c8d81 in _start ()
#!/usr/bin/env python
import sys
from PyQt4.QtGui import QApplication
from PyQt4.Qsci import QsciScintilla, QsciLexerDiff

app = QApplication(sys.argv)
sci = QsciScintilla()
sci.setUtf8(True)
sci.setLexer(QsciLexerDiff(sci))
sci.show()
sci.setText('+' + '\t' * 2 + 'a' * 9 + u'\u0440' * 657)
app.exec_()
_______________________________________________
QScintilla mailing list
[email protected]
http://www.riverbankcomputing.com/mailman/listinfo/qscintilla

Reply via email to