Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
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 2249 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 http://chman-area.tuxfamily.org/tutorials.html (namely the first few), I get this error:

Quote


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)

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(Nehe03.java:141)
     at Nehe03.Nehe03.main(Nehe03.java:98)

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: 56
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:

1  
2  
if (gl.wglSwapInterval)
    gl.wglSwapInterval(...)

[ TriangularPixels.com - 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 Member




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 ?


++
Chman
Online princec

JGO Kernel


Medals: 386
Projects: 3
Exp: 16 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 Member





« 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 Member


Medals: 1


Who, me?


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

Whatwhatwhatwhatwhat?

Not supporting software mode anymore? :-/

Hellomynameis Charlie Dobbie.
Offline elias

Senior Member





« 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

Online princec

JGO Kernel


Medals: 386
Projects: 3
Exp: 16 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 Member




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

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 zparticle

Senior Member




Thick As A Brick


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

maybe a weird place topost this but http://nehe.gamedev.net/ has a new tutorial up. #41

Quote

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 Member




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 http://chman-area.tuxfamily.org
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 (delphi3d@gamedeveloper.org)) 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  
 
 
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.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (44 views)
2014-09-23 14:38:19

radar3301 (27 views)
2014-09-21 23:33:17

BurntPizza (63 views)
2014-09-21 02:42:18

BurntPizza (32 views)
2014-09-21 01:30:30

moogie (40 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
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

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!