Opened 6 years ago

Closed 3 years ago

#756 closed defect (wontfix)

Systray crashes JVM

Reported by: put Owned by:
Priority: minor Milestone:
Component: apps/systray Version: 0.9.3
Keywords: win64 Cc: zab@…
Parent Tickets:

Description

See files.

Subtickets

Attachments (4)

hs_err_pid4024.log (15.0 KB) - added by put 6 years ago.
hs_err_pid7076.log (15.6 KB) - added by put 6 years ago.
Java1.png (88.2 KB) - added by put 6 years ago.
Java2.png (90.8 KB) - added by put 6 years ago.

Download all attachments as: .zip

Change History (15)

Changed 6 years ago by put

Changed 6 years ago by put

Changed 6 years ago by put

Changed 6 years ago by put

comment:1 Changed 6 years ago by zzz

  • Component changed from unspecified to apps/systray
  • Summary changed from Just some error in logs. No visible problems. to Systray crashes JVM

64-bit Windows 7

comment:2 Changed 6 years ago by zab

  • Cc zab@… added

http://docs.oracle.com/javase/tutorial/uiswing/misc/systemtray.html works on windows, gnome & kde. If we insist on keeping java 1.5 compatibility we can use reflection and fallback to the current jni code when necessary.

comment:3 Changed 6 years ago by zzz

systray should be disabled on 64 bit. Somehow we did not detect 64 bit correctly. Please respond with the output of 'java -version' from the command line.

comment:4 Changed 6 years ago by zzz

and also your i2p version

comment:5 follow-up: Changed 6 years ago by zzz

oh yeah I forgot, the java info is in the dump:

---------------  S Y S T E M  ---------------
239	
240	OS: Windows 7 , 64 bit Build 7601 Service Pack 1
241	
242	CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 6, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
243	
244	Memory: 4k page, physical 2095288k(369420k free), swap 4190576k(1304060k free)
245	
246	vm_info: Java HotSpot(TM) Client VM (20.12-b01) for windows-x86 JRE (1.6.0_37-b06), built on Sep 24 2012 12:44:35 by "java_re" with MS VC++ 7.1 (VS2003)
247

comment:6 in reply to: ↑ 5 Changed 6 years ago by zab

Replying to zzz:

246 vm_info: Java HotSpot?(TM) Client VM (20.12-b01) for windows-x86 JRE (1.6.0_37-b06), built on Sep 24 2012 12:44:35 by "java_re" with MS VC++ 7.1 (VS2003)

32-bit jre on 64-bit windows... I remember kytv was having some problems with that

comment:7 Changed 6 years ago by zzz

Adding the following to wrapper.config should prevent systray from starting and crashing the JVM:

wrapper.java.additional.5=-Dsystray.disable=true

comment:8 Changed 6 years ago by zzz

  • Milestone changed from 0.9.4 to 0.9.6
  • Resolution set to fixed
  • Status changed from new to closed

Better detection of 64 bit in 0.9.5-7 rev d69357d70b915f0678c413a51a39f1fcee831799 to prevent systray crashing the JVM.

Using info from:

http://stackoverflow.com/questions/4748673/how-can-i-check-the-bitness-of-my-os-using-java-j2se-not-os-arch
http://blogs.msdn.com/b/david.wang/archive/2006/03/26/howto-detect-process-bitness.aspx

Optimistically closing the ticket.

comment:9 Changed 5 years ago by zzz

  • Milestone 0.9.6 deleted
  • Resolution fixed deleted
  • Status changed from closed to reopened

Reoccurrence in #1271

comment:10 Changed 4 years ago by str4d

  • Keywords win64 added; native code error removed

comment:11 Changed 3 years ago by zzz

  • Resolution set to wontfix
  • Status changed from reopened to closed

To be replaced by desktopgui.

Note: See TracTickets for help on using tickets.