JVM crashes for multiple sikuli script on same machine

Bug #770225 reported by Ritesh Ranjan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Low
RaiMan

Bug Description

Hi,

I have a sikuli script (written in Java converted to Jar). I am able to run the script on a standalone machine (single instance).
Logged in as another user, I copied the jar to other user home directory and tried to run the same script. It runs fine.

Now with 2 different sessions (putty session on different machines), I tried to run the same script on both sessions simultaneously. When I run the script on the second session, the JVM crashes on the first session, and vice-versa.

The crash displayed is as follows:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000000068686, pid=5961, tid=140614371464960
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) 64-Bit Server VM (19.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C 0x0000000000068686
#
# An error report file with more information is saved as:
# /tmp/hs_err_pid5961.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted

The crash dump (attached) shows error:
[error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]

Stack: [0x00007fe355995000,0x00007fe355a96000], sp=0x00007fe355a93978, free space=1018k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C 0x0000000000068686
j org.sikuli.script.natives.FindInput.<init>()V+1
j org.sikuli.script.Finder.<init>(Lorg/sikuli/script/ScreenImage;Lorg/sikuli/script/Region;)V+19
j org.sikuli.script.Region.doFind(Ljava/lang/Object;)Lorg/sikuli/script/Match;+35
j org.sikuli.script.Region$RepeatableFind.run()V+9
j org.sikuli.script.Region$Repeatable.repeat(D)Z+35
j org.sikuli.script.Region.exists(Ljava/lang/Object;D)Lorg/sikuli/script/Match;+14
j org.sikuli.script.Region.exists(Ljava/lang/Object;)Lorg/sikuli/script/Match;+6
j com.qo.tests.lib.DesktopScreen.verifyExists(Ljava/lang/String;)Ljava/lang/Boolean;+5
j com.qo.tests.lib.DesktopScreen.waitTillImageLoads(Ljava/lang/String;Ljava/lang/Boolean;)V+40
j com.qo.tests.lib.DesktopScreen.clickOnImage(Ljava/lang/String;)V+6
j com.qo.tests.word.CharacterPropertiesBGColor.changeBackgroundColor(Ljava/lang/String;)V+16
j com.qo.tests.word.CharacterPropertiesBGColor.testCharacterPropertiesBGColor()V+46

Other details:
Sikuli Build - Sikuli-X-1.0rc2-linux
Operating system - Ubuntu (10.04) 64bit

Regards,
Ritesh

Tags: scriptrun
Revision history for this message
Ritesh Ranjan (riteshopranjan) wrote :
Revision history for this message
Caio Araújo Teixeira Campos (caioatc) wrote :

JVM is also crashing with me when I try to open more than one Sikuli-IDE on the same machine with the same user, but in a different VNC session.

I'm running Sikuli X-1.0rc2 x86_64, on a Red Hat Enterprise Linux Server release 6.1 (Santiago) through a VNC session.

#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x000000000000279e, pid=7676, tid=140307845842688
#
# JRE version: 6.0_20-b02
# Java VM: Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode linux-amd64 )
# Problematic frame:
# C 0x000000000000279e
#
# An error report file with more information is saved as:
# /home/reggui/doc/demo/failing_testcase/hs_err_pid7676.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#

<path_to_sikuli>/sikuli-ide.sh: line 3: 7676 Aborted (core dumped) LC_NUMERIC=C <path_to_my_jvm>/java/jre1.6.0_20/bin/java -Dsikuli.console=true -Dsikuli.debug=0 -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -jar $DIR/sikuli-ide.jar $*

Revision history for this message
RaiMan (raimund-hocke) wrote :

cannot find the other bug on that matter, but as far as I remember, the solution is, to run different scripts under different users. The problem seems to be the home directory.

Revision history for this message
RaiMan (raimund-hocke) wrote :

Sorry, but I mixed things up: bug 754020.

RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → Low
RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
assignee: nobody → RaiMan (raimund-hocke)
tags: added: scriptrun
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.