Author Topic: Codeblocks is problems on Linux: Crashing all time, and others  (Read 16905 times)

Offline namosca

  • Multiple posting newcomer
  • *
  • Posts: 12
Codeblocks is problems on Linux: Crashing all time, and others
« on: October 24, 2016, 06:45:39 pm »
Hello!

I use CodeBlocks 16.01 on Lubuntu 16.10 (installed via apt-get install codeblocks).

1) I am having the following instabilty:
-While editing files, the program starts freezing every time more often (I can move the mouse but clicks has no effects). After some minutes, it crashes (sometimes with a warning from Linux, sometimes with no warning)

2) Other annoying behaviour:
-After selecting a syntax highlight theme (via settings -> editor -> syntax highlighting -> colour theme), if I quit codeblocks and open it again, the theme will be resetted to default
-They keyboard shortcut for swap source/header files is F11 in windows, but in Linux this key does other thing (going fullscreen). This unconsistent behaviour is very annoying.

This is all annoying and I am thinking of stop using CodeBlocks, but it would be a shame, because I use this program since a long time on Windows and have a good memory of it.

Which extra information do you need from me to be able to solve this problem?

Thank you!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #1 on: October 24, 2016, 09:11:13 pm »
1. Just disable the symbol browser in the settings -> editor -> code completion
2. For me f11 works just fine. It is something coming from you window manager or gtk toolkit.
(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 namosca

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #2 on: October 25, 2016, 07:43:52 am »
Hi. I have tried this, but it still crashes.

Is there any log file I can provide so that you can better fix the problem?


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #3 on: October 25, 2016, 08:56:32 am »
You can use gdb to get me a backtrace. Start gdb /path/to/codeblocks and when it crashes type thread apply all bt.
It is better to install any debuginfo packages before doing this step. Search your distro's documentation how to do it.
(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 namosca

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #4 on: October 25, 2016, 08:27:04 pm »
Sorry, I never heard of debuginfo before, but reading https://wiki.ubuntu.com/Debug%20Symbol%20Packages, I am doing the following:

sudo apt-get install codeblocks-dbg
(gdb) file /usr/bin/codeblocks
(gdb) run

When the program crashes, I will do the command "thread apply all bt"

As I am not used to do this and I dont want to waste the crash when it happens (it takes time to happen and I dont want to miss it because I debugget it wrong), my question is:

Is this the correct way to get the information you need?

Thanks!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #5 on: October 26, 2016, 02:14:12 am »
Yes, it is correct. Thank you for you time.
(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 namosca

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #6 on: October 27, 2016, 10:34:32 am »
Hi! I havent had a crash while debugging, but I just got this crash while running on non-debugging mode (See attached file).

The program started to freeze sometimes before crashing. When I hit the "Compile" button, it crashes (but the crashes happens in other situations other than hitting "Compile"):

Title: codeblocks crashed with SIGABRT in wxPen::GetColour()

I tried to post the .crash file for you here, but its way over the limit (48 MB). How can I forward it to you? Email?

ps:
Thank you for your time too :)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #7 on: October 28, 2016, 12:51:53 am »
What do you mean by crash file? A core file?
Without the binary and using the same distro is probably useless.

I prefer to look at the backtrace.
(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 namosca

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #8 on: November 02, 2016, 08:55:32 pm »
Hi, finally I got it!!

It happened as I refactored a symbol that was spread around some few files: Codeblocks just hanged (didnt crash actually, so I had to kill it). I applied you command and I got the following (huge text comes now):

Thread 14 (Thread 0x7fffbb335700 (LWP 7617)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff55952b3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5595fd3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff76afed3 in cbThreadPool::cbWorkerThread::Entry (
    this=0x5555570c4d90) at cbthreadpool.cpp:202
#4  0x00007ffff55944c2 in wxThread::CallEntry() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff559aeb3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51c970a in start_thread (arg=0x7fffbb335700)
    at pthread_create.c:333
#7  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 12 (Thread 0x7fffd77fe700 (LWP 7610)):
#0  0x00007ffff4959ea3 in select () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007fffbcaebe46 in MonDescriptors::do_select (this=0x7fffd77fc790)
    at directorymonitor.cpp:70
---Type <return> to continue, or q <return> to quit---
#2  DirMonitorThread::Entry (this=0x55555a24a860) at directorymonitor.cpp:164
#3  0x00007ffff55944c2 in wxThread::CallEntry() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007ffff559aeb3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff51c970a in start_thread (arg=0x7fffd77fe700)
    at pthread_create.c:333
#6  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 11 (Thread 0x7fffe8d42700 (LWP 7560)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff55952b3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5595fd3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007fffd5747552 in ClassBrowserBuilderThread::Entry (
    this=0x555557123c60) at classbrowserbuilderthread.cpp:204
#4  0x00007ffff55944c2 in wxThread::CallEntry() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff559aeb3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff51c970a in start_thread (arg=0x7fffe8d42700)
    at pthread_create.c:333
#7  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 10 (Thread 0x7fffd56d9700 (LWP 7543)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff55952b3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5595fd3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff76afed3 in cbThreadPool::cbWorkerThread::Entry (
    this=0x5555566c8400) at cbthreadpool.cpp:202
#4  0x00007ffff55944c2 in wxThread::CallEntry() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff559aeb3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51c970a in start_thread (arg=0x7fffd56d9700)
    at pthread_create.c:333
#7  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

---Type <return> to continue, or q <return> to quit---
Thread 8 (Thread 0x7fffd7fff700 (LWP 7541)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff55952b3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5595fd3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff7776a3a in BackgroundThread::Entry (this=0x55555619eca8)
    at ./backgroundthread.h:152
#4  0x00007ffff55944c2 in wxThread::CallEntry() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff559aeb3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51c970a in start_thread (arg=0x7fffd7fff700)
    at pthread_create.c:333
#7  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 7 (Thread 0x7fffe0f0c700 (LWP 7540)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff55952b3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
---Type <return> to continue, or q <return> to quit---
#2  0x00007ffff5595fd3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff7776a3a in BackgroundThread::Entry (this=0x55555619ec70)
    at ./backgroundthread.h:152
#4  0x00007ffff55944c2 in wxThread::CallEntry() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff559aeb3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51c970a in start_thread (arg=0x7fffe0f0c700)
    at pthread_create.c:333
#7  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 6 (Thread 0x7fffe3fff700 (LWP 7539)):
#0  pthread_cond_wait@@GLIBC_2.3.2 ()
    at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007ffff55952b3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff5595fd3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff7776a3a in BackgroundThread::Entry (this=0x55555619ec38)
    at ./backgroundthread.h:152
#4  0x00007ffff55944c2 in wxThread::CallEntry() ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#5  0x00007ffff559aeb3 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff51c970a in start_thread (arg=0x7fffe3fff700)
    at pthread_create.c:333
#7  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 3 (Thread 0x7fffe9750700 (LWP 7536)):
#0  0x00007ffff49580bd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ffff43839d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ffff4383d62 in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff093c4e6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007ffff43ab305 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff51c970a in start_thread (arg=0x7fffe9750700)
    at pthread_create.c:333
#6  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 2 (Thread 0x7fffe9f51700 (LWP 7535)):
#0  0x00007ffff49580bd in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007ffff43839d6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
---Type <return> to continue, or q <return> to quit---
#2  0x00007ffff4383aec in g_main_context_iteration ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ffff4383b31 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ffff43ab305 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007ffff51c970a in start_thread (arg=0x7fffe9f51700)
    at pthread_create.c:333
#6  0x00007ffff49640af in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:105

Thread 1 (Thread 0x7ffff7fc1140 (LWP 7531)):
#0  0x00007ffff49535f5 in __GI___xstat (vers=<optimized out>,
    name=0x55555a628030 "/media/gustavo/OS/Documents and Settings/All Users/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Application Data/Application D"...,
    buf=0x7fffffff9e80) at ../sysdeps/unix/sysv/linux/wordsize-64/xstat.c:35
#1  0x00007ffff54b7310 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#2  0x00007ffff54b8d9a in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#3  0x00007ffff54ba20a in wxFileName::DirExists() const ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#4  0x00007ffff5575078 in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
---Type <return> to continue, or q <return> to quit---
#5  0x00007ffff54735c6 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#6  0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#7  0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#8  0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#9  0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#10 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#11 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#12 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#13 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#14 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#15 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#16 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int)---Type <return> to continue, or q <return> to quit---
 const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#17 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#18 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#19 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#20 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#21 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#22 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#23 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#24 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#25 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#26 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#27 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
---Type <return> to continue, or q <return> to quit---
#28 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#29 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#30 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#31 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#32 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#33 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#34 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#35 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#36 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#37 0x00007ffff54737f5 in wxDir::Traverse(wxDirTraverser&, wxString const&, int) const () from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#38 0x00007fffd578013c in NativeParser::GetAllPathsByFilename (
    this=<optimized out>, filename=...) at nativeparser.cpp:522
#39 0x00007fffd5741977 in ClassBrowserBuilderThread::Init (
---Type <return> to continue, or q <return> to quit---
    this=0x555557123c60, np=<optimized out>, treeTop=<optimized out>,
    treeBottom=<optimized out>, active_filename=...,
    user_data=user_data@entry=0x55555a483240, bo=..., tt=0x55555a2a73b0,
    idThreadEvent=1027) at classbrowserbuilderthread.cpp:121
