Crystal Space
Welcome, Guest. Please login or register.
September 30, 2014, 09:10:29 pm

Login with username, password and session length
Search:     Advanced search
9020 Posts in 2053 Topics by 8556 Members
Latest Member: Boshyeng
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  iEngine::Prepare() - segmentation fault
« previous next »
Pages: [1] Print
Author Topic: iEngine::Prepare() - segmentation fault  (Read 3338 times)
brockmeister
Newbie
*
Posts: 2


View Profile
« on: March 20, 2005, 02:05:17 pm »

I'm attempting my first CS app, kind of following the tutorial on the main site. It works fine up until the point when I call iEngine::Prepare(). It goes like this:

Code:
csRef<iLight> light;
iLightList* ll = room->GetLights();

light = engine->CreateLight("light1", csVector3(-3, 5, 0), 10, csColor(1, 0, 0));
ll->Add(light);

std::cout << "Preparing engine...";
engine->Prepare();


'engine' is a csRef<iEngine>, grabbed out of the iObject registry.

I used the following plugin requests: CS_REQUEST_VFS, CS_REQUEST_OPENGL3D, CS_REQUEST_ENGINE, CS_REQUEST_IMAGELOADER, CS_REQUEST_LEVELLOADER, CS_REQUEST_END

This is the output I get:
Quote
Lightmaps are not up to date (no 'lm_precalc_info' found in cache).
Recalculation of lightmaps forced.
Initializing lighting (1 meshes).
Shining lights (1 lights).
Segmentation fault


I'm using Ubuntu Linux 5.04 (Hoary), with Crystal Space 0.98.
Logged
acraig
Newbie
*
Posts: 14


View Profile Email
« Reply #1 on: March 20, 2005, 09:46:56 pm »

Can you run in gdb ( assuming you built Crystal Space in debug mode)?  This will give a better idea of exactly where the crash is happening.
Logged
brockmeister
Newbie
*
Posts: 2


View Profile
« Reply #2 on: March 21, 2005, 05:59:26 pm »

Done - it says:
Quote
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210512992 (LWP 9062)]
0xb5d7948e in csThing::CastShadows () from /usr/lib/crystalspace/thing.so


Hmm, casting shadows...can't really see what the problem could be.
Logged
acraig
Newbie
*
Posts: 14


View Profile Email
« Reply #3 on: March 21, 2005, 08:43:16 pm »

Can you paste a bit more from the back trace?
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.186 seconds with 15 queries.