[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 82795] New: kate crashes if Python highlighting is used
From:       Horst Knorr <hk_classes () knoda ! org>
Date:       2004-06-03 18:04:28
Message-ID: 20040603180428.23970.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
      
http://bugs.kde.org/show_bug.cgi?id=82795      
           Summary: kate crashes if Python highlighting is used
           Product: kate
           Version: 2.2.1
          Platform: unspecified
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: crash
          Priority: NOR
         Component: general
        AssignedTo: kwrite-devel kde org
        ReportedBy: hk_classes knoda org


Version:           2.2.1 (using KDE 3.2.2, compiled sources)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:                Linux (i686) release 2.4.25

If you copy the following script in Kate and then switch to Python highlighting, Kate \
-and other apps that use the kate part - crashes.


mymakro(hk_this,"das Makro!")

redcolour =hk_colour(255,0,0)
greencolour =hk_colour(0,255,0)
form=cast_form(hk_this.presentation())
label=form.get_visible("NeuesFeld_5")
if hk_this.foregroundcolour().red()!=255:
	hk_this.set_foregroundcolour(redcolour)
	hk_this.set_backgroundcolour(greencolour)
	hk_this.set_label("grÃŒner Knopf")
	label.set_backgroundcolour(greencolour)
else:
	hk_this.set_foregroundcolour(greencolour)
	hk_this.set_backgroundcolour(redcolour)
	hk_this.set_label("roter Knopf")
	label.set_backgroundcolour(redcolour)

hk_this.set_position(hk_this.x()+50,hk_this.y()+10)
parent =cast_form(hk_this.presentation())
parent.get_visible("NeuesFeld_2")




The crash output  of my program:

[New Thread 16384 (LWP 11622)]
0x416cacf7 in waitpid () from /lib/libpthread.so.0
#0  0x416cacf7 in waitpid () from /lib/libpthread.so.0
#1  0x40a07fe2 in KCrash::defaultCrashHandler(int) ()
   from /opt/kde3/lib/libkdecore.so.4
#2  0x416c9895 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x4211c7e9 in TextLine::indentDepth(unsigned) const ()
   from /opt/kde3/lib/kde3/libkatepart.so
#5  0x420c8943 in KateBuffer::needHighlight(KateBufBlock*, unsigned, unsigned)
    () from /opt/kde3/lib/kde3/libkatepart.so
#6  0x420c91f3 in KateBuffer::updateHighlighting(unsigned, unsigned, bool) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#7  0x420c9375 in KateBuffer::pleaseHighlight(unsigned, unsigned) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#8  0x420c83ca in KateBuffer::line(unsigned) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#9  0x420f9229 in KateDocument::kateTextLine(unsigned) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#10 0x4214a9ff in KateViewInternal::textLine(int) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#11 0x42143af0 in KateViewInternal::range(int, LineRange const*) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#12 0x421441e2 in KateViewInternal::range(KateTextCursor const&) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#13 0x421408d5 in KateViewInternal::updateView(bool, int) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#14 0x42127bb9 in KateView::updateView(bool) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#15 0x420f640e in KateDocument::tagAll() ()
   from /opt/kde3/lib/kde3/libkatepart.so
#16 0x420f194d in KateDocument::makeAttribs() ()
   from /opt/kde3/lib/kde3/libkatepart.so
#17 0x420edb23 in KateDocument::internalSetHlMode(unsigned) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#18 0x420eda81 in KateDocument::setHlMode(unsigned) ()
   from /opt/kde3/lib/kde3/libkatepart.so
#19 0x400cd49a in hk_kdeinterpreterdialog::exec(int, std::string const&) (
    this=0x8159540, rownumber=0, w= 0xbfffe680)
    at hk_kdeinterpreterdialog.cpp:250
#20 0x4010efc8 in hk_kdeproperty::pushactionbutton_clicked(int, std::string const&) \
(this=0x8235310, rownumber=0, warning= 0xbfffe680)  at hk_kdeproperty.cpp:1130
#21 0x4010eeb7 in hk_kdeproperty::pushactionbutton_clicked() (this=0x8235310)
    at /usr/include/g++/bits/stl_alloc.h:652
#22 0x4016f024 in hk_kdepropertyeditorbase::qt_invoke(int, QUObject*) (
    this=0x8235310, _id=50, _o=0xbfffe770) at hk_kdepropertybase.moc.cpp:137
#23 0x40179b1c in hk_kdeproperty::qt_invoke(int, QUObject*) (this=0x8235310, 
    _id=50, _o=0x8235310) at hk_kdeproperty.moc.cpp:263
#24 0x40de07e1 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#25 0x40de05b7 in QObject::activate_signal(int) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#26 0x4112c82c in QButton::clicked() () from /usr/lib/qt3/lib/libqt-mt.so.3
#27 0x40e747bc in QButton::mouseReleaseEvent(QMouseEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#28 0x40e173d6 in QWidget::event(QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#29 0x40d8219f in QApplication::internalNotify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#30 0x40d81553 in QApplication::notify(QObject*, QEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#31 0x409648c1 in KApplication::notify(QObject*, QEvent*) ()
   from /opt/kde3/lib/libkdecore.so.4
#32 0x40d12cd8 in QETWidget::translateMouseEvent(_XEvent const*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#33 0x40d10b3d in QApplication::x11ProcessEvent(_XEvent*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#34 0x40d27ded in QEventLoop::processEvents(unsigned) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#35 0x40d94643 in QEventLoop::enterLoop() ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
#36 0x40d94536 in QEventLoop::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#37 0x40d823bf in QApplication::exec() () from /usr/lib/qt3/lib/libqt-mt.so.3
#38 0x0805703d in main (argc=1, argv=0xbffff2d4) at main.cpp:91
#39 0x418048ae in __libc_start_main () from /lib/libc.so.6


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic