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

List:       kwrite-devel
Subject:    Re: New instabilities in Kate 4.5 as used by KDevelop
From:       Christoph Cullmann <cullmann () absint ! de>
Date:       2010-04-29 14:59:32
Message-ID: 4BD99ED4.2020805 () absint ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On 04/29/2010 04:31 PM, Milian Wolff wrote:
> Milian Wolff, 29.04.2010:
>    
>> Hey all,
>>
>> some of the recent changes make it no fun to use Kate 4.5 in KDevelop once
>> again. Note that with my hack before it actually worked quite well, but now
>> something differently broke and I'm not sure where to look at. Take this
>> for example:
>>      
> Note: since disabling autobrace, I didn't get the below crash anylonger.
>    
The perhaps Bernhard needs to look at it again, as he did the changes to 
avoid the other crash with that plugin.

>    
>> Thread 1 (Thread 0x7f0b9bba6750 (LWP 16869)):
>> [KCrash Handler]
>> #5  0x00007f0b708943f2 in KateSmartRange::translated (this=0x7f0b80197430,
>> edit=...) at
>> /home/milian/projects/kde4/kate/part/smart/katesmartrange.cpp:129 #6
>> 0x00007f0b708971f5 in KateSmartManager::feedbackRange (this=0x1a661d0,
>> edit=..., range=0x7f0b80197430) at
>> /home/milian/projects/kde4/kate/part/smart/katesmartmanager.cpp:464
>> #7  0x00007f0b70896dcd in KateSmartManager::slotTextChanged
>> (this=0x1a661d0, edit=0x83b2e40) at
>> /home/milian/projects/kde4/kate/part/smart/katesmartmanager.cpp:408
>> #8  0x00007f0b708982de in KateSmartManager::qt_metacall (this=0x1a661d0,
>> _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff556a83d0)
>>      at /home/milian/projects/.build/kde4/kate/part/katesmartmanager.moc:80
>> #9  0x00007f0b9853bc0f in QMetaObject::activate (sender=0x1a66070, m=<value
>> optimized out>, local_signal_index=<value optimized out>,
>> argv=0x7f0b9a1d37b0) at kernel/qobject.cpp:3293
>> #10 0x00007f0b7084df7d in KateEditHistory::editDone (this=0x1a66070,
>> _t1=0x83b2e40) at
>> /home/milian/projects/.build/kde4/kate/part/kateedit.moc:84 #11
>> 0x00007f0b7084db80 in KateEditHistory::doEdit (this=0x1a66070,
>> edit=0x83b2e40) at
>> /home/milian/projects/kde4/kate/part/document/kateedit.cpp:201
>> #12 0x00007f0b70824b40 in KateDocument::editInsertText (this=0x1a653c0,
>> line=257, col=31, s=..., editSource=Kate::NoEditSource) at
>> /home/milian/projects/kde4/kate/part/document/katedocument.cpp:1151
>> #13 0x00007f0b7082280a in KateDocument::insertText (this=0x1a653c0,
>> position=..., text=..., block=false) at
>> /home/milian/projects/kde4/kate/part/document/katedocument.cpp:646
>> #14 0x00007f0b7082d2d8 in KateDocument::typeChars (this=0x1a653c0,
>> view=0x1e230a0, chars=...) at
>> /home/milian/projects/kde4/kate/part/document/katedocument.cpp:2738
>> #15 0x00007f0b708e8a4a in KateViewInternal::keyPressEvent (this=0x1e23940,
>> e=0x7fff556a9230) at
>> /home/milian/projects/kde4/kate/part/view/kateviewinternal.cpp:2424
>> #16 0x00007f0b708e7ae9 in KateViewInternal::eventFilter (this=0x1e23940,
>> obj=0x1e23940, e=0x7fff556a9230) at
>> /home/milian/projects/kde4/kate/part/view/kateviewinternal.cpp:2224
>> #17 0x00007f0b98528227 in
>> QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<value
>> optimized out>, receiver=0x1e23940, event=0x7fff556a9230) at
>> kernel/qcoreapplication.cpp:819
>> #18 0x00007f0b976c70fc in QApplicationPrivate::notify_helper
>> (this=0xd67cb0, receiver=0x1e23940, e=0x7fff556a9230) at
>> kernel/qapplication.cpp:4296 #19 0x00007f0b976ceee1 in
>> QApplication::notify (this=<value optimized out>, receiver=0x1e23940,
>> e=0x7fff556a9230) at kernel/qapplication.cpp:3763 #20 0x00007f0b98cec076
>> in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
>> #21 0x00007f0b98528e0c in QCoreApplication::notifyInternal
>> (this=0x7fff556aa350, receiver=0x1e23940, event=0x7fff556a9230) at
>> kernel/qcoreapplication.cpp:704
>> #22 0x00007f0b97771c1a in QKeyMapper::sendKeyEvent (keyWidget=0x1e23940,
>> grab=<value optimized out>, type=QEvent::KeyPress, code=46,
>> modifiers=<value optimized out>, text=..., autorepeat=false,
>>      count=1, nativeScanCode=60, nativeVirtualKey=46, nativeModifiers=0) at
>> kernel/qkeymapper_x11.cpp:1861
>> #23 0x00007f0b97774190 in QKeyMapperPrivate::translateKeyEvent
>> (this=0x221c280, keyWidget=0x1e23940, event=<value optimized out>, grab=40)
>> at kernel/qkeymapper_x11.cpp:1831
>> #24 0x00007f0b9774b734 in QApplication::x11ProcessEvent (this=<value
>> optimized out>, event=0x7fff556a9e00) at kernel/qapplication_x11.cpp:3394
>> #25 0x00007f0b97777322 in x11EventSourceDispatch (s=0x21d6d50,
>> callback=<value optimized out>, user_data=<value optimized out>) at
>> kernel/qguieventdispatcher_glib.cpp:146
>> #26 0x00007f0b91c38bce in g_main_context_dispatch () from
>> /lib/libglib-2.0.so.0
>> #27 0x00007f0b91c3c598 in ?? () from /lib/libglib-2.0.so.0
>> #28 0x00007f0b91c3c6c0 in g_main_context_iteration () from
>> /lib/libglib-2.0.so.0
>> #29 0x00007f0b98552333 in QEventDispatcherGlib::processEvents
>> (this=0xd355a0, flags=<value optimized out>) at
>> kernel/qeventdispatcher_glib.cpp:412 #30 0x00007f0b97776f0e in
>> QGuiEventDispatcherGlib::processEvents
>> (this=0x7f0b82efbbc8, flags=<value optimized out>) at
>> kernel/qguieventdispatcher_glib.cpp:204
>> #31 0x00007f0b98527732 in QEventLoop::processEvents (this=<value optimized
>> out>, flags=) at kernel/qeventloop.cpp:149
>> #32 0x00007f0b98527b0c in QEventLoop::exec (this=0x7fff556aa130, flags=) at
>> kernel/qeventloop.cpp:201
>> #33 0x00007f0b9852b84b in QCoreApplication::exec () at
>> kernel/qcoreapplication.cpp:981
>> #34 0x0000000000408d69 in main (argc=1, argv=0x7fff556ab888) at
>> /home/milian/projects/kde4/kdevelop/app/main_internal.cpp:232
>> The current source language is "auto; currently c".
>>
>> Looks like a dangling pointer. The thing is: KDev is in freeze and didn't
>> change _at all_ in this regard. Does anyone have an idea on where this
>> might come from?
>>
>> Oh and another thing: Indentation seems to be broken now when using the
>> AutoBrace plugin. This used to work just fine. But now things like these:
>>
>> foreach( foo, bar ) {\n
>>
>> lead to strange behavior...
>>
>> Furthermore sometimes my cursor is placed at Cursor(0,0) during editing, I
>> think also because of the AutoBrace handling...
>>
>> Ideas?
>>      
>
>    
>
>
> _______________________________________________
> KWrite-Devel mailing list
> KWrite-Devel@kde.org
> https://mail.kde.org/mailman/listinfo/kwrite-devel
>    


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 04/29/2010 04:31 PM, Milian Wolff wrote:
<blockquote cite="mid:201004291631.14690.mail@milianw.de" type="cite">
  <pre wrap="">Milian Wolff, 29.04.2010:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hey all,

some of the recent changes make it no fun to use Kate 4.5 in KDevelop once
again. Note that with my hack before it actually worked quite well, but now
something differently broke and I'm not sure where to look at. Take this
for example:
    </pre>
  </blockquote>
  <pre wrap="">
Note: since disabling autobrace, I didn't get the below crash anylonger.
  </pre>
</blockquote>
The perhaps Bernhard needs to look at it again, as he did the changes
to avoid the other crash with that plugin.<br>
<br>
<blockquote cite="mid:201004291631.14690.mail@milianw.de" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">Thread 1 (Thread 0x7f0b9bba6750 (LWP 16869)):
[KCrash Handler]
#5  0x00007f0b708943f2 in KateSmartRange::translated (this=0x7f0b80197430,
edit=...) at
/home/milian/projects/kde4/kate/part/smart/katesmartrange.cpp:129 #6 
0x00007f0b708971f5 in KateSmartManager::feedbackRange (this=0x1a661d0,
edit=..., range=0x7f0b80197430) at
/home/milian/projects/kde4/kate/part/smart/katesmartmanager.cpp:464
#7  0x00007f0b70896dcd in KateSmartManager::slotTextChanged
(this=0x1a661d0, edit=0x83b2e40) at
/home/milian/projects/kde4/kate/part/smart/katesmartmanager.cpp:408
#8  0x00007f0b708982de in KateSmartManager::qt_metacall (this=0x1a661d0,
_c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff556a83d0)
    at /home/milian/projects/.build/kde4/kate/part/katesmartmanager.moc:80
