Author Topic: Crash on startup if mouse clicked too early (Debian packaged 10.05)  (Read 4046 times)

Offline rogerjames99

  • Single posting newcomer
  • *
  • Posts: 5
Has anyone else noticed this. Using the debian packed 10.05 version of Code::Blocks if you do almost any keyboard/mouse interaction after codeblocks has started but before the code completion toolbar has updated itself, Code::Blocks crashes.

Is this a known problem? Is there a workaround other than just remembering to be patient?

I wonder if this could be related to running on a quad core processor.

Roger

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Crash on startup if mouse clicked too early (Debian packaged 10.05)
« Reply #1 on: August 21, 2010, 08:02:11 pm »
C::B runs fine on quads...

Please installed the -dbg package (I think there is one provided for debian) and then run "gdb codeblocks",
when you get a crash execute the "bt" command and paste the output of it here (please use [ code ] tag).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Crash on startup if mouse clicked too early (Debian packaged 10.05)
« Reply #2 on: August 21, 2010, 08:15:09 pm »
You can also look if there is a crash-report in /tmp/codeblocks_dbgrpt-[pid]-[date]/ , it should be named codeblocks.xml.
You can attach it here (after renaming it to txt or zipping it).

Offline rogerjames99

  • Single posting newcomer
  • *
  • Posts: 5
Re: Crash on startup if mouse clicked too early (Debian packaged 10.05)
« Reply #3 on: August 21, 2010, 09:48:35 pm »
I could not find  an xxxxxxxx-dbg package in the Debian repositories. I searched on "codeblocks" using synaptic.

As you might expect, when I actually try to reproduce the problem it does not appear very easily! However I did manage to get to one crash just by clicking in one of the source windows immediately on startup. I then checked in the /tmp directory and found a number of dbgrpt directories including one with the correct time date stamp. However all of them are empty!

For information crash I got was when I had been trying a few times with one .cbp file and then switched to a different one. I do not know if this would mean that some sort of cache was being recreated.

Sorry

Roger

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Crash on startup if mouse clicked too early (Debian packaged 10.05)
« Reply #4 on: August 21, 2010, 09:58:25 pm »
See the packages on the download page of C::B: http://www.codeblocks.org/downloads/26
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Crash on startup if mouse clicked too early (Debian packaged 10.05)
« Reply #5 on: August 21, 2010, 10:27:40 pm »
I could not find  an xxxxxxxx-dbg package in the Debian repositories. I searched on "codeblocks" using synaptic.

Where did you get the files you have installed ?

Code::Blocks is not on official debian repo.

You can use either the packages from our download-page as mentioned by oBFusCATed, or use my repo to install a nightly (see http://apt.jenslody.de/ for details).

Debug packages can be found at both places.

Offline rogerjames99

  • Single posting newcomer
  • *
  • Posts: 5
Re: Crash on startup if mouse clicked too early (Debian packaged 10.05)
« Reply #6 on: August 22, 2010, 01:19:05 am »
Oops, my bad. I had forgotten that I had downloaded the original packages from berlios rather than the debian repositories.

Roger

Offline rogerjames99

  • Single posting newcomer
  • *
  • Posts: 5
Re: Crash on startup if mouse clicked too early (Debian packaged 10.05)
« Reply #7 on: August 22, 2010, 01:43:34 am »
Ok, got a stack trace now.

Code
(gdb) bt
#0  0x00000000 in ?? ()
#1  0xb6b7248e in wxEventPtr::~wxEventPtr () from /usr/lib/libwx_baseu-2.8.so.0
#2  0xb6b72bf1 in wxEvtHandler::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.8.so.0
#3  0xb6ad3e51 in wxAppConsole::ProcessPendingEvents ()
   from /usr/lib/libwx_baseu-2.8.so.0
#4  0xb6deae9f in wxAppBase::ProcessIdle ()
   from /usr/lib/libwx_gtk2u_core-2.8.so.0
#5  0xb6d3e2e5 in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#6  0xb6296291 in ?? () from /usr/lib/libglib-2.0.so.0
#7  0x00000000 in ?? ()