Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (600)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  No AL object created  (Read 3079 times)
0 Members and 1 Guest are viewing this topic.
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Posted 2003-11-22 11:41:33 »

Ok, latest binaries and source as of now, and ALut is in there so thats one problem fixed. However now the first tutorial just stops dead with a NPE almost straight away.

It seems that the ALFactory.getAL(); just returns null straight away. Annoyingly trying to step though this ends up with line numbers not being found so its tricky to figure out where it goes wrong. Currently i'm seeing it go into ClassLoader.findNative(ClassLoader, String) in the middle of ALFactory.init(String[]) and eventually find 'something' on its third attempt. Almost straight after than the whole lots returns and i'm left sitting with a null AL object.

Of course this is all with lesson 1, so it blindly goes and calls ALut.alutInit, leaving the follwing console output:
Go TEAM!
Entering alutInit()
In alutInit(): Device Name = MMSYSTEM
Entering alcOpenDevice()
In alcOpenDevice: Device Pointer = -2116564104
Exiting alcOpenDevice()
In alutInit(): Device = net.java.games.joal.ALC$Device@81d7cb78
Exiting alutInit()

System is an AthlonXP 2600+, 512Mb ram, sound card is a PCI Creative SoundBlaster Audigy. Other small (native) AL test programs work fine.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #1 - Posted 2003-11-22 15:23:43 »

Okay this is a new one. The nightly builds are created with optimize turned on, so you lose the line numbers. If you build from the source yourself you should get them.

What OS are you running? (XP, 2000 or something else?)

The most frustrating thing here is that on several systems, including the few I've managed to test on personally, we're running fine, while on a number of others we're seeing crashes that are consistent on one machine, but different from the failures we're seeing on other machines. Grrrrr..... :-/

I'm going to put together a few pure native tests and put them up on the project page for people to run. Hopefully, these issues are all related and we'll be able to track them down soon.

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #2 - Posted 2003-11-22 15:29:01 »

Quote
Okay this is a new one. The nightly builds are created with optimize turned on, so you lose the line numbers. If you build from the source yourself you should get them.

While building it myself is possible solution, can we get the optimise turned off? At least until Joal is actually stable? I'm getting somewhat tired of jumping though hoops just so I can attempt to debug someone elses code. Angry

Forgot to list the OS, its a WinXP machine.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #3 - Posted 2003-11-22 16:52:49 »

Can do. I'll send an email to the buildmistress asking her to turn off optimize for joal until we've ironed this out.

EDIT: I just sent Oiching the message. I doubt she'll to get to it before Monday, but I assume as of Monday night's build, optimize will be turned off.

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #4 - Posted 2003-11-22 18:21:18 »

In the meantime, I've added the latest version of the code, with debug turned on, along with a test class here:

http://joal.dev.java.net/test.zip

try unpacking it and running:

1  
ant clean -Djava.library.path="./bin" run

from the command line.

I don't anticipate this fixing the crash, but it should give you the line numbers. Let me know what you get.

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #5 - Posted 2003-11-22 18:34:38 »

Line numbers and debugging working now, but theres not much more that I can tell you other than the output:

net.java.games.joal.OpenALException: Could not load ALC function pointers.
     at net.java.games.joal.ALFactory.init(Native Method)
     at net.java.games.joal.ALFactory.initialize(ALFactory.java:61)
     at net.java.games.joal.ALFactory.getAL(ALFactory.java:88)
     at com.vecript.test.openal.SingleStaticSource.main(SingleStaticSource.java:132)

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #6 - Posted 2003-11-22 18:45:41 »

hmm.. I updated my sound card drivers (a whopping 13mb) and it works fine now Shocked They were new a couple of months ago, but the 'latest' seem to have fixed things Smiley

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #7 - Posted 2003-11-22 19:37:46 »

two down, 774 platform configurations to go...

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #8 - Posted 2003-11-23 00:59:25 »

I've added a poll to the forum in an attempt to get an assessment of how stable the current version of JOAL is on different windows platform configurations.  Please follow the instructions on post #1 of the poll before voting. Your participation in this survey will be greatly appreciated, and go a long way toward getting us to a stable release. Thanks in advance!

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #9 - Posted 2003-11-24 18:36:35 »

Might be useful if we had both release and debug builds of these libraries - both native and jar.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Athomas Goldberg

Junior Devvie




Grrrrrr...


« Reply #10 - Posted 2003-11-24 21:58:52 »

Quote
Might be useful if we had both release and debug builds of these libraries - both native and jar.

Yeah. It should be easy enough to set up in Ant, but I should talk to our buildmistress before making any changes of this nature.

Athomas Goldberg
Project Lead / Wildcard
Game Technologies Group
Sun Microsystems, Inc.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (28 views)
2014-12-15 09:26:44

Mr.CodeIt (19 views)
2014-12-14 19:50:38

BurntPizza (37 views)
2014-12-09 22:41:13

BurntPizza (72 views)
2014-12-08 04:46:31

JscottyBieshaar (34 views)
2014-12-05 12:39:02

SHC (46 views)
2014-12-03 16:27:13

CopyableCougar4 (42 views)
2014-11-29 21:32:03

toopeicgaming1999 (110 views)
2014-11-26 15:22:04

toopeicgaming1999 (96 views)
2014-11-26 15:20:36

toopeicgaming1999 (29 views)
2014-11-26 15:20:08
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!