#9  0x00007f0b9853bc0f in QMetaObject::activate (sender=0x1a66070, m=&lt;value
optimized out&gt;, local_signal_index=&lt;value optimized out&gt;,
argv=0x7f0b9a1d37b0) at kernel/qobject.cpp:3293
#10 0x00007f0b7084df7d in KateEditHistory::editDone (this=0x1a66070,
_t1=0x83b2e40) at
/home/milian/projects/.build/kde4/kate/part/kateedit.moc:84 #11
0x00007f0b7084db80 in KateEditHistory::doEdit (this=0x1a66070,
edit=0x83b2e40) at
/home/milian/projects/kde4/kate/part/document/kateedit.cpp:201
#12 0x00007f0b70824b40 in KateDocument::editInsertText (this=0x1a653c0,
line=257, col=31, s=..., editSource=Kate::NoEditSource) at
/home/milian/projects/kde4/kate/part/document/katedocument.cpp:1151
#13 0x00007f0b7082280a in KateDocument::insertText (this=0x1a653c0,
position=..., text=..., block=false) at
/home/milian/projects/kde4/kate/part/document/katedocument.cpp:646
#14 0x00007f0b7082d2d8 in KateDocument::typeChars (this=0x1a653c0,
view=0x1e230a0, chars=...) at
/home/milian/projects/kde4/kate/part/document/katedocument.cpp:2738
#15 0x00007f0b708e8a4a in KateViewInternal::keyPressEvent (this=0x1e23940,
e=0x7fff556a9230) at
/home/milian/projects/kde4/kate/part/view/kateviewinternal.cpp:2424
#16 0x00007f0b708e7ae9 in KateViewInternal::eventFilter (this=0x1e23940,
obj=0x1e23940, e=0x7fff556a9230) at
/home/milian/projects/kde4/kate/part/view/kateviewinternal.cpp:2224
#17 0x00007f0b98528227 in
QCoreApplicationPrivate::sendThroughObjectEventFilters (this=&lt;value
optimized out&gt;, receiver=0x1e23940, event=0x7fff556a9230) at
kernel/qcoreapplication.cpp:819
#18 0x00007f0b976c70fc in QApplicationPrivate::notify_helper
(this=0xd67cb0, receiver=0x1e23940, e=0x7fff556a9230) at
kernel/qapplication.cpp:4296 #19 0x00007f0b976ceee1 in
QApplication::notify (this=&lt;value optimized out&gt;, receiver=0x1e23940,
e=0x7fff556a9230) at kernel/qapplication.cpp:3763 #20 0x00007f0b98cec076
in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#21 0x00007f0b98528e0c in QCoreApplication::notifyInternal
(this=0x7fff556aa350, receiver=0x1e23940, event=0x7fff556a9230) at
kernel/qcoreapplication.cpp:704
#22 0x00007f0b97771c1a in QKeyMapper::sendKeyEvent (keyWidget=0x1e23940,
grab=&lt;value optimized out&gt;, type=QEvent::KeyPress, code=46,
modifiers=&lt;value optimized out&gt;, text=..., autorepeat=false,
    count=1, nativeScanCode=60, nativeVirtualKey=46, nativeModifiers=0) at