#40 0x00007fffd573c30b in ClassBrowser::ThreadedBuildTree (
    this=0x555557104eb0, activeProject=0x55555a483240) at classbrowser.cpp:920
#41 0x00007fffd573c5b4 in ClassBrowser::UpdateClassBrowserView (
    this=0x555557104eb0, checkHeaderSwap=checkHeaderSwap@entry=true)
    at classbrowser.cpp:253
#42 0x00007fffd57896e9 in NativeParser::OnEditorActivated (
    this=this@entry=0x5555566c6b30, editor=editor@entry=0x55555a772000)
    at nativeparser.cpp:2661
#43 0x00007fffd574acaf in CodeCompletion::OnEditorActivatedTimer (
    this=0x5555566c6ab0, event=...) at codecompletion.cpp:3526
#44 0x00007ffff54401fe in wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#45 0x00007ffff55c66e7 in wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#46 0x00007ffff55c6ace in wxEvtHandler::SearchDynamicEventTable(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#47 0x00007ffff55c6b5f in wxEvtHandler::TryHereOnly(wxEvent&) ()
---Type <return> to continue, or q <return> to quit---
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#48 0x00007ffff55c6c13 in wxEvtHandler::ProcessEventLocally(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#49 0x00007ffff55c6c75 in wxEvtHandler::ProcessEvent(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#50 0x00007ffff55c69e7 in wxEvtHandler::SafelyProcessEvent(wxEvent&) ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#51 0x00007ffff552c8d1 in wxTimerImpl::SendEvent() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#52 0x00007ffff5d43e3b in ?? ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#53 0x00007ffff4384103 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#54 0x00007ffff438368a in g_main_context_dispatch ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#55 0x00007ffff4383a40 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#56 0x00007ffff4383d62 in g_main_loop_run ()
   from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#57 0x00007ffff3b14977 in gtk_main ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#58 0x00007ffff5d24ed5 in wxGUIEventLoop::DoRun() ()
   from /usr/lib/x86_64-linux-gnu/libwx_gtk2u_core-3.0.so.0
