FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Running on Linux

 
Post new topic   Reply to topic     Forum Index -> Yage
View previous topic :: View next topic  
Author Message
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Sat Jan 27, 2007 1:26 pm    Post subject: Running on Linux Reply with quote

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
View user's profile Send private message AIM Address
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Sat Jan 27, 2007 1:39 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Sat Jan 27, 2007 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Sun Jan 28, 2007 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Deformative



Joined: 27 Jan 2007
Posts: 13

PostPosted: Sun Jan 28, 2007 5:04 pm    Post subject: Reply with quote

"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
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Yage All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group