Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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  
  Problems with tutorials on Chman's lwjgl site  (Read 4070 times)
0 Members and 1 Guest are viewing this topic.
Offline mitu

Senior Newbie

Java game newbie extraordinaire!

« Posted 2003-03-07 08:40:54 »

Yes, more errors for me  Roll Eyes

I know Chman frequents this board, so I'll post my plea for help here Smiley

Whenever I run any of the examples here (namely the first few), I get this error:


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0

NOTE: We are unable to locate the function name symbol for the error
     just occurred. Please refer to release documentation for possible
     reason and solutions.

Current Java thread:
     at org.lwjgl.opengl.GL.wglSwapIntervalEXT(Native Method)
     at Nehe03.Nehe03.init(
     at Nehe03.Nehe03.main(

Dynamic libraries:
0x00400000 - 0x00407000       C:\Program Files\Java\j2re1.4.1_02\bin\javaw.exe
0x77F80000 - 0x77FFB000       C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0B000       C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F35000       C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DB0000       C:\WINNT\system32\RPCRT4.DLL
0x77E10000 - 0x77E74000       C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000       C:\WINNT\system32\GDI32.DLL
0x78000000 - 0x78046000       C:\WINNT\system32\MSVCRT.dll
0x6D340000 - 0x6D46A000       C:\Program Files\Java\j2re1.4.1_02\bin\client\jvm.dll
0x77570000 - 0x775A0000       C:\WINNT\System32\WINMM.dll
0x6D1E0000 - 0x6D1E7000       C:\Program Files\Java\j2re1.4.1_02\bin\hpi.dll
0x6D310000 - 0x6D31E000       C:\Program Files\Java\j2re1.4.1_02\bin\verify.dll
0x6D220000 - 0x6D239000       C:\Program Files\Java\j2re1.4.1_02\bin\java.dll
0x6D330000 - 0x6D33D000       C:\Program Files\Java\j2re1.4.1_02\bin\zip.dll
0x10000000 - 0x1003B000       C:\WINNT\system32\lwjgl.dll
0x69510000 - 0x695D7000       C:\WINNT\System32\OPENGL32.dll
0x6FAC0000 - 0x6FADF000       C:\WINNT\System32\GLU32.dll
0x51000000 - 0x5104D000       C:\WINNT\System32\DDRAW.dll
0x728A0000 - 0x728A6000       C:\WINNT\System32\DCIMAN32.dll
0x5F580000 - 0x5F620000       C:\WINNT\System32\DINPUT.dll
0x6E420000 - 0x6E426000       C:\WINNT\System32\INDICDLL.dll
0x75E60000 - 0x75E7A000       C:\WINNT\System32\IMM32.dll
0x6F9A0000 - 0x6F9A8000       C:\WINNT\System32\HID.DLL
0x77880000 - 0x7790D000       C:\WINNT\System32\SETUPAPI.DLL
0x77C10000 - 0x77C6D000       C:\WINNT\System32\USERENV.DLL
0x716F0000 - 0x7177A000       C:\WINNT\system32\COMCTL32.dll
0x0FEA0000 - 0x0FF82000       C:\WINNT\System32\ssicdnt.dll
0x77920000 - 0x77943000       C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000       C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000       C:\WINNT\System32\PSAPI.DLL

Local Time = Fri Mar 07 11:33:58 2003
Elapsed Time = 1
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.1_02-b06 mixed mode)
# An error report file has been saved as hs_err_pid1228.log.
# Please refer to the file for further information.

the log file doesn't seem to give any more information than is already given Sad

I'd really appreciate any help Smiley

Offline Orangy Tang

JGO Kernel

Medals: 57
Projects: 11

Monkey for a head

« Reply #1 - Posted 2003-03-07 08:52:21 »

wglSwapInterval is an optional extension, so it may or may not exist depending on your hardware. You need to check for its avalibility before calling it, something like:

if (gl.wglSwapInterval)

[ - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline mitu

Senior Newbie

Java game newbie extraordinaire!

« Reply #2 - Posted 2003-03-07 09:36:29 »

Okay, excellent, got it sorted Smiley

Thanks very much!

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Chman

Junior Devvie

Nothing more that... Java games are cool !

« Reply #3 - Posted 2003-03-07 18:16:46 »

Orangy Tang was faster than me... Smiley

Just a question to Pwincess : what is your video card ?

Offline princec

« JGO Spiffy Duke »

Medals: 1033
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #4 - Posted 2003-03-07 19:24:35 »

She's not using hardware acceleration; look at the list of dlls there. That's why wglSwapIntervalEXT isn't available. And of course Chman has forgotten to check first before using it  Wink

Hey, you'll all be pleased to know the new 0.5 release which is lurking on Brian's harddrive now throws a friendly runtime exception instead of blowing up the VM if you try to access a function which is not available (in the debug build only of course).

Cas Smiley

Offline elias

Senior Devvie

« Reply #5 - Posted 2003-03-07 20:20:20 »

... and 0.5 will even refuse to run in software mode in the first place...

- elias

Offline cfmdobbie

Senior Devvie

Medals: 1

Who, me?

« Reply #6 - Posted 2003-03-08 11:21:38 »


Not supporting software mode anymore? :-/

Hellomynameis Charlie Dobbie.
Offline elias

Senior Devvie

« Reply #7 - Posted 2003-03-08 11:30:16 »

No. Is that a problem for you? I always thought the software opengl driver was way too slow to be usable.

- elias

Offline princec

« JGO Spiffy Duke »

Medals: 1033
Projects: 3
Exp: 20 years

Eh? Who? What? ... Me?

« Reply #8 - Posted 2003-03-08 12:58:03 »

Is is way too slow isn't it! Usually when you get software mode it's because you've done something wrong! So we're filtering it out completely.

Cas Smiley

Offline gregorypierce

Senior Devvie

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

« Reply #9 - Posted 2003-03-08 21:44:23 »

You're not going to leave that as an option to the developer? Starting to head down that dark path that Java3D took  Wink

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 zparticle

Senior Devvie

Thick As A Brick

« Reply #10 - Posted 2003-04-04 13:57:34 »

maybe a weird place topost this but has a new tutorial up. #41


The newest tutorial (lesson 41) will teach you how to create volumetric fog using the EXT_fog_coord extension. I spent a few hours coding the demo and about 2 days (4 hours each day) writing the tutorial. My mind is a little fried at the moment. I have had very little free time these days, so the actual demo is not overly complex. Please keep that in mind. The tutorial is extremely detailed however. As always, I tried to explain things in simple english. This tutorial although simple is not for beginners. The tutorial also uses the NeHe IPicture code to load the texture used in the demo. Again, I made every effort to explain how the IPicture code works. Hopefully more people will start using it in projects of their own.

Offline whome

Junior Devvie

Carte Noir Java

« Reply #11 - Posted 2003-08-23 17:54:20 »

[win2k, lwjgl 0.7]
ForYourInformation about Matrox G400 problem and resolution. This may help you to find out why Matrox card is not easy to get play well.

1) Run RainingDay demo from
C:\projects\java\games\J3d\lwjgl\RainingDay>c:\j2sdk1.4.2\bin\java.exe -cp ..\li
b\lwjgl.jar;. -Djava.library.path=..\lib RainingDay
Selecting NT display mode check
Querying Matrox Millennium G400 - English device
-> result: we are back in dos prompt without any exceptions. Now, we need to go through source code to see what's wrong....

2) Comment Display.getAvailableDisplayModes() method
After System.out analyze, I comment getAvailableDisplayModes() method in init_lwjgl method.

