User forums > Embedded development

cb crashes very often on embedded system

(1/3) > >>

seahawkibiza:
Hello,

I use cb on the Bananian Pi to compile a wxWidgets project. (Developt under Windows, the Code is running well).
But in this systems cb crashes as follow:

1. cb closes without any error-message. I think, it´s related with some GUI-Operations (mouse-clicks, copy-paste), but i´m not sure. (because crashes very often but not at the same steps.)
2. On resources wxSmith: the system goes in 100% cpu, if I will show a Notebook. Other parts of wxSmith I can see.

My system is this:

System: Banana Pi
Linux: debian wheezy as bananian
GUI: LXDE
wxWidgets 2.9.4, compiled with Opengl
cb 13.12 from the tar-ball, compiles with --contrib-plugins=ALL,-FileManager

Some hints?

stahta01:
Code Completion would be my wild guess as the plugin causing the problem.

Tim S.

oBFusCATed:
Also are you sure you're not getting low on memory in this system?
Use top/htop/free or something like it to monitor the free memory on the system while CB is running.

seahawkibiza:
I setup the whole system new. Then I will report what happens...
I write down the setup of the system as follow:

apt-get install gcc g++ make git-core vim bzip2
apt-get install libtool autoconf automake
apt-get install pkg-config
apt-get install zip unzip
apt-get install gtk-3.0-dev
apt-get install mesa-common-dev
apt-get install freeglut3-dev
apt-get install libboost-thread-dev
apt-get install libhunspell-dev
apt-get install task-lxde-desktop


cd /
ldconfig
apt-get autoremove  //to remove unnecesasary libs
ldconfig

mkdir /devel

cd ~/devel

mkdir build_wx

cd build_wx

../configure --prefix=/opt/wx --enable-xrc --enable-unicode --with-opengl
make -j3 && make -j3 install

export PATH=/usr/bin:/opt/wx/bin:$PATH 

Add /opt/wx/lib to /etc/ld.so.conf (nano /etc/ld.so.conf), then run:

ldconfig

echo `wx-config --prefix`/share/aclocal >> /usr/share/aclocal/dirlist

cd ~/devel

tar xbf codeblocks_13.12-1.tar.gz
cd codeblocks_13.12-1

 ./bootstrap
 ./configure --with-contrib-plugins=all,-FileManager
make -j3 && make -j3 install


touch /etc/X11/Xsession.d/90environment
nano /etc/X11/Xsession.d/90environment
add:
export PATH=/usr/bin:/opt/wx/bin:$PATH
xset s off
xset -dpms
xset -s noblank

reboot

//Setup for Codeblocks:

Compiler>sonstige Optionen> ´wx-config --cflags´
Linker>sonstige Optionen> ´wx-config --libs --gl-libs´ -lGL -lglut

seahawkibiza:
So, I rebuild all. code blocks compiles my application nice. during the compile (takes round about 25min) I used free to have a look to the memory, but still 300MB free.
the core is a 1.1GHZ dual core.

Problem: now its more complicated. before was only frozen if I click on resources to show the wxsmith designs, now it crashes without a warning and closes the cb.
if I start cb again, only one file is displayed correctly. all other filewindows are a grey window. I can still compile, it works fine, but the vertical scrollers are missed and if I open a other file from the project tree its grey.

I think, its a problem with the grafic driver or lib, but how can I test thus out?

Navigation

[0] Message Index

[#] Next page

Go to full version