Page 1 of 1

Memory error (maybe gtk error?)

Posted: Sat Mar 26, 2011 6:13 pm
by Brujah
Hy everybody,

we try to get the new version of our game to compile on linux.
But we cannot get it to run :(. It compiles and links without errors but gives a memory error when I try to run it.
It compiles and runs without errors on windows.

I get:

Code: Select all

markus@laptop ~/laby_old/lostlabyrinth/pb $ ./laby.exe 

(laby.exe:8969): Gtk-CRITICAL **: gtk_object_get_data: assertion `GTK_IS_OBJECT (object)' failed
Speicherzugriffsfehler
markus@laptop ~/laby_old/lostlabyrinth/pb $ 
Installation of the compiler should be fine:

Code: Select all

markus@laptop ~/Desktop/purebasic $ ./checkinstall.sh 
Everything seems correctly setup for PureBasic
The code you can get like this:
hg clone https://wizkoder@bitbucket.org/wizkoder/lostlabyrinth
This is a mercurial repository. Main file is here: lostlabyrinth/pb/laby.pb

Re: Memory error (maybe gtk error?)

Posted: Sun Mar 27, 2011 4:07 am
by Erlend
Hi.

Compiles fine on my Ubuntu 10.10, seems to me like something is wrong though since it is dead slow and exits with a segfault.
I even tried to run it with debugger on, but that resulted in out of memory error:-(

Code: Select all

~/lostlabyrinth/pb$ ./laby.exe
Could not open the monster folder! (/home/erlend/lostlabyrinth/pb/monsters\)
Segmentation fault

Re: Memory error (maybe gtk error?)

Posted: Sun Mar 27, 2011 8:49 pm
by Brujah
True. It compiles because I tried around with the openscreen yesterday.
Windows and Linux are closer now than in older releases of purebasic :D
When I start in windowed mode at least it draws something but is terribly slow as you wrote. (fullscreen/windows can be changed in settings.txt)
When I open it fullscreen I just get a blank screen and program is not responding at all :(