[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+)

Bug #1450362 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

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?

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
description: updated
RaiMan (raimund-hocke)
summary: [1.1.0] Jython 2.7: unicode problem: unpaired surrogate at start up in
- site.py (Windows only ????)
+ site.py (Windows only ????) --- going back to 2.5.4-rc1 for now
+ (2015-05-02+)
description: updated
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.