Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (576)
games submitted by our members
Games in WIP (497)
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  
  LWJGL 2.1.0 VM crash  (Read 2891 times)
0 Members and 1 Guest are viewing this topic.
Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Posted 2009-05-14 21:18:01 »

I just updated my game to use LWJGL 2.1.0, but I'm now getting a VM crash:

Quote
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0b797f57, pid=2500, tid=3040
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-b105 mixed mode, sharing)
# Problematic frame:
# C  [igldev32.dll+0x7f57]
#
# An error report file with more information is saved as hs_err_pid2500.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

[error occurred during error reporting, step 270, id 0xc0000005]

It rather looks like this new LWJGL is causing my video drivers to crash, which the old version from LWJGL that I used didn't do.

I'm using:
WinXP SP3, java 1.6.0_13, Mobile Intel 945GM Express

Any idea?

Cheers,
Erik

Offline bobjob

JGO Knight


Medals: 10
Projects: 6


David Aaron Muhar


« Reply #1 - Posted 2009-05-14 21:29:55 »

Is it all LWJGL applications?
I get very similar errors, with the new LWJGL version, if the application terminates pre-maturely before a call to Display.destroy();

Have you tried launching with lwjgl debugger on (command line arguement -Dorg.lwjgl.util.Debug=true);
also maybe turn on trace logging in the java control panel, and check the sun/deployment/log files.

My Projects
Games, Webcam chat, Video screencast, PDF tools.

Javagaming.org with chat room
Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Reply #2 - Posted 2009-05-14 21:49:00 »

I don't know if it's all applications. Do you know another LWJGL 2.1.0 application somewhere that I can try?

Debug gave me this:
Quote
Initial mode: 1280 x 800 x 32 @60Hz
*** START ***
1280x800 1.6
OpenGL14 was reported as available but an entry point is missing
F
Removed 0 duplicate displaymodes
Setting mode 800 x 600 x 32 @60Hz
VSync=true
Throttle=true
getPathFromClassLoader: searching for: OpenAL32
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
getPathFromClassLoader: searching for: lwjgl
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
getPathFromClassLoader: searching for: lwjgl
Failed to locate findLibrary method: java.lang.NoSuchMethodException: sun.misc.Launcher$AppClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.net.URLClassLoader.findLibrary(java.lang.String)
Failed to locate findLibrary method: java.lang.NoSuchMethodException: java.security.SecureClassLoader.findLibrary(java.lang.String)
Found 44 OpenAL paths
T
Failed to load D:\Program Files\Java\jre1.6.0\bin\OpenAL64.dll: C
T
Failed to load .\OpenAL64.dll: C
T
Failed to load C:\WINDOWS\Sun\Java\bin\OpenAL64.dll: C
T
Failed to load C:\WINDOWS\system32\OpenAL64.dll: C
T
Failed to load C:\WINDOWS\OpenAL64.dll: C
T
Failed to load C:\Program Files\PC Connectivity Solution\\OpenAL64.dll: C
T
Failed to load C:\Perl\bin\\OpenAL64.dll: C
T
Failed to load C:\WINDOWS\system32\OpenAL64.dll: C
T
Failed to load C:\WINDOWS\OpenAL64.dll: C
T
Failed to load C:\WINDOWS\System32\Wbem\OpenAL64.dll: C
T
Failed to load C:\Program Files\Java\jdk1.6.0_05\bin\OpenAL64.dll: C
T
Failed to load C:\Program Files\gs\gs8.54\bin\OpenAL64.dll: C
T
Failed to load C:\Program Files\gs\gs8.54\lib\OpenAL64.dll: C
T
Failed to load c:\Program Files\Microsoft SQL Server\90\Tools\binn\\OpenAL64.dll: C
T
Failed to load C:\Program Files\Microsoft Driver Test Manager\Controller\\OpenAL64.dll: C
T
Failed to load C:\Python25\OpenAL64.dll: C
T
Failed to load C:\Program Files\Common Files\Symbian\tools\OpenAL64.dll: C
T
Failed to load C:\Program Files\CSL Arm Toolchain\bin\OpenAL64.dll: C
T
Failed to load C:\Program Files\TortoiseSVN\bin\OpenAL64.dll: C
T
Failed to load C:\Program Files\Common Files\Nero\Lib\\OpenAL64.dll: C
T
Failed to load D:\eclipse\workspace\HighwayBlast\OpenAL64.dll: C
T
/player.png
Texture '/player.png' loaded.
Texture ID 0 assigned
Loaded clip /explo1.wav
Loaded clip /boing.wav
Loaded clip /fx2.wav
Texture ID 1 assigned
Texture ID 2 assigned
/tunnel0.png
Texture '/tunnel0.png' loaded.
Texture ID 3 assigned
/tunnel1.png
Texture '/tunnel1.png' loaded.
Texture ID 4 assigned
/tunnel2.png
Failed to load OpenAL64.dll: C
T
Failed to load D:\Program Files\Java\jre1.6.0\bin\OpenAL32.dll: C
T
F
Texture '/tunnel2.png' loaded.
Texture ID 5 assigned
/tunnel3.png
Texture '/tunnel3.png' loaded.
Texture ID 6 assigned
/bg5.jpg
Texture '/bg5.jpg' loaded.
Texture ID 7 assigned
/title.png
Texture '/title.png' loaded.
Texture ID 8 assigned
/levelscore.png
Texture '/levelscore.png' loaded.
Texture ID 9 assigned
/19x16Lucida.png
Texture '/19x16Lucida.png' loaded.
Texture ID 10 assigned
Frequency:60
/tile.jpg
Texture '/tile.jpg' loaded.
Texture ID 11 assigned
Texture ID 12 assigned
/TileDrag.png
Texture '/TileDrag.png' loaded.
Texture ID 13 assigned
/TileSpeed.png
Texture '/TileSpeed.png' loaded.
Texture ID 14 assigned
/gagaplay.png
Texture '/gagaplay.png' loaded.
Texture ID 15 assigned
Loaded clip /claps.wav
Loaded clip /low1.wav
INIT COMPLETE

