Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (404)
games submitted by our members
Games in WIP (289)
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  
  1.4.2 is giving me time erors  (Read 1408 times)
0 Members and 1 Guest are viewing this topic.
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Posted 2003-05-21 16:12:35 »

Ever since I installed 1.4.2 I have had this error happen with my animation loop. What happens is that the first time I fire up my game it runs fine. But subsequent times it loads a white screen. If I alt - tab and then click on it again then the prog crashes giving me the following error:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x182D7D76
Function=Java_sun_print_Win32PrintJob_endPrintRawData+0x1D42
Library=C:\j2sdk1.4.2\jre\bin\awt.dll

Current Java thread:
     at sun.awt.windows.Win32BackBufferSurfaceData.initSurface(Native Method)
     at sun.awt.windows.Win32BackBufferSurfaceData.createData(Win32BackBufferSurfaceData.java:49)
     at sun.awt.windows.Win32BackBuffer.createHWData(Win32BackBuffer.java:28)
     at sun.awt.windows.WVolatileImage.initAcceleratedBackground(WVolatileImage.java:100)
     at sun.awt.image.SunVolatileImage.<init>(SunVolatileImage.java:86)
     at sun.awt.windows.WVolatileImage.<init>(WVolatileImage.java:72)
     at sun.awt.windows.Win32BackBuffer.<init>(Win32BackBuffer.java:20)
     at sun.awt.windows.WComponentPeer.createBackBuffer(WComponentPeer.java:734)
     - locked <0x1051f358> (a sun.awt.windows.WFramePeer)
     at sun.awt.windows.WComponentPeer.replaceSurfaceData(WComponentPeer.java:324)
     - locked <0x1051f358> (a sun.awt.windows.WFramePeer)
     - locked <0x1050f7a8> (a java.awt.Component$AWTTreeLock)
     at sun.awt.windows.WComponentPeer$2.run(WComponentPeer.java:333)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

I am using a native timer so I think thats the problem. However I have been able to cause the same problem with JavaNoob's code by changing the screen resolution from 16 bit to 32 bit color. Any ideas on how to fix this?

Kommi
Offline caraiz

Senior Newbie




Java games rock!


« Reply #1 - Posted 2003-05-21 16:42:04 »

I had the same problem, and it happened because i changed to fullscreen mode with 16 bits and my desktop was at 32 bits.... Try change to fullscreen using the actual desktop deep color
1  
device.getDisplayMode().getBitDepth()

Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #2 - Posted 2003-05-21 19:22:31 »

Ok I got it fixed. It was my rnedering code and it does not happen anymore.

Kommi
Games published by our own members! Check 'em out!
Try the Free Demo of Revenge of the Titans
Offline Abuse

JGO Coder


Medals: 2


falling into the abyss of reality


« Reply #3 - Posted 2003-05-22 03:13:39 »

thats a JVM crash though, it shouldn't happen under *any* circumstances Shocked

I wouldn't bother reporting it though, fullscreen is still packed full of bugs, even in 1.4.2  Sad

Make Elite IV:Dangerous happen! Pledge your backing at KICKSTARTER here!
Offline Kommi

Junior Member




All opinions will be lined up and shot!


« Reply #4 - Posted 2003-05-22 04:16:26 »

actually I dont know exactly what I did. I had two rectangles which were objects responsible for painting themselves flying around. I lost the original class file for these objects which I wrote a while ago so I wrote a quick an dirty one. Since I have learned a lot more I wrote it to the best of my current abilitis in Java. And I no longer get the white screen or the crashes. (althought it still happened like once). I dont think that an me reinstalling the jvm and the sdk is what improved it.

Kommi
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (56 views)
2013-05-17 21:29:12

alaslipknot (66 views)
2013-05-16 21:24:48

gouessej (96 views)
2013-05-16 00:53:38

gouessej (93 views)
2013-05-16 00:17:58

theagentd (104 views)
2013-05-15 15:01:13

theagentd (95 views)
2013-05-15 15:00:54

StreetDoggy (141 views)
2013-05-14 15:56:26

kutucuk (163 views)
2013-05-12 17:10:36

kutucuk (162 views)
2013-05-12 15:36:09

UnluckyDevil (172 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.106 seconds with 21 queries.