kernel/qkeymapper_x11.cpp:1861
#23 0x00007f0b97774190 in QKeyMapperPrivate::translateKeyEvent
(this=0x221c280, keyWidget=0x1e23940, event=&lt;value optimized out&gt;, grab=40)
at kernel/qkeymapper_x11.cpp:1831
#24 0x00007f0b9774b734 in QApplication::x11ProcessEvent (this=&lt;value
optimized out&gt;, event=0x7fff556a9e00) at kernel/qapplication_x11.cpp:3394
#25 0x00007f0b97777322 in x11EventSourceDispatch (s=0x21d6d50,
callback=&lt;value optimized out&gt;, user_data=&lt;value optimized out&gt;) at
kernel/qguieventdispatcher_glib.cpp:146
#26 0x00007f0b91c38bce in g_main_context_dispatch () from
/lib/libglib-2.0.so.0
#27 0x00007f0b91c3c598 in ?? () from /lib/libglib-2.0.so.0
#28 0x00007f0b91c3c6c0 in g_main_context_iteration () from
/lib/libglib-2.0.so.0
#29 0x00007f0b98552333 in QEventDispatcherGlib::processEvents
(this=0xd355a0, flags=&lt;value optimized out&gt;) at
kernel/qeventdispatcher_glib.cpp:412 #30 0x00007f0b97776f0e in
QGuiEventDispatcherGlib::processEvents
(this=0x7f0b82efbbc8, flags=&lt;value optimized out&gt;) at
kernel/qguieventdispatcher_glib.cpp:204
#31 0x00007f0b98527732 in QEventLoop::processEvents (this=&lt;value optimized
out&gt;, flags=) at kernel/qeventloop.cpp:149
#32 0x00007f0b98527b0c in QEventLoop::exec (this=0x7fff556aa130, flags=) at
kernel/qeventloop.cpp:201
#33 0x00007f0b9852b84b in QCoreApplication::exec () at
kernel/qcoreapplication.cpp:981
#34 0x0000000000408d69 in main (argc=1, argv=0x7fff556ab888) at
/home/milian/projects/kde4/kdevelop/app/main_internal.cpp:232
The current source language is "auto; currently c".

Looks like a dangling pointer. The thing is: KDev is in freeze and didn't
change _at all_ in this regard. Does anyone have an idea on where this
might come from?

Oh and another thing: Indentation seems to be broken now when using the
AutoBrace plugin. This used to work just fine. But now things like these:

foreach( foo, bar ) {\n

lead to strange behavior...

Furthermore sometimes my cursor is placed at Cursor(0,0) during editing, I
think also because of the AutoBrace handling...

Ideas?
    </pre>
  </blockquote>
  <pre wrap="">

  </pre>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
KWrite-Devel mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:KWrite-Devel@kde.org">KWrite-Devel@kde.org</a> <a \
class="moz-txt-link-freetext" \
href="https://mail.kde.org/mailman/listinfo/kwrite-devel">https://mail.kde.org/mailman/listinfo/kwrite-devel</a>
  </pre>
</blockquote>
<br>
</body>
</html>



_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@kde.org
https://mail.kde.org/mailman/listinfo/kwrite-devel


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

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