After initialization (which seemed to be successful, although the LWJGL debug log output seems a bit worrying), the line that causes the crash is this:
Quote
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
...which is a bit strange since the INIT already did the same successfully, and it's such a trivial thing...

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 70
Projects: 15


★★★★★


« Reply #3 - Posted 2009-05-14 21:54:16 »

I don't know if it's all applications. Do you know another LWJGL 2.1.0 application somewhere that I can try?

the demos over at http://www.lwjgl.org/demos.php should be using LWJGL 2.1.0
Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Reply #4 - Posted 2009-05-14 22:18:04 »

I also tested many other versions of LWJGL, and I only got the previous version that the game used to work (1.0 beta; yes I know, it's ancient  persecutioncomplex). Other versions I tried (2.0.1, 2.0, 1.1.4) all caused the same VM crash here.

But... the demo's work fine here, so it's probably something I'm doing wrong (or at least there is a workaround) so there's hope...

Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Reply #5 - Posted 2009-05-14 22:40:51 »

I think I did something wrong in the initialization process. It's strange that it didn't crash in the old LWJGL, but in any case the problem is solved.  Smiley

Offline gouessej

« In padded room »



TUER


« Reply #6 - Posted 2009-05-15 14:08:40 »

I think I did something wrong in the initialization process. It's strange that it didn't crash in the old LWJGL, but in any case the problem is solved.  Smiley
Please can you give us more details to allow us to have a quick fix to provide if someone else makes the same mistake?

Offline erikd

JGO Ninja


Medals: 15
Projects: 4
Exp: 14 years


Maximumisness


« Reply #7 - Posted 2009-05-17 20:55:32 »

Please can you give us more details to allow us to have a quick fix to provide if someone else makes the same mistake?

When it crashed, I had this in the beginning of the initialization, before setting the display mode:
1  
2  
        Display.setFullscreen(true);
        Display.create();


I moved those lines to after setting the display mode

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.

xsi3rr4x (12 views)
2014-04-15 18:08:23

BurntPizza (10 views)
2014-04-15 03:46:01

UprightPath (24 views)
2014-04-14 17:39:50

UprightPath (10 views)
2014-04-14 17:35:47

Porlus (27 views)
2014-04-14 15:48:38

tom_mai78101 (49 views)
2014-04-10 04:04:31

BurntPizza (107 views)
2014-04-08 23:06:04

tom_mai78101 (207 views)
2014-04-05 13:34:39

trollwarrior1 (176 views)
2014-04-04 12:06:45

CJLetsGame (182 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!