CodeLite causes system freeze?
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: CodeLite causes system freeze?
For CL 11.0 an alternative would be to install the version from our repo, which has built-in wx3.1.
- caibbor
- CodeLite Veteran
- Posts: 78
- Joined: Thu Jan 10, 2013 10:37 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: CodeLite causes system freeze?
I found a codelite 11.0.0 package instead of going back to 10. It froze again, this time you can see there's no wx warning:
Here are the images I snapped of GDB doing 'thread apply all bt':
Code: Select all
antic@antic-Inspiron-7559:~$ codelite -v
CodeLite IDE v11.0.0
antic@antic-Inspiron-7559:~$
You do not have the required permissions to view the files attached to this post.
- caibbor
- CodeLite Veteran
- Posts: 78
- Joined: Thu Jan 10, 2013 10:37 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: CodeLite causes system freeze?
BTW:
Code: Select all
antic@antic-Inspiron-7559:/etc/apt$ dpkg -l | grep codelite -i
ii codelite 11.0-1unofficial.xenial amd64 cross-platform C/C++ IDE
antic@antic-Inspiron-7559:/etc/apt$
antic@antic-Inspiron-7559:/etc/apt$ grep codelite -i . -R
Binary file ./trusted.gpg matches
./sources.list.save:## codelite
./sources.list.save:deb http://repos.codelite.org/ubuntu/ saucy universe
./sources.list.save:# deb-src http://repos.codelite.org/ubuntu/ saucy universe
./sources.list.save:deb https://repos.codelite.org/ubuntu/ xenial universe
./sources.list.save:# deb-src https://repos.codelite.org/ubuntu/ xenial universe
Binary file ./trusted.gpg~ matches
./sources.list:## codelite
./sources.list:deb http://repos.codelite.org/ubuntu/ saucy universe
./sources.list:# deb-src http://repos.codelite.org/ubuntu/ saucy universe
./sources.list:deb https://repos.codelite.org/ubuntu/ xenial universe
./sources.list:# deb-src https://repos.codelite.org/ubuntu/ xenial universe
antic@antic-Inspiron-7559:/etc/apt$
- caibbor
- CodeLite Veteran
- Posts: 78
- Joined: Thu Jan 10, 2013 10:37 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: CodeLite causes system freeze?
BTW, I had always built with -DCOPY_WX_LIBS=1, and I know this now that I visit the page that instructed me how to build codelite (http://codelite.org/Developers/Linux)
I am rebuilding codelite from git with debug symbols. Hopefully this will provide more information for the next freeze. I suppose I'll try to grok command-line GDB.
More information soon.
I am rebuilding codelite from git with debug symbols. Hopefully this will provide more information for the next freeze. I suppose I'll try to grok command-line GDB.
More information soon.
- caibbor
- CodeLite Veteran
- Posts: 78
- Joined: Thu Jan 10, 2013 10:37 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: CodeLite causes system freeze?
I did as I said, and I've got a line number now. I'm not sure how helpful it is, but it's LiteEditor/app.cpp:235. The line just reads "IMPLEMENT_APP(CodeLiteApp)"
I grep'd through CodeLite's code to see what IMPLEMENT_APP is but didn't find anything. I suppose the next thin would be compiling wxWidgets with debug symbols and contacting that team, unless anyone has a different suggestion?
I don't know what else to do. This freeze happens so often.
I grep'd through CodeLite's code to see what IMPLEMENT_APP is but didn't find anything. I suppose the next thin would be compiling wxWidgets with debug symbols and contacting that team, unless anyone has a different suggestion?
I don't know what else to do. This freeze happens so often.
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: CodeLite causes system freeze?
If there is a freeze with xorg, than it can only be thread #1 (the "main" thread)
This is the only thread that interacts with UI. From looking at the backtrace, I can't see anything that is related to CodeLite, everything is pointing to wxWidgets (GTK to be more precise)
Which version of GTK are you using?
This is the only thread that interacts with UI. From looking at the backtrace, I can't see anything that is related to CodeLite, everything is pointing to wxWidgets (GTK to be more precise)
Which version of GTK are you using?
Make sure you have read the HOW TO POST thread
-
- CodeLite Plugin
- Posts: 819
- Joined: Wed Sep 03, 2008 7:26 pm
- Contact:
Re: CodeLite causes system freeze?
I've just created a fresh xubuntu xenial virtualbox guest and installed CL 11.0 from the repo. After creating and building a new workspace and C++ wxWidgets (wxFrame and wxCrafter) template project, I debugged and immediately closed it 20 times. That didn't cause a freeze.
From your experience was 20 times enough? What happens if you do the same thing with a fresh project?
If it freezes with your program but not with a simple project, that might be significant.
From your experience was 20 times enough? What happens if you do the same thing with a fresh project?
If it freezes with your program but not with a simple project, that might be significant.
- caibbor
- CodeLite Veteran
- Posts: 78
- Joined: Thu Jan 10, 2013 10:37 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: CodeLite causes system freeze?
I tried the same as you did: I started and immediately stopped my project 20 times. It didn't freeze.
Then I did the same thing 20 more times, except setting a breakpoint before I hit Shift+F5 to stop my debugger since this is what usually seems to cause the freese. Still no freeze.
Then I added a break point and tried 20 more times. Still no freeze.
My project doesn't use wxWidgets, the only dependencies are SDL and libZip (and whatever those depend on).
I'm going to start a log of the freezes, writing down everything I did (whether I closed the probgram or termianted the debug session, how many break points and watches I had, etc).
Will report back.
Then I did the same thing 20 more times, except setting a breakpoint before I hit Shift+F5 to stop my debugger since this is what usually seems to cause the freese. Still no freeze.
Then I added a break point and tried 20 more times. Still no freeze.
My project doesn't use wxWidgets, the only dependencies are SDL and libZip (and whatever those depend on).
I'm going to start a log of the freezes, writing down everything I did (whether I closed the probgram or termianted the debug session, how many break points and watches I had, etc).
Will report back.
- caibbor
- CodeLite Veteran
- Posts: 78
- Joined: Thu Jan 10, 2013 10:37 pm
- Genuine User: Yes
- IDE Question: c++
- Contact:
Re: CodeLite causes system freeze?
Small update:
The freeze happened again this morning. I had just ran the program, ran into an abort() which triggered codelite to break, and then hit Shift+F5 to stop the debugger, then a system freeze. I immediately rebooted and did the exact same steps, also duplicating exactly what I did in my program, but this time no system freeze.
I'm going to run my program through valgrind to see if it comes up with anything (I do this regularly), but I really suspect a wxWidgets bug.
The freeze happened again this morning. I had just ran the program, ran into an abort() which triggered codelite to break, and then hit Shift+F5 to stop the debugger, then a system freeze. I immediately rebooted and did the exact same steps, also duplicating exactly what I did in my program, but this time no system freeze.
I'm going to run my program through valgrind to see if it comes up with anything (I do this regularly), but I really suspect a wxWidgets bug.