Gå til innhold

Unexpeced Error detected by JRE


Anbefalte innlegg

Får dette i konsollen hver gang jeg avslutter programmet mitt.

#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006da3b2d8, pid=4888, tid=4876
#
# Java VM: Java HotSpot(tm) 64-Bit Server VM (11.3-b02 mixed mode windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x1ab2d8]
#
# An error report file with more information is saved as:
# C:\Java\ScreenText\hs_err_pid4888.log
#
# If you would like to submit a bug report, please visit:
#   [url="http://java.sun.com/webapps/bugreport/crash.jsp"]http://java.sun.com/webapps/bugreport/crash.jsp[/url]
#

 

Kommer av denne koden:

 

Dimension dim = new Dimension(1280, 768); //Prefered dimension
DisplayMode displayMode;
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] gs = ge.getScreenDevices();

<...>

private void updateDisplayMode() {
	DisplayMode[] modes = gs[0].getDisplayModes();
	for (int i = 0; i < modes.length; i++) {
		if ((modes[i].getWidth() == dim.width) && (modes[i].getHeight() == dim.height) && (modes[i].getBitDepth() == 32)) {
			displayMode = modes[i];
		}
	}
}

public static void show(Output p) {
	p.line = 0;
	p.gs[0].setFullScreenWindow(p);
	if (p.displayMode != null) {
		p.gs[0].setDisplayMode(p.displayMode);
		System.out.println("Changing displayMode");
	}
}

 

Sånn som det er nå, så blir updateDisplayMode kalt når objektet oppdateres.

show(Output) blir kalt fra en annen kilde.

 

Problemet mitt er denne linjen, i show: p.gs[0].setDisplayMode(p.displayMode);

Dersom jeg fjerner denne kommer ingen error.

 

Programmet mitt er et vindu som lar meg velge mellom flere tekster som kan vises på skjermen, i 1280x720 format. Skjermen er til vanlig 1680x1050, men pga. video output må skjermoutputen være i det formatet.

Når jeg kaller show virker det bra, bildet fyller hele skjermen, i riktig format. Og når jeg trykker esc forsvinner bildet og 1680x1050 kommer tilbake. Men når jeg lukker vinduet kommer feilen i konsollen. Er det farlig, eller kan jeg bare la det være slik? Tror problemet er at jeg aldri endrer tilbake display modusen til den opprinnelige verdien, men jeg er ikke sikker på hvor jeg skal legge slik kode.

 

edit: Burde kanskje legge til at vinduet skjules når jeg trykker esc, med en this.dispose();

edit2: Ser også at når jeg fjerner den og erstatter den med en gs[0].setFullScreenWindow(null) så kommer ikke feilen når jeg lukker vinduet. Men da vil vinduet fremdeles ligge nede på oppgavelinjen..

edit3: Og problemet kommer bare hvis jeg viser kun ett fullskjermsvindu, og så lukker programmet. Dersom jeg åpner en, lukker det og åpner et til før jeg avslutter kommer ikke feilen...

Endret av Fluesoppen
Lenke til kommentar
Videoannonse
Annonse
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000006da3b2d8, pid=5600, tid=5672
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (11.3-b02 mixed mode windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x1ab2d8]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#

---------------  T H R E A D  ---------------

Current thread (0x000000004aba0400):  JavaThread "Java2D Disposer" daemon [_thread_in_vm, id=5672, stack(0x000000004b930000,0x000000004ba30000)]

siginfo: ExceptionCode=0xc0000005, reading address 0x0000000000000011

Registers:
EAX=0x000000004ba2f378, EBX=0x000000004abbd0f8, ECX=0x0000000000000000, EDX=0x000000004aba0400
ESP=0x000000004ba2f2d0, EBP=0x0000000000000000, ESI=0x000000004abb6b30, EDI=0x000000004ba2f550
EIP=0x000000006da3b2d8, EFLAGS=0x0000000000010203

Top of Stack: (sp=0x000000004ba2f2d0)
0x000000004ba2f2d0:   00000000051c7230 000000006db8e9a1
0x000000004ba2f2e0:   000000000000000c 000000004aba0400
0x000000004ba2f2f0:   000000004ba2f420 000000004abbccc0
0x000000004ba2f300:   000000004abb6b30 000000004abbccc0
0x000000004ba2f310:   000000004abbccd0 000000004abbd0a8
0x000000004ba2f320:   000000004abbccd0 000000004ba2f478
0x000000004ba2f330:   000000004ba2f420 000000006da203d2
0x000000004ba2f340:   000000004ba2f420 000000004ba2f420
0x000000004ba2f350:   00000000ffffffff 000000004ba2f550
0x000000004ba2f360:   000000004aba05c0 0000000000000000
0x000000004ba2f370:   000000000210b758 000000004abbd0f0
0x000000004ba2f380:   000000004abb0000 000000006da00832
0x000000004ba2f390:   000000000210b758 0000000800000002
0x000000004ba2f3a0:   000000006dcba6f0 000000006db96bda
0x000000004ba2f3b0:   0000000002143d98 000000006da22ca3
0x000000004ba2f3c0:   000000004abb0000 000000004ba2f200 