#59 0x00007ffff5482353 in wxEventLoopBase::Run() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
---Type <return> to continue, or q <return> to quit---
#60 0x00007ffff5447666 in wxAppConsoleBase::MainLoop() ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#61 0x00005555555ee09a in CodeBlocksApp::OnRun (this=0x555555a1c650)
    at app.cpp:850
#62 0x00007ffff54d3f70 in wxEntry(int&, wchar_t**) ()
   from /usr/lib/x86_64-linux-gnu/libwx_baseu-3.0.so.0
#63 0x00005555555d647e in main (argc=1, argv=<optimized out>) at app.cpp:322


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #9 on: November 02, 2016, 11:25:31 pm »
The symbol browser is still enabled!!!
Disable it and then report if you still see crashes or lock-ups.
(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 namosca

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #10 on: November 03, 2016, 04:45:54 pm »
I have now disabled the symol browser by clicking View - > Symbol browser and unchecking the box.

After a program freeze (I had to kill it), I went to gdb and wanted to apply the command "thread apply all bt and got", but it does nothing because gdb tells me:

Program terminated with signal SIGKILL, Killed.
The program no longer exists.


How should I proceed to help you figure out how to fix this problem?



Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #11 on: November 03, 2016, 08:10:10 pm »
After a program freeze (I had to kill it)...

Program terminated with signal SIGKILL, Killed.

Killing  a program is achieved by sending a SIGKILL signal. So next time when it freezes don't kill it, just attach gdb to and execute the thread all command.
Also I don't remember if we've fixed the symbolic link recursion issue before or after 16.01, so it might be useful to try a night build to see if the issue is reproducible in the latest version.
(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 namosca

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #12 on: November 07, 2016, 09:43:40 pm »
1) I will attach GDB next time instead of killing it
2) Now I remember that when I installed CB 16.01 on Windows 10 it also started to crash a lot. The problem got solved only on a newer version (cant remember in detail which). This means that the crashes I experience are happening for Windows users too.
3) That the official version of CB (on CB website and on Ubuntu repositories) is the buggy one is extremely bad PR for the project. I suggest to put a more stable version as official (both on CB website and on Ubuntu repositories)
4) I know that if I try compiling a nightly build in Linux as you proposed I will run into many headache... So for now I just switched to CodeLite (which run out of the box on Ubuntu apt-get)
5) I think many users (especially the new users) will to the same without bothering to report a bug. Again, please consider how bad PR it is for CodeBlocks that the official version is not a properly working one

