Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Author Topic: Segmentation fault  (Read 2504 times)

Zéze

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
Segmentation fault
« on: September 14, 2008, 06:32:41 AM »

Hi. Firstly, sorry, if i post to wrong place.

I want to try Ogre for a basic game project. I'm using Ubuntu. When i try a sample, that error shows up at console :
Code: [Select]
...
Texture: BumpyMetal.jpg: Loading 1 faces(PF_R8G8B8,512x512x1) with 5 hardware generated mipmaps from Image. Internal format is PF_X8R8G8B8,512x512x1.
*** Initializing OIS ***
Segmentation fault

I think, i installed everything, ois, cegui & ogre, properly. But i stucked there. Is that about ois or what should i do ?
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Re: Segmentation fault
« Reply #1 on: September 14, 2008, 09:50:24 AM »

Can post the whole ogre.log and a stack trace?
Without knowing where it crashes, the problem can be hard to track.  ;)
Logged

Zéze

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
Re: Segmentation fault
« Reply #2 on: September 14, 2008, 12:03:39 PM »

it exceeds the 20000 characters, so uploaded to rapid. i guess it is that ; http://rapidshare.com/files/145292870/ogrelog.txt.html
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Re: Segmentation fault
« Reply #3 on: September 14, 2008, 12:13:02 PM »

There doesn't seem to be anything too significant in the log, but the stack trace is important as well.
With it, I can see if it is crashing in OIS, Ogre, or somewhere else.

It looks like you're using linux, you can generally get a stack trace by running your program in gdb.
This link may help you get a stack trace: http://www.cs.umd.edu/class/sum2005/cmsc420/gdb.html.
Logged

Zéze

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
Re: Segmentation fault
« Reply #4 on: September 14, 2008, 12:52:06 PM »

Thanks for your help, really :) I'm looking to it now.
Logged

Zéze

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
Re: Segmentation fault
« Reply #5 on: September 14, 2008, 04:18:42 PM »

i guess, after i run the same sample with gbd, everything was same except that 3 lines;
Code: [Select]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6bec720 (LWP 7104)]
0x00000000 in ?? ()

also, when it starts to run with gbd, black screen didn't dissappear this time. but i didn't move arrow out of the black screen -not freeze-. so i try terminal, it worked, now i am looking for log file. tomorrow, i will post it. at least, i hope :)
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Re: Segmentation fault
« Reply #6 on: September 14, 2008, 05:04:50 PM »

After it starts up, go to the console that has gdb running, type "bt" and hit enter. That will give the full stack trace.
Logged

Zéze

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
Re: Segmentation fault
« Reply #7 on: September 14, 2008, 05:26:53 PM »

Ok. i got it. Needed to use "set logging file asd.txt" and "set logging on".

Code: [Select]
#0  0xb7fb5410 in __kernel_vsyscall ()
#1  0xb757f085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7580a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb778f480 in __gnu_cxx::__verbose_terminate_handler ()
   from /usr/lib/libstdc++.so.6
#4  0xb778cd05 in ?? () from /usr/lib/libstdc++.so.6
#5  0xb778cd42 in std::terminate () from /usr/lib/libstdc++.so.6
#6  0xb778cd65 in ?? () from /usr/lib/libstdc++.so.6
#7  0xb778c7d8 in __cxa_call_unexpected () from /usr/lib/libstdc++.so.6
#8  0xb6afa03e in dllStartPlugin () at OgreGLEngineDll.cpp:38
#9  0xb7d88016 in Ogre::Root::loadPlugin (this=0x805d7d8,
    pluginName=@0xbf8b576c) at OgreRoot.cpp:1072
#10 0xb7d8bea8 in Ogre::Root::loadPlugins (this=0x805d7d8,
    pluginsfile=@0xbf8b5894) at OgreRoot.cpp:894
#11 0xb7d90093 in Root (this=0x805d7d8, pluginFileName=@0xbf8b5894,
    configFileName=@0xbf8b588c, logFileName=@0xbf8b5888) at OgreRoot.cpp:237
#12 0x0804ee1d in ExampleApplication::setup (this=0xbf8b58d4)
    at ../../../Samples/Common/include/ExampleApplication.h:118
#13 0x0804bc04 in main ()
    at ../../../Samples/Common/include/ExampleApplication.h:89
 
Logged

mysterycoder

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 447
    • View Profile
Re: Segmentation fault
« Reply #8 on: September 14, 2008, 05:37:18 PM »

It seems like this is a failure in Ogre.
You might want to take it over to their forums and post your log and stack trace.
Logged

Zéze

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 6
    • View Profile
Re: Segmentation fault
« Reply #9 on: September 14, 2008, 05:39:09 PM »

Ok, i will do that. Thanks for your help again.
Logged