Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (499)
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  
  Bad bad bad!  (Read 1912 times)
0 Members and 1 Guest are viewing this topic.
Offline darcone

Junior Member




Size matters


« Posted 2003-04-03 07:29:12 »

Ok, heres the deal. The game works on my ti4200 at home but when I try to run it on my Fujitsu Siemens c1020 laptop I get lots of errors. I havent tried the lwjgl from AF yet, could it fix my error?
What happens is that the display is shown and then it crashes before it draws anything.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
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 Schlug.initGL(Schlug.java:158)
      at Schlug.run(Schlug.java:43)
      at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x00400000 - 0x00406000       C:\WINNT\system32\java.exe
0x77F80000 - 0x77FF9000       C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0A000       C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F36000       C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DAF000       C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000       C:\WINNT\system32\MSVCRT.dll
0x6D340000 - 0x6D46A000       C:\Program Files\Java\j2re1.4.1_02\bin\client\jvm.dll
0x77E10000 - 0x77E75000       C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000       C:\WINNT\system32\GDI32.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       D:\java\a\lwjgl.dll
0x5F580000 - 0x5F61F000       C:\WINNT\system32\DINPUT.dll
0x69510000 - 0x695D7000       C:\WINNT\system32\OPENGL32.dll
0x6FAC0000 - 0x6FADF000       C:\WINNT\system32\GLU32.dll
0x51000000 - 0x5104A000       C:\WINNT\system32\DDRAW.dll
0x728A0000 - 0x728A6000       C:\WINNT\system32\DCIMAN32.dll
0x6E420000 - 0x6E426000       C:\WINNT\System32\INDICDLL.dll
0x75E60000 - 0x75E7A000       C:\WINNT\System32\IMM32.dll
0x6F9A0000 - 0x6F9A7000       C:\WINNT\system32\HID.DLL
0x77890000 - 0x7791D000       C:\WINNT\system32\SETUPAPI.DLL
0x77C10000 - 0x77C6D000       C:\WINNT\system32\USERENV.DLL
0x71710000 - 0x71794000       C:\WINNT\system32\COMCTL32.dll
0x770B0000 - 0x770B7000       C:\WINNT\system32\CFGMGR32.DLL
0x110B0000 - 0x11194000       C:\WINNT\system32\nbicdnt.dll
0x77920000 - 0x77942000       C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000       C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000       C:\WINNT\system32\PSAPI.DLL

Local Time = Thu Apr 03 10:25:41 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)
#
Offline darcone

Junior Member




Size matters


« Reply #1 - Posted 2003-04-03 07:32:31 »

I think I isolated the error in my code. Why would this cause this bad?

gl.wglSwapIntervalEXT(1); // Minimum number of frames before swapping
Offline elias

Senior Member





« Reply #2 - Posted 2003-04-03 07:45:45 »

It's an extension (there's a EXT at the end of the function name), so are you checking if the EXT_swap_interval extension is available? It won't run on linux or mac in the first place either, because it's a WGL function.

- elias

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

Junior Member




Size matters


« Reply #3 - Posted 2003-04-03 08:10:49 »

what´s WGL? Smiley
Offline cfmdobbie

Senior Member




Who, me?


« Reply #4 - Posted 2003-04-03 08:25:24 »

A bit more info for you:

Base OpenGL functions are prefixed by "gl" - glColor3f, glVertex2i etc.  The GLU functions are prefixed with "glu", GLUT functions are prefixed by "glut".  There are also platform-dependent functions - Windows prefixes these with "wgl", UNIX/X with "glx", Apple/MacOS with "agl".

The extension system exists to allow incremental updates to the OpenGL library, potentially only supported on one platform or with one piece of hardware.  nVidia produce their own extensions as do ATI, Mesa etc.  You need to check for the existence of a particular extension on a platform before using it - it may not exist.


Edit: Fixed typo

Hellomynameis Charlie Dobbie.
Offline princec

JGO Kernel


Medals: 282
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #5 - Posted 2003-04-03 09:00:42 »

Using the debug version of the library, enabled with the -ea JVM switch to enable assertions, will throw an OpenGLException if you try to call functions that aren't implemented. I recommend you always use -ea when doing any development and testing Smiley It might have saved me a bunch of hassle in Alien Flux except that Jet behaves a bit weirdly with assertions and the like and causes the feature not to work properly.

Cas Smiley

Offline darcone

Junior Member




Size matters


« Reply #6 - Posted 2003-04-03 11:06:19 »

Is there any way to get these exceptions or in any other way check if the extension is available?

Also when I disabled this extension the drawings seemed a little strange, I am apparently not a opengl expert, so I am wondering if there is any other feature that would help me do the same thing platform  and gfx independant?
Btw big cheers once again to lwjgl. It gives me 100+ fps on my crappy gfx card on my laptop Smiley
Offline elias

Senior Member





« Reply #7 - Posted 2003-04-03 11:17:47 »

Sure, do a

if (org.lwjgl.opengl.GL.WGL_EXT_swap_control)
    // ext is available
else
    // ext is not avaliable

- elias

Offline darcone

Junior Member




Size matters


« Reply #8 - Posted 2003-04-03 12:25:16 »

Excellent!
Is this a efficient way of doing things or should I simply skip all EXT methods? (seems rather dumb imo Wink

Oh btw thanks for the lesson cmfdobbie, enlightened me quite a bit Smiley
Offline elias

Senior Member





« Reply #9 - Posted 2003-04-03 12:28:32 »

It depends on the extension - the swap_control extension simply forces the buffer swaps to sync with the refresh rate of your monitor. So ignoring it will simply make your app run at the fastest possible rate possible. Other extensions might be more difficult to ignore, like multitexturing.

- elias

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

Junior Member




Size matters


« Reply #10 - Posted 2003-04-03 13:29:45 »

ok Smiley
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 (31 views)
2014-04-15 18:08:23

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

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

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

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

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

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

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

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

CJLetsGame (198 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

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
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!