Thank you
« Last Edit: November 07, 2016, 09:45:41 pm by namosca »

Offline rlb

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #13 on: November 10, 2016, 09:15:51 am »
2) Now I remember that when I installed CB 16.01 on Windows 10 it also started to crash a lot. The problem got solved only on a newer version (cant remember in detail which). This means that the crashes I experience are happening for Windows users too.
3) That the official version of CB (on CB website and on Ubuntu repositories) is the buggy one is extremely bad PR for the project. I suggest to put a more stable version as official (both on CB website and on Ubuntu repositories)
5) I think many users (especially the new users) will to the same without bothering to report a bug. Again, please consider how bad PR it is for CodeBlocks that the official version is not a properly working one
You're jumping to conclusions, here. You experience these crashes. Maybe it's a problem on Win10, maybe Win10 users are defecting to PellesC in droves and not saying a word about it here, but I don't see them doing so. And crucially, I don't see these crashes, either. That's Windows 7 Pro, 64 bit, and yes, the official installation of CB version 16.01. Works fine. The problem seems to me to be on your end; in any case, I can't see that it's a wide-spread CB problem, and certainly not the PR disaster you seem to think it is.
Richard Bos

Offline dmoore

  • Developer
  • Lives here!
  • *****
  • Posts: 1576
Re: Codeblocks is problems on Linux: Crashing all time, and others
« Reply #14 on: November 10, 2016, 06:42:07 pm »
You can use this semi-official daily build PPA:

https://launchpad.net/~codeblocks-devs/+archive/ubuntu/daily