Then manually set a window params, not really idea what all params should be, but this one seems to run.
Window.create("Lwjgl Test", 50, 50, 640, 480, 16, 0, 8, 0);
-> Result: will give a core dump and errors from .dll library

3) Comment GL.wglSwapIntervalEXT(1) method
More analyzing and I comment the following block in init_gl() method.
// if(GLCaps.WGL_EXT_swap_control) {
//    GL.wglSwapIntervalEXT(1);
// }

-> RESULTS: Demo started first time in Matrox G400 suxor card. I made a short google. SwapInterval requires "WGL_EXT_swap_control" extension.

GLInfo.exe (Tom Nuydens ( tool can list all GL capabilities. It says my G400 has GL_EXT_swap_control extension, but still it crashes if is called from the app.

I could not find gl.wglSwapInterval method anymore in lwgl v0.7 library.

* Can anyone say what am I missing now if always comment that row from each demo?

* And why is it, that DisplayModes iterator crashes without any coredumps or extensions?

* Last major problem: If I move a focus away from lwjgl window to an another program, then lwgjl frame is freezed. I cannot switch back to it, all can I do is just kill it.
Pages: [1]
  ignore  |  Print  

EgonOlsen (45 views)
2018-06-10 19:43:48

EgonOlsen (27 views)
2018-06-10 19:43:44

EgonOlsen (47 views)
2018-06-10 19:43:20

DesertCoockie (210 views)
2018-05-13 18:23:11

nelsongames (127 views)
2018-04-24 18:15:36

nelsongames (126 views)
2018-04-24 18:14:32

ivj94 (867 views)
2018-03-24 14:47:39

ivj94 (128 views)
2018-03-24 14:46:31

ivj94 (779 views)
2018-03-24 14:43:53

Solater (143 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!