Instructions: (pc=0x000000006da3b2d8)
0x000000006da3b2c8:   00 00 4c 89 2c c8 ff 84 24 98 01 00 00 4c 8b 03
0x000000006da3b2d8:   49 8b 40 10 4d 8b 40 18 0f b7 48 3a 4d 8b 44 c8 


Stack: [0x000000004b930000,0x000000004ba30000],  sp=0x000000004ba2f2d0,  free space=1020k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [jvm.dll+0x1ab2d8]

[error occurred during error reporting (printing native stack), id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  java.awt.Cursor.finalizeImpl(J)V+0
j  java.awt.Cursor.access$000(J)V+1
j  java.awt.Cursor$CursorDisposer.dispose()V+13
j  sun.java2d.Disposer.run()V+26
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
 0x000000004fadb800 JavaThread "Thread-1" daemon [_thread_in_native, id=5772, stack(0x0000000051340000,0x0000000051440000)]
 0x000000004fb43800 JavaThread "TimerQueue" daemon [_thread_blocked, id=5696, stack(0x000000004e110000,0x000000004e210000)]
 0x000000000060b000 JavaThread "DestroyJavaVM" [_thread_blocked, id=5624, stack(0x0000000002000000,0x0000000002100000)]
 0x000000004ac44800 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=5684, stack(0x000000004bc30000,0x000000004bd30000)]
 0x000000004ac43c00 JavaThread "AWT-Windows" daemon [_thread_in_native, id=5680, stack(0x000000004bb30000,0x000000004bc30000)]
 0x000000004ac43800 JavaThread "AWT-Shutdown" [_thread_blocked, id=5676, stack(0x000000004ba30000,0x000000004bb30000)]
=>0x000000004aba0400 JavaThread "Java2D Disposer" daemon [_thread_in_vm, id=5672, stack(0x000000004b930000,0x000000004ba30000)]
 0x000000004abc3800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=5664, stack(0x000000004b450000,0x000000004b550000)]
 0x000000004abb7000 JavaThread "CompilerThread1" daemon [_thread_blocked, id=5660, stack(0x000000004b350000,0x000000004b450000)]
 0x000000004abb1400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=5656, stack(0x000000004b250000,0x000000004b350000)]
 0x000000004abb0800 JavaThread "Attach Listener" daemon [_thread_blocked, id=5652, stack(0x000000004b150000,0x000000004b250000)]
 0x000000004abb0000 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5648, stack(0x000000004b050000,0x000000004b150000)]
 0x000000004ab91c00 JavaThread "Finalizer" daemon [_thread_blocked, id=5644, stack(0x000000004af50000,0x000000004b050000)]
 0x000000004ab91000 JavaThread "Reference Handler" daemon [_thread_blocked, id=5640, stack(0x000000004ae50000,0x000000004af50000)]

Other Threads:
 0x00000000003f7800 VMThread [stack: 0x000000004ad50000,0x000000004ae50000] [id=5636]
 0x000000004abc4800 WatcherThread [stack: 0x000000004b550000,0x000000004b650000] [id=5668]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
PSYoungGen	  total 35584K, used 3487K [0x0000000035070000, 0x00000000395f0000, 0x000000004a5c0000)
 eden space 32896K, 2% used [0x0000000035070000,0x000000003513aef8,0x0000000037090000)
 from space 2688K, 99% used [0x0000000037090000,0x000000003732cd08,0x0000000037330000)
 to   space 2688K, 0% used [0x0000000039350000,0x0000000039350000,0x00000000395f0000)
PSOldGen		total 43712K, used 8354K [0x000000000a5c0000, 0x000000000d070000, 0x0000000035070000)
 object space 43712K, 19% used [0x000000000a5c0000,0x000000000ade8b78,0x000000000d070000)
PSPermGen	   total 21248K, used 12058K [0x00000000051c0000, 0x0000000006680000, 0x000000000a5c0000)
 object space 21248K, 56% used [0x00000000051c0000,0x0000000005d86a60,0x0000000006680000)

Dynamic libraries:
0x0000000000400000 - 0x000000000042e000 	C:\Program Files\Java\jdk1.6.0_13\bin\java.exe
0x0000000076eb0000 - 0x0000000077058000 	C:\Windows\SYSTEM32\ntdll.dll
0x0000000076d90000 - 0x0000000076eae000 	C:\Windows\system32\kernel32.dll
0x000007fefcf30000 - 0x000007fefcf99000 	C:\Windows\system32\KERNELBASE.dll
0x000007fefe240000 - 0x000007fefe31b000 	C:\Windows\system32\ADVAPI32.dll
0x000007fefd3e0000 - 0x000007fefd47f000 	C:\Windows\system32\msvcrt.dll
0x000007fefd700000 - 0x000007fefd71f000 	C:\Windows\SYSTEM32\sechost.dll
0x000007fefdc60000 - 0x000007fefdd8f000 	C:\Windows\system32\RPCRT4.dll
0x000000006d890000 - 0x000000006de48000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\server\jvm.dll
0x0000000076c90000 - 0x0000000076d8a000 	C:\Windows\system32\USER32.dll
0x000007fefdd90000 - 0x000007fefddf7000 	C:\Windows\system32\GDI32.dll
0x000007fefe230000 - 0x000007fefe23e000 	C:\Windows\system32\LPK.dll
0x000007fefdab0000 - 0x000007fefdb7a000 	C:\Windows\system32\USP10.dll
0x000007fefb310000 - 0x000007fefb34b000 	C:\Windows\system32\WINMM.dll
0x000007fefe150000 - 0x000007fefe17e000 	C:\Windows\system32\IMM32.DLL
0x000007feff0b0000 - 0x000007feff1b9000 	C:\Windows\system32\MSCTF.dll
0x000000006d3b0000 - 0x000000006d3ba000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\hpi.dll
0x0000000077080000 - 0x0000000077087000 	C:\Windows\system32\PSAPI.DLL
0x000000006d800000 - 0x000000006d80e000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\verify.dll
0x000000006d450000 - 0x000000006d477000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\java.dll
0x000000006d850000 - 0x000000006d862000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\zip.dll
0x000000006d0a0000 - 0x000000006d262000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\awt.dll
0x000007fef93f0000 - 0x000007fef9460000 	C:\Windows\system32\WINSPOOL.DRV
0x000007fefd8a0000 - 0x000007fefdaa3000 	C:\Windows\system32\ole32.dll
0x000007fefe320000 - 0x000007feff0a5000 	C:\Windows\system32\SHELL32.dll
0x000007fefd1f0000 - 0x000007fefd260000 	C:\Windows\system32\SHLWAPI.dll
0x000007fefb8b0000 - 0x000007fefbaa4000 	C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7100.0_none_8fb1307a5ee9ecec\comctl32.dll
0x000007fefa650000 - 0x000007fefa669000 	C:\Windows\system32\DWMAPI.DLL
0x000007fefb6d0000 - 0x000007fefb726000 	C:\Windows\system32\uxtheme.dll
0x000007fefcd50000 - 0x000007fefcd5f000 	C:\Windows\system32\CRYPTBASE.dll
0x000000006d340000 - 0x000000006d3ab000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\fontmanager.dll
0x000007fefdb80000 - 0x000007fefdc57000 	C:\Windows\system32\OLEAUT32.dll
0x000000006d6a0000 - 0x000000006d6b7000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\net.dll
0x000007fefe100000 - 0x000007fefe14d000 	C:\Windows\system32\WS2_32.dll
0x000007fefe180000 - 0x000007fefe188000 	C:\Windows\system32\NSI.dll
0x000007fefc690000 - 0x000007fefc6e4000 	C:\Windows\system32\mswsock.dll
0x000007fefc680000 - 0x000007fefc687000 	C:\Windows\System32\wship6.dll
0x000000006d6c0000 - 0x000000006d6cb000 	C:\Program Files\Java\jdk1.6.0_13\jre\bin\nio.dll
0x000007fefe190000 - 0x000007fefe229000 	C:\Windows\system32\CLBCatQ.DLL
0x000007fefcbd0000 - 0x000007fefcbe7000 	C:\Windows\system32\CRYPTSP.dll
0x000007fefc370000 - 0x000007fefc3b7000 	C:\Windows\system32\rsaenh.dll
0x000007fefce00000 - 0x000007fefce14000 	C:\Windows\system32\RpcRtRemote.dll

VM Arguments:
java_command: screentext.MainFrame2
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
PATH=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Autodesk\Maya2009\bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.1\bin;C:\Program Files (x86)\JavaFX\javafx-sdk1.1\emulator\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\Program Files\Common Files\Microsoft Shared\Windows Live
USERNAME=Aksel Kvitberg
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 15 Stepping 13, GenuineIntel



---------------  S Y S T E M  ---------------

OS: Windows NT 6.1 Build 7100 

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 13, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 4193324k(2060868k free), swap 8384740k(5663300k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (11.3-b02) for windows-amd64 JRE (1.6.0_13-b03), built on Mar  9 2009 10:50:19 by "java_re" with MS VC++ 8.0

time: Thu May 14 16:26:40 2009
elapsed time: 7 seconds

Lenke til kommentar

Hmm, vanskelig aa si hva det kan vaere. Kan du reprodusere feilen paa en annen PC?

 

Hvis problemet bare skjer i det du avslutter programmet, og du har ingen opprydningsrutiner som serialiserer tilstanden din paa et eller annet format (eller du har ingen korrupte filer etterpaa etc.), saa kan du "leve" med feilen i foerste omgang.

Lenke til kommentar
Jeg får bare feilen på den ene pc'n.

På den andre blinker skjermen svart når jeg stopper programmet, som om oppløsningen endres.

Begge kjører Windows 7.

 

Kanskje greit først som sist å fortelle oss at du kjører på et OS som ikke er lansert ennå?

 

Werner

Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...