View previous topic :: View next topic |
Author |
Message |
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Sat Jan 27, 2007 1:26 pm Post subject: Running on Linux |
|
|
I put the log.writes into the source code at this spot, around line 120 in main:
Log.write("1");
Input.processInput();
Log.write("2");
scene.update(dtime);
Log.write("3");
camera.toTexture();
Log.write("4");
Device.render();
Log.write("5");
This is the error I get:
GL_ARB_shader_objects not supported. This is ok, but rendering will be limited to the fixed-function pipelone.
GL_ARB_vertex_buffer_object support enabled.
open /dev/[sound/]dsp: Device or resource busy
Yage has been initialized.
Loading Milkshape 3D model '../res/sky/sanctuary.ms3d'.
Loading material '../res/sky/sanctuary.xml'.
Loading image '../res/sky/sanctuary.jpg'.
Uploading image '../res/sky/sanctuary.jpg' to video memory.
Model loaded in 0.265231seconds
Loading sound '../res/music/celery - pages.ogg'.
Loading material '../res/space/star.xml'.
Loading image '../res/space/star.png'.
Uploading image '../res/space/star.png' to video memory.
Loading Milkshape 3D model '../res/scifi/fighter.ms3d'.
Loading material '../res/scifi/fighter.xml'.
Loading image '../res/scifi/fighter.jpg'.
Uploading image '../res/scifi/fighter.jpg' to video memory.
Model loaded in 0.174547seconds
Loading sound '../res2/sound/ship_eng.ogg'.
Loading material '../res/fx/smoke.xml'.
Loading image '../res/fx/smoke.png'.
Uploading image '../res/fx/smoke.png' to video memory.
Loading material '../res/fx/flare1.xml'.
Loading image '../res/fx/flare1.png'.
Uploading image '../res/fx/flare1.png' to video memory.
Loading Milkshape 3D model '../res/space/asteroid1.ms3d'.
Loading material '../res/space/asteroid1.xml'.
Loading image '../res/space/asteroid1.jpg'.
Uploading image '../res/space/asteroid1.jpg' to video memory.
Model loaded in 0.549346seconds
Beginning rendering loop
1
2
Segmentation fault
Looks like the problem is scene.update(dtime)? |
|
Back to top |
|
|
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Sat Jan 27, 2007 1:39 pm Post subject: |
|
|
Oh yeah, I don't know if this helps at all, but I did the same for node/basenode.d:
writef("1");
lifetime-= delta;
writef("2");
int i = children.length-1;
writef("3");
while (i>=0)
{ writef("4");
if (children[i].lifetime<=0)
children[i].remove();
i--;
}
// Children
foreach(Node c; children.array()){
writef("5");
c.update(delta);
writef("6");
}
writef("7");
}
Run:
Beginning rendering loop
123444444444444444444444444444444444444444444444444444444444444444444444
444444444444444444444444444444444444444444444444444444444444444444444444
444444444444444444444444444444444444444444444444444444444444444444444444
444444444444444444444444444444444444444444444444444444444444444444444444
444444444444444444512345123767651234512376765123451237676512345123767651
234512376765123451237676512345123767651234512376765123451237676512345123
767651234512376765123451237676512345123767651234512376765123451237676512
345123767651234512376765123451237676512345123767651234512376765123451237
676512345123767651234512376765123451237676512345123767651234512376765123
451237676512345123767651234512376765123451237676512345123767651234512376
765123451237676512345123767651234512376765123451237676512345123767651234
512376765123451237676512345123767651234512376765123451237676512345123767
651234512376765123451237676512345123767651234512376765123451237676512345
123767651234512376765123451237676512345123767651234512376765123451237676
512345123767651234512376765123451237676512345123767651234512376765123451
237676512345123767651234512376765123451237676512345123767651234512376765
123451237676512345123767651234512376765123451237676512345123767651234512
376765123451237676512345123767651234512376765123451237676512345123767651
234512376765123451237676512345123767651234512376765123451237676512345123
767651234512376765123451237676512345123767651234512376765123451237676512
345123767651234512376765123451237676512345123767651234512376765123451237
676512345123767651234512376765123451237676512345123767651234512376765123
451237676512345123767651234512376765123451237676512345123767651234512376
765123451237676512345123767651234512376765123451237676512345123767651234
512376765123451237676512345123767651234512376765123451237676512345123767
651234512376765123451237676512345123767651234512376765123451237676512345
123767651234512376765123451237676512345123767651234512376765123451237676
512345123767651234512376765123451237676512345123767651234512376765123451
23767651234512376765123451237676
Segmentation fault |
|
Back to top |
|
|
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Sat Jan 27, 2007 8:47 pm Post subject: |
|
|
Got it!!!
It was my audio mixer, I figured it out not long after you told me that it looked like an openal problem. All I need to do was "aoss ./bin/main" and it worked. Hehe. |
|
Back to top |
|
|
JoeCoder
Joined: 29 Oct 2005 Posts: 294
|
Posted: Sun Jan 28, 2007 2:56 pm Post subject: |
|
|
Awesome and glad it worked. What's aoss?
In the future you can insert Code: | debug scope( failure ) writef("Backtrace xx "__FILE__"(",__LINE__,")\n"); | into any suspect functions (and functions that call them) and they will be included in a backtrace printout on failure. There might be an easier way to get a backtrace via gdc or various debuggers, but I haven't looked into them. The best solution would be if Walter includes backtrace support directly into dmd. |
|
Back to top |
|
|
Deformative
Joined: 27 Jan 2007 Posts: 13
|
Posted: Sun Jan 28, 2007 5:04 pm Post subject: |
|
|
"aoss is a simple wrapper script which facilitates the use of the ALSA OSS compatibility library. It just sets the appropriate LD_PRELOAD path and then runs the command."
I guess that openal only has oss support(Very old, stands for open sound system), I have have alsa (Advanced Linux Sound Architecture) so I needed to send it through a wrapper to make it work.
That's my guess. [shrugs] |
|
Back to top |
|
|
|