sikuli stopped

Asked by Ju1+i-我.

hi all,

here is my code :

    @attrs(stepId = '4', stepName = 'cmdUpd')
    def cmdUpd(self):
        fName = 'cmdUpd'
        #print detailed error log information
        logMsg = 'Class[%(cName)s] Function[%(fName)s] is start.' %{'cName': self.CNAME, 'fName': fName}
        self.mylog.write_log("cmdUpd Start")
        self.excelCommon.numLock()
        self.fileCommon.openFile("cmd")
        paste("cd " + self.cmdPath)
        wait(2)
        type(Key.ENTER)
        self.excelCommon.loopCMD()
        。。。。。。

when i try to run this function , sikuli is closed

here is the log :

# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x27d72140, pid=5076, tid=0x00004580
#
# JRE version: Java(TM) SE Runtime Environment (8.0_161-b12) (build 1.8.0_161-b12)
# Java VM: Java HotSpot(TM) Client VM (25.161-b12 mixed mode windows-x86 )
# Problematic frame:
# C 0x27d72140
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

could you please help to solve this ?
thanks for your help

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

No idea what you are doing there, but I guess you have to find out, which of these calls cause the crash:

        self.mylog.write_log("cmdUpd Start")
        self.excelCommon.numLock()
        self.fileCommon.openFile("cmd")
        self.excelCommon.loopCMD()

Revision history for this message
Ju1+i-我. (1ju2+i-a.) said :
#2

thanks for your help ,

Only type(key.num_lock) is executed , it's ok

however,the error occurred when if was used to determine whether the lights of NUM_LOCK were extinguished

        if Env.isLockOn(Key.NUM_LOCK) == True:
            wait(1)
            type(Key.NUM_LOCK)
            wait(1)
        else:
            wait(1)

Could you please help me to see what caused it?
thanks a lot

Revision history for this message
RaiMan (raimund-hocke) said :
#3

this is accepted as a bug, but not yet analyzed.
see linked bug