Memory error (maybe gtk error?)

Linux specific forum
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Memory error (maybe gtk error?)

Post 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
User avatar
Erlend
Enthusiast
Enthusiast
Posts: 125
Joined: Mon Apr 19, 2004 8:22 pm
Location: NORWAY

Re: Memory error (maybe gtk error?)

Post 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
User avatar
Brujah
Enthusiast
Enthusiast
Posts: 237
Joined: Mon Nov 03, 2003 7:45 pm
Location: Germany
Contact:

Re: Memory error (maybe gtk error?)

Post 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 :(
Post Reply