Author Topic: Code::Blocks with wxWidgests crashing regularly.  (Read 4927 times)

Offline Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Code::Blocks with wxWidgests crashing regularly.
« on: January 07, 2017, 10:17:54 am »
Hi all,

I recently installed wxWidgets with Code::Blocks on Ubuntu 16.04 and the whole thing became really unstable.
I decided my machine was due for a rebuild anyway, so I completely wiped my machine and reinstalled a freshly-downloaded copy of Ubuntu 16.04.
I then proceeded to install Code::Blocks and wxWidgets from scratch again.

Since then, whilst using it, it is locking up and crashing a hell of a lot more than it ever has.

Has anyone else experienced this?

Thanks.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #1 on: January 07, 2017, 11:54:13 am »
Yes, it is a known problem you should disable the symbol browser in the code completion settings. Then the crashes should stop. If they done we'll have to dig further.
(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 Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #2 on: January 07, 2017, 12:23:31 pm »
Thanks.

Just a quick question - what is the preferred way to install wxWidgets?

Do I simply do an apt-get install codeblocks-contrib?

Or must I install the full list on codelite.org:
apt-get install libwxbase3.0-0-unofficial \
                 libwxbase3.0-dev \
                 libwxgtk3.0-0-unofficial \
                 libwxgtk3.0-dev \
                 wx3.0-headers \
                 wx-common \
                 libwxbase3.0-dbg \
                 libwxgtk3.0-dbg \
                 wx3.0-i18n \
                 wx3.0-examples \
                 wx3.0-doc

Or must I install from scratch by compiling and making?

Thanks.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #3 on: January 07, 2017, 01:08:17 pm »
Just install codeblocks and codeblocks-contrib and the package manager should install all the dependencies.
(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 stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #4 on: January 07, 2017, 03:29:30 pm »
Just install codeblocks and codeblocks-contrib and the package manager should install all the dependencies.

I am thinking it might NOT install libwxgtk3.0-dev; but, oBFusCATed is more likely correct than I am.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #5 on: January 07, 2017, 03:45:39 pm »
The dev package is not needed by codeblocks.
If someone needs to develop wx application then it is need and probably other wx*-dev packages.
Look at the list of packages and decide what you need for your project or just build your project and install packages until there are no compiler or linker errors. :)
(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 Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code::Blocks with wxWidgests crashing regularly
« Reply #6 on: January 08, 2017, 01:22:38 am »
Many thanks for the good advice.
I have disabled the Symbol Browser and only installed codeblocks-contrib.
I'll see if it crashes.

I had previously installed the whole smattering, but then realised that I was taking instructions from a website for Codelite and I'm wondering if those packages were tailored specifically for Codelite and so contributing to the overall instability of the package?

Again, my thanks for your assistance.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #7 on: January 08, 2017, 11:18:16 am »
Adding more packages than needed doesn't affect stability as far as I know. If something is not use then it is just not used. There are exceptions, but I doubt this case is one.
(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 Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #8 on: January 10, 2017, 07:16:35 am »
Update: It was working better but still seems to crash (intermittently) at two main points:
1) When I got to Project -> Build Options (just shows a blank pop-up window with a partial line near the bottom)
2) Saving and exiting - the dialogue box appears but the contents are blank.

This instability appear to have only arisen since installing wxWidgets.

Thoughts?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #9 on: January 10, 2017, 09:21:53 am »
There are reports that installing a night build fixes this problem.
(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 Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #10 on: January 10, 2017, 10:42:32 am »
Okay, I'll give that a try.
Many thanks, Ted.

Offline Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #11 on: January 10, 2017, 01:54:01 pm »
I've started the install process for nightly builds..... right up until I get to the forum thread announcing the latest release.

I've been back as far as early 2014 and can't find any for Linux.
They all say "Linux - none."

Is there a recent nightly build for Ubuntu Linux?

Thanks.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #12 on: January 10, 2017, 03:55:43 pm »
one possibility is to build c::b by yourself

a other possibility:
https://launchpad.net/~damien-moore/+archive/ubuntu/codeblocks

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #13 on: January 10, 2017, 09:23:52 pm »
Use dmoore's PPA. He is a C::B developer and I think his PPA is up-to-date.
(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 Thunderchook

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Code::Blocks with wxWidgests crashing regularly.
« Reply #14 on: January 11, 2017, 07:22:02 am »
Thanks.
After much searching, I found an updated build of C::B.
It's 16.01 and seems to be jam-packed with all sorts of bells and whistles!

Fingers crossed this behaves!
Thanks for your help, Ted!