Author Topic: wxSmith crashes when adding bitmap button  (Read 17216 times)

Offline papayrus

  • Single posting newcomer
  • *
  • Posts: 6
Re: wxSmith crashes when adding bitmap button
« Reply #15 on: March 12, 2013, 02:11:03 pm »
Is there anyway to fix this yet?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13338
    • Travis build status
Re: wxSmith crashes when adding bitmap button
« Reply #16 on: March 12, 2013, 09:47:18 pm »
I won't be able for the next two-three weeks... and this is really hard issue, because it is pretty random -> it might be anything that is broken.
(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 ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5353
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxSmith crashes when adding bitmap button
« Reply #17 on: March 13, 2013, 01:02:47 am »
I can't reproduce the crash. I'm using Unofficial C::B release Unofficial Code::Blocks installer for Windows (svn 8896) under Windows XP.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13338
    • Travis build status
Re: wxSmith crashes when adding bitmap button
« Reply #18 on: March 13, 2013, 03:56:54 am »
ollydbg: debug or release build of C::B are you using? This happens only in release build, turn of optimizations and it is done.
(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 ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5353
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: wxSmith crashes when adding bitmap button
« Reply #19 on: March 13, 2013, 04:15:20 am »
ollydbg: debug or release build of C::B are you using? This happens only in release build, turn of optimizations and it is done.
Typos in your post: of->off, done->gone.

I'm not sure, I should ask ptDev, BTW: I never build a "-O2" version of C::B myself. :)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ptDev

  • Almost regular
  • **
  • Posts: 222
Re: wxSmith crashes when adding bitmap button
« Reply #20 on: March 15, 2013, 01:52:30 pm »
I don't recall ever changing the default target or its settings in most plugin projects.
I certainly never did that with wxSmith, so it probably is indeed getting compiled without optimizations.

Post build, I do try to reduce the executables size by both removing their symbols and compressing them.

It goes without saying, if anyone does get a crash with my binaries, they should try to reproduce it with the nightly build instead. While I try to keep my local changes to a minimum, there are enough of them to warrant not using my build as a representation of the state of the trunk.

Offline benezan

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: wxSmith crashes when adding bitmap button
« Reply #21 on: April 13, 2013, 06:02:38 pm »
I have the same problem with C::B 12.11 with MinGW. Everytime I try to add a bitmap button, codeblocks crashes. Hiding the resources tab helps at first but I can't do anything without the resources. As soon as I try to ad a bitmap it crashes again.

I switched back to version 10.05 so at least I could finish my work. Would be nice if there was a patch for this as the new C::B has a lot more features.

Offline papayrus

  • Single posting newcomer
  • *
  • Posts: 6
Re: wxSmith crashes when adding bitmap button
« Reply #22 on: April 29, 2013, 11:08:02 pm »
Yes what he said above it happens in 12.11 and it happens when you add a bitmap button then change to another tab besides resources. You can add all your bitmap buttons while a different tab is on then save the project and close it then reopen it and as long as you dont add any more bitmap buttons it works fine.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxSmith crashes when adding bitmap button
« Reply #23 on: May 01, 2013, 05:00:15 pm »
The cause for the issue seems to be an unitialised bool member-variable used with WXS_BOOL-macro.

It should be fixed in trunk (svn r9023).

Can anyone with this issue test it and give feedback ?

Sabesto

  • Guest
Re: wxSmith crashes when adding bitmap button
« Reply #24 on: May 24, 2013, 06:49:24 pm »
Can confirm that this works with rev 9114 (windows, built from svn)

This did not work for me with rev 8629