Author Topic: CodeBlocks crash when rearranging internal windows  (Read 7259 times)

Offline devguy

  • Multiple posting newcomer
  • *
  • Posts: 20
    • DevMentor
CodeBlocks crash when rearranging internal windows
« on: July 12, 2009, 10:50:28 pm »
This seem to be a bug which causes codeblocks to consistently crash. This happen when you try to rearrange the panels, when I try to align to the site of CB main windows CB does a silent crash and the app disappears.

I noticed this with both the current build of CB using get-apt and one built using tarball. This problem is very easy to reproduce.

CB release 8.02 wx 2.8.10

System: Linux Kubuntu x86_64

$ uname -a
Linux yadav-k64x2 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC 2009 x86_64 GNU/Linux

gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4)

Has anyone else reported this issues?

Kind Regards,
Rajinder Yadav
Kind Regards,
Rajinder Yadav

Offline XayC

  • Multiple posting newcomer
  • *
  • Posts: 94
Re: CodeBlocks crash when rearranging internal windows
« Reply #1 on: July 12, 2009, 11:01:56 pm »
If what you are talking about is the "toolbars drag bug" then yes, it's known, it's a wxWidgets bug and (in my opinion) it's should get more priority because a patch is already available since 2.8.9 but has never been applied in the wx trunk.

I've already posted about it (and so did other people): link.

The good news is that there's a temporary fix for it, someone here on the forums has compiled a wx DLL (used by codeblocks) which includes the patch for this problem.
Edit: oh I see you are using linux, I don't know if there's an updated library in that case too.

Regards XayC
« Last Edit: July 12, 2009, 11:03:42 pm by XayC »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: CodeBlocks crash when rearranging internal windows
« Reply #2 on: July 12, 2009, 11:12:06 pm »
The toolbar-drag bug is windows only as far as I know.

I don't have any problems here.

devguy:
do you really use 8.02-release or 8.02-svn ?

If the first, where do you get it from with apt-get, and when is it build (see the about-box) ?
The official release is build 2008/02/27 or 2008/02/28 (I'm not absolutely sure).

If it's a release-build and build later it's not an official build and might have changes to source.

Nevertheless, if it is release you should try a more recent nightly (see my sig or one of the actual nighly build threads for "real" ubuntu builds).

Offline devguy

  • Multiple posting newcomer
  • *
  • Posts: 20
    • DevMentor
Re: CodeBlocks crash when rearranging internal windows
« Reply #3 on: July 12, 2009, 11:19:33 pm »
Xayc / Jens
No this is not an issues with the toolbar, I can easily move and dock the toolbar. I am talking about the panel windows, like the one titled, "Management". I can't dock it to the side without a consistent crash of CB.

I am going to assume this is also a wxGTK bug??
Is this issues been reported also, if there a patch for it and where can I obtain one??

jens,

The tarball is a release build (codeblocks-8.02-src.tar.bz2) ... there is no issues like this on CentOS 5.3 which is a 32bit OS
I currently have a local built of CB from source,

Kind Regards,
Rajinder Yadav
« Last Edit: July 12, 2009, 11:22:13 pm by devguy »
Kind Regards,
Rajinder Yadav

mhussa

  • Guest
Re: CodeBlocks crash when rearranging internal windows
« Reply #4 on: July 15, 2009, 01:39:33 am »
I installed codeblocks after having grief with kdevelop and it was fine until I tried to dropped the debug information windows on the main screen.  It just disappears exactly as devguy reported.  The logging from the console shows the message below.  I restarted it with the --sync option and it doesn't happen any more.  I doubt this is a real fix for the problem but it helps keep things moving.

version string on the start page is:
Release 8.02 (unknown date) gcc 4.3.3 Linux/unicode

I'm running kubuntu 9.04 with KDE 4.2.3 on an intel Q6600.  I downloaded the packages for 8.02 via the KpackageKit tool.

similar OS setup as devguy:
Linux ubudev 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009 x86_64 GNU/Linux
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3





Switching layout to "Debugging"
The program 'codeblocks' received an X Window System error.
This probably reflects a bug in the program.              
The error was 'BadWindow (invalid Window parameter)'.      
  (Details: serial 1874337 error_code 3 request_code 15 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.      
   To debug your program, run it with the --sync command line          
   option to change this behavior. You can then get a meaningful      
   backtrace from your debugger if you break on the gdk_x_error() function.)
« Last Edit: July 15, 2009, 01:47:21 am by mhussa »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: CodeBlocks crash when rearranging internal windows
« Reply #5 on: November 11, 2009, 01:08:38 pm »
It's a wxWidgets-bug.
Nevertheless I committed a workaround, that makes this bug disappear on my debian-system.

It's in svn r5911.

If any of you uses a self-compiled version of C::B, I would be happy to get a feedback, otherwise you have to wait for the next nightly.