sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32191
[Bug 1450362] Re: [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+)
** Summary changed:
- [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+)
** Description changed:
+ 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?
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1450362
Title:
[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+)
Status in Sikuli:
In Progress
Bug description:
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?
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1450362/+subscriptions
References