Author Topic: crash when double click the selected text!  (Read 21038 times)

mikeandmore

  • Guest
crash when double click the selected text!
« on: April 01, 2006, 06:53:51 am »
1.select an part of text
2.double click on them
3.your cpu is ok,ram is ok,other app are ok,but CB made the whole sreen locked and no response at all.
4.restart your PC,and you have lost all the data which you didn't save.
« Last Edit: April 01, 2006, 12:00:46 pm by mikeandmore »

takeshimiya

  • Guest
Re: crash again!!!
« Reply #1 on: April 01, 2006, 08:29:58 am »
Let me guess... linux right?
That happened to me sometimes, and the 'double click' thing is probably a small drag&drop state.
Somehow dragging anything may cause segfaults. Dragging panels, dragging toolbars, dragging tabs. But the crashes are more often presented when dragging text. It's like it 'hangs' in a drag&drop state.

Offline gfgfd

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: crash again!!!
« Reply #2 on: April 01, 2006, 10:29:39 am »
hapends to me atleast once every day :(
use shortcuts to save & quit when cb locks screen like that. ctrl+shift+s to save and ctrl+q to quit.. and if that fails use ctrl+alt+f2 to switch to console, login and 'killall codeblocks'.

takeshimiya

  • Guest
Re: crash again!!!
« Reply #3 on: April 01, 2006, 10:36:30 am »
hapends to me atleast once every day :(
use shortcuts to save & quit when cb locks screen like that. ctrl+shift+s to save and ctrl+q to quit.. and if that fails use ctrl+alt+f2 to switch to console, login and 'killall codeblocks'.
Heh, yes, most of times the keywoard still works, what seems to hand is the interface with the mouse (in a drag&drop state).

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2875
Re: crash again!!!
« Reply #4 on: April 01, 2006, 04:41:56 pm »
Let me guess... linux right?
That happened to me sometimes, and the 'double click' thing is probably a small drag&drop state.
Somehow dragging anything may cause segfaults. Dragging panels, dragging toolbars, dragging tabs. But the crashes are more often presented when dragging text. It's like it 'hangs' in a drag&drop state.


Have you tried getting the crash with all but compiler
turned off. Is this a plugin problem?

thanks
pecan

takeshimiya

  • Guest
Re: crash again!!!
« Reply #5 on: April 01, 2006, 04:59:51 pm »
Have you tried getting the crash with all but compiler
turned off. Is this a plugin problem?

I think it's not only one problem, it's multiple problems.
I can reproduce the hang with SciTE when dragging text on linux, so that could mean that the problem is either in Scintilla, or GTK2.

BUT, I also get hangs when dragging toolbars/panels/tabs, so they could be the same bug, or different bugs, for instance in Scintilla, GTK, wxWidgets, wxAUI, C::B, ...

mikeandmore

  • Guest
Re: crash when double click the selected text!
« Reply #6 on: April 01, 2006, 05:59:33 pm »
it's the wxscintilla 's problem,i think

for scite and gtk apps works.
amule and other wx apps works.

for wxscintilla i dono.at lease CB "crash"

mikeandmore

  • Guest
Re: crash when double click the selected text!
« Reply #7 on: April 01, 2006, 06:09:56 pm »
i got it! :D

It is wxscintilla's bug,MingStudio also has that bug!!!
but SciTE and GTK apps is OK!

takeshimiya

  • Guest
Re: crash when double click the selected text!
« Reply #8 on: April 01, 2006, 06:14:46 pm »
i got it! :D

It is wxscintilla's bug,MingStudio also has that bug!!!
but SciTE and GTK apps is OK!

I have experienced it with SciTE too...

Again, it could be different unrelated (or related?) bugs.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2875
Re: crash when double click the selected text!
« Reply #9 on: April 01, 2006, 08:12:54 pm »
it's the wxscintilla 's problem,i think

Yep, wxScintilla.
Notice that when dragging, scintilla places a "page" cursor along with the "+" cursor of gtk when dragging a marked area.
Notice also, that the "page" cursor is missing when you double click on a marked area.

Scintilla and GTK are not in sync. GTK thinks the drag is occuring while scintilla thinks a double click is supposed
to unmark the marked area. No one is telling GTK the drag is over. Its a deadly embrace.

CB is running on 1.62 scintilla. What other version of scintilla are behaving correctly on GTK? That ought to give us a clue.

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: crash when double click the selected text!
« Reply #10 on: April 01, 2006, 08:21:09 pm »
CB is running on 1.62 scintilla. What other version of scintilla are behaving correctly on GTK? That ought to give us a clue.

May be wxScintilla 1.68 would solve the problem.

Best wishes,
Michael

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2875
Re: crash when double click the selected text!
« Reply #11 on: April 01, 2006, 08:35:55 pm »
CB is running on 1.62 scintilla. What other version of scintilla are behaving correctly on GTK? That ought to give us a clue.

May be wxScintilla 1.68 would solve the problem.

Best wishes,
Michael


I looked over the bug list at http://scintilla.sourceforge.net/ScintillaHistory.html
and found nothing about the bug. Disappointing....


mikeandmore

  • Guest
Re: crash when double click the selected text!
« Reply #12 on: April 02, 2006, 03:20:42 am »
confirm wxsintilla 1.67 also have this bug.(the sample program)

Allefant

  • Guest
Re: crash when double click the selected text!
« Reply #13 on: April 03, 2006, 01:16:55 am »
I'm also seeing this, also filed a bug report about it: https://developer.berlios.de/bugs/?func=detailbug&bug_id=6884&group_id=5358

So, seems the reply in the bug report that a newer WX fixes it was just a guess? I wonder if the WxScintilla devs know about it..

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: crash when double click the selected text!
« Reply #14 on: April 03, 2006, 01:36:30 am »
[...]I wonder if the WxScintilla devs know about it..

Hello,

you can also try to post a bug report there.

Best wishes,
Michael