Issue2154

classification
Title: When running multiple engines in different threads, the last registered writer is in use for all script executions.
Type: crash Severity: urgent
Components: Core Versions: Jython 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: flegall, zyasoft
Priority: Keywords:

Created on 2014-05-23.08:51:50 by flegall, last changed 2014-06-28.03:19:18 by zyasoft.

Files
File name Uploaded Description Edit Remove
ScriptEngineWriterTest.java flegall, 2014-05-23.08:51:49 Testcase reproducing the problem.
Messages
msg8571 (view) Author: Florent Le Gall (flegall) Date: 2014-05-23.08:51:49
When running multiple engines in different threads, the last registered writer is in use for all script executions.
msg8807 (view) Author: Jim Baker (zyasoft) Date: 2014-06-23.18:09:47
JSR 223 issue
msg8830 (view) Author: Jim Baker (zyasoft) Date: 2014-06-28.03:19:18
The problem here is that the PySystemState, via PythonInterpreter, is shared across engines, which is what controls the writer output. Need to possibly reconsider this sharing setup, which is managed by PythonInterpreter.threadLocalStateInterpreter.
History
Date User Action Args
2014-06-28 03:19:18zyasoftsetmessages: + msg8830
2014-06-23 18:09:47zyasoftsetnosy: + zyasoft
messages: + msg8807
2014-05-23 08:51:50flegallcreate