Activity log for bug #1450362

Date Who What changed Old value New value Message
2015-04-30 08:22:12 RaiMan bug added bug
2015-04-30 08:24:51 RaiMan sikuli: status New In Progress
2015-04-30 08:24:56 RaiMan sikuli: importance Undecided Medium
2015-04-30 08:24:59 RaiMan sikuli: assignee RaiMan (raimund-hocke)
2015-04-30 08:25:05 RaiMan sikuli: milestone 1.1.0
2015-04-30 08:25:11 RaiMan description This is really a follow on to my previous question at https://answers.launchpad.net/sikuli/+question/264829 It turns out that I still get this error semi-frequently on startup. Exactly the same command produces it perhaps 20% of the time I run it, and it appears to be entirely random. The print out is as follows: +++ running this Java +++ trying to run SikuliX +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\Users\e601429\sikulix1.1.0\sikulix.jar -r C:/Users/E601429/tmp.sikuli [error] RunTimeIDE: *** terminating: JythonScriptRunner: cannot be initialized: Traceback (most recent call last): File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\site.py", line 62, in <module> File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\os.py", line 59, in <module> ValueError: unpaired surrogate 0xdc7e at code unit 691 What could be the cause of this? As discussed in the previous question, I installed SikuliX using 64-bit Java but have since been running it under 32-bit Java. All my SikuliX DLLs appear to be 32-bit now, but I still have this problem. Will wiping my installation and reinstalling with 32-bit Java help, do you think? ***************** problem There MUST be some unicode characters be involved in the environment and startup sequence in such a case. The problem comes up at the edge between UTF-8 (Jython level) and UTF-16 (Java level) and according to the comments in the net is a common problem with implementations, that have to handle both worlds. According to the spec, the unicode points U+D800 to U+DFFF are invalid as single character (you always need 2 of them). So it surely is some Jython bug, that cannot arise with Jython 2.5, since this does not handle unicode internally at all. So in case: use Jython 2.5 ;-) -------------------------------- It turns out that I still get this error semi-frequently on startup. Exactly the same command produces it perhaps 20% of the time I run it, and it appears to be entirely random. The print out is as follows: +++ running this Java +++ trying to run SikuliX +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\Users\e601429\sikulix1.1.0\sikulix.jar -r C:/Users/E601429/tmp.sikuli [error] RunTimeIDE: *** terminating: JythonScriptRunner: cannot be initialized: Traceback (most recent call last):   File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\site.py", line 62, in <module>   File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\os.py", line 59, in <module> ValueError: unpaired surrogate 0xdc7e at code unit 691 What could be the cause of this? As discussed in the previous question, I installed SikuliX using 64-bit Java but have since been running it under 32-bit Java. All my SikuliX DLLs appear to be 32-bit now, but I still have this problem. Will wiping my installation and reinstalling with 32-bit Java help, do you think?
2015-05-01 06:51:25 RaiMan summary [1.1.0] Jython 2.7: unicode problem: unpaired surrogate at start up in site.py (Windows only ????) [1.1.0] Jython 2.7: unicode problem: unpaired surrogate at start up in site.py (Windows only ????) --- going back to 2.5.4-rc1 for now (2015-05-02+)
2015-05-01 06:52:03 RaiMan description ***************** problem There MUST be some unicode characters be involved in the environment and startup sequence in such a case. The problem comes up at the edge between UTF-8 (Jython level) and UTF-16 (Java level) and according to the comments in the net is a common problem with implementations, that have to handle both worlds. According to the spec, the unicode points U+D800 to U+DFFF are invalid as single character (you always need 2 of them). So it surely is some Jython bug, that cannot arise with Jython 2.5, since this does not handle unicode internally at all. So in case: use Jython 2.5 ;-) -------------------------------- It turns out that I still get this error semi-frequently on startup. Exactly the same command produces it perhaps 20% of the time I run it, and it appears to be entirely random. The print out is as follows: +++ running this Java +++ trying to run SikuliX +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\Users\e601429\sikulix1.1.0\sikulix.jar -r C:/Users/E601429/tmp.sikuli [error] RunTimeIDE: *** terminating: JythonScriptRunner: cannot be initialized: Traceback (most recent call last):   File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\site.py", line 62, in <module>   File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\os.py", line 59, in <module> ValueError: unpaired surrogate 0xdc7e at code unit 691 What could be the cause of this? As discussed in the previous question, I installed SikuliX using 64-bit Java but have since been running it under 32-bit Java. All my SikuliX DLLs appear to be 32-bit now, but I still have this problem. Will wiping my installation and reinstalling with 32-bit Java help, do you think? 2015-05-02 temp fixed: IDE: going back to Jython 2.5.4-rc1 until unicode problems are fixed with Jython 2.7-rc3 ***************** problem There MUST be some unicode characters be involved in the environment and startup sequence in such a case. The problem comes up at the edge between UTF-8 (Jython level) and UTF-16 (Java level) and according to the comments in the net is a common problem with implementations, that have to handle both worlds. According to the spec, the unicode points U+D800 to U+DFFF are invalid as single character (you always need 2 of them). So it surely is some Jython bug, that cannot arise with Jython 2.5, since this does not handle unicode internally at all. So in case: use Jython 2.5 ;-) -------------------------------- It turns out that I still get this error semi-frequently on startup. Exactly the same command produces it perhaps 20% of the time I run it, and it appears to be entirely random. The print out is as follows: +++ running this Java +++ trying to run SikuliX +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\Users\e601429\sikulix1.1.0\sikulix.jar -r C:/Users/E601429/tmp.sikuli [error] RunTimeIDE: *** terminating: JythonScriptRunner: cannot be initialized: Traceback (most recent call last):   File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\site.py", line 62, in <module>   File "C:\Users\e601429\sikulix1.1.0\sikulix.jar\Lib\os.py", line 59, in <module> ValueError: unpaired surrogate 0xdc7e at code unit 691 What could be the cause of this? As discussed in the previous question, I installed SikuliX using 64-bit Java but have since been running it under 32-bit Java. All my SikuliX DLLs appear to be 32-bit now, but I still have this problem. Will wiping my installation and reinstalling with 32-bit Java help, do you think?