Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (542)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (604)
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 1961 times)
0 Members and 1 Guest are viewing this topic.
Offline Kommi

Junior Devvie




All opinions will be lined up and shot!


« Posted 2003-05-21 14: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 14: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 Devvie




All opinions will be lined up and shot!


« Reply #2 - Posted 2003-05-21 17: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!
Legends of Yore - The Casual Retro Roguelike
Offline Abuse

JGO Knight


Medals: 15


falling into the abyss of reality


« Reply #3 - Posted 2003-05-22 01: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! https://dl.dropbox.com/u/54785909/EliteIVsmaller.png
Offline Kommi

Junior Devvie




All opinions will be lined up and shot!


« Reply #4 - Posted 2003-05-22 02: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.

 

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

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (16 views)
2014-12-28 02:10:29

BurntPizza (17 views)
2014-12-27 22:38:51

Mr.CodeIt (13 views)
2014-12-27 04:03:04

TheDudeFromCI (17 views)
2014-12-27 02:14:49

Mr.CodeIt (25 views)
2014-12-23 03:34:11

rwatson462 (56 views)
2014-12-15 09:26:44

Mr.CodeIt (46 views)
2014-12-14 19:50:38

BurntPizza (92 views)
2014-12-09 22:41:13

BurntPizza (113 views)
2014-12-08 04:46:31

JscottyBieshaar (86 views)
2014-12-05 12:39:02
How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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