Slick Forums

Discuss the Slick 2D Library
It is currently Tue May 21, 2013 6:16 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Mon Nov 24, 2008 5:38 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
Code:
Mon Nov 24 12:26:47 EST 2008 INFO:Using Local File System
Mon Nov 24 12:26:47 EST 2008 INFO:Slick Build #237
Mon Nov 24 12:26:47 EST 2008 INFO:LWJGL Version: 2.0b1
Mon Nov 24 12:26:47 EST 2008 INFO:OriginalDisplayMode: 1600 x 1200 x 32 @60Hz
Mon Nov 24 12:26:47 EST 2008 INFO:TargetDisplayMode: 1024 x 768 x 0 @0Hz
Mon Nov 24 12:26:48 EST 2008 INFO:Starting display 1024x768
Mon Nov 24 12:26:48 EST 2008 INFO:Found 0 controllers
Mon Nov 24 12:26:49 EST 2008 INFO:Initialising sounds..
Mon Nov 24 12:26:49 EST 2008 INFO:- Sound works
Mon Nov 24 12:26:49 EST 2008 INFO:- 64 OpenAL source available
Mon Nov 24 12:26:49 EST 2008 INFO:- Sounds source generated
ibxm alpha 45 (c)2006 mumart@gmail.com
Mon Nov 24 12:26:55 EST 2008 ERROR:OpenAL error: Invalid Operation (40964)
org.lwjgl.openal.OpenALException: OpenAL error: Invalid Operation (40964)
   at org.lwjgl.openal.Util.checkALError(Util.java:64)
   at org.lwjgl.openal.AL10.alSourceQueueBuffers(AL10.java:1171)
   at ibxm.OpenALMODPlayer.play(OpenALMODPlayer.java:140)
   at org.newdawn.slick.openal.MODSound.playAsMusic(MODSound.java:45)
   at org.newdawn.slick.Music.startMusic(Music.java:238)
   at org.newdawn.slick.Music.loop(Music.java:216)
   at org.newdawn.slick.Music.loop(Music.java:189)
   at buildergame.gamestate.InGameState.levelLoaded(InGameState.java:171)
   at buildergame.gamestate.LevelInitState.enter(LevelInitState.java:188)
   at org.newdawn.slick.state.StateBasedGame.update(StateBasedGame.java:245)
   at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:552)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:371)
   at buildergame.BuilderGame.main(BuilderGame.java:128)
Mon Nov 24 12:26:55 EST 2008 ERROR:Game.update() failure - check the game code.
org.newdawn.slick.SlickException: Game.update() failure - check the game code.
   at org.newdawn.slick.GameContainer.updateAndRender(GameContainer.java:558)
   at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:371)
   at buildergame.BuilderGame.main(BuilderGame.java:128)


You can try it using the XM at http://www.freewebs.com/jeromeblouin/xa ... llenium.xm

As this seems to be an OpenAL bug, are there free tools to open XM/MOD files and save them in other mod formats?

Thanks!

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 5:43 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
The second XM I try craches as well. How stable OpenAL is for XM format?

UPDATE: Any mod/XM I try craches OpenAL. I use slick 237. Is there a dll I might be missing? Any other external dependency that create incompatibilities on my system?

Thanks

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 7:27 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Looks like an issue with the streaming implementation. Could you try streaming an OGG and see if you get the same result?

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 7:53 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
OGG works just fine.

Is it possible that it's caused by my sound card?

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 7:56 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
It's a bit wierd if *streaming* oggs works but MOD/XM doesn't - if it were a sound card problem I'd think streaming was at fault generally.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 24, 2008 8:03 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
Should I try with the streaming boolean false?

EDIT: Do you reproduce the bug?

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
PostPosted: Tue Nov 25, 2008 5:52 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
I found the cause of the issue. My game can play any music format, no problem here. The issue is that I use more than 1 instance of Music class, not at the same time but when I call stop on the first instance, create the second instance and call call loop on it then OpenAL crashes. I Also call loop on the first instance at the beginning. So to me it's a bug either in OpenAL or on how Slick makes use of OpenAL.

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 5:57 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
Ho, new findings: if I set the streaming flag to true to both Music constructors then there's no crashes. :?

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 6:34 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Ah, so twas crashing when you used one streaming and one not?

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 6:51 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
yep, but this shouldn't crash OpenAL right? So as soon as I don't ask streaming then the error occurs. That shouldn't happen.

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 8:12 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Yeah, definitely bugged. I'll try and work out whats going on, it's a different use case to before.

Kev


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 25, 2008 8:23 pm 
Offline
Regular
User avatar

Joined: Tue Jan 09, 2007 6:04 pm
Posts: 126
Location: Montreal, Quebec, Canada
OK, you can count on my help if you need more details to troubleshoot the issue.

_________________
Jerome Blouin

Play Greedy Snakes 4k
Play Incredibuilder
Game Blog


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 28, 2008 7:24 pm 
Offline
Site Admin
User avatar

Joined: Thu Jan 01, 1970 12:00 am
Posts: 3143
Should be fixed in SVN.

Kev


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group