Issue1469

classification
Title: Large lines trigger "java.io.IOException: Resetting to invalid mark"
Type: behaviour Severity: normal
Components: Versions: Jython 2.7
Milestone:
process
Status: open Resolution: remind
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki
Priority: low Keywords:

Created on 2009-09-14.19:06:01 by fwierzbicki, last changed 2013-02-27.17:35:55 by fwierzbicki.

Messages
msg5165 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-09-14.19:06:00
Very large files fail with:

java.io.IOException: Resetting to invalid mark
 at java.io.BufferedInputStream.reset(Unknown Source)
 at org.python.core.ParserFacade.readEncoding(ParserFacade.java:394)
 at org.python.core.ParserFacade.prepBufReader(ParserFacade.java:301)
 at org.python.core.ParserFacade.prepBufReader(ParserFacade.java:356)
 at org.python.core.ParserFacade.parse(ParserFacade.java:200)

This is probably happening around our encoding detection in
ParserFacade, which reads the first two lines, checks for encodings, and
the resets the buffer.
msg5166 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-09-14.19:18:43
We should at least have a better error message, if we can't actually fix it.
msg5167 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2009-09-14.20:49:22
Full stack trace:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
java.io.IOException: Resetting to invalid mark
        at java.io.BufferedInputStream.reset(Unknown Source)
        at org.python.core.ParserFacade.readEncoding(ParserFacade.java:394)
        at org.python.core.ParserFacade.prepBufReader(ParserFacade.java:301)
        at org.python.core.ParserFacade.prepBufReader(ParserFacade.java:356)
        at org.python.core.ParserFacade.parse(ParserFacade.java:200)
        at org.python.core.CompileFunction.compile(__builtin__.java:1525)
        at org.python.core.CompileFunction.compile(__builtin__.java:1501)
        at org.python.core.CompileFunction.compile(__builtin__.java:1493)
        at org.python.core.__builtin__.eval(__builtin__.java:499)
        at org.python.core.__builtin__.eval(__builtin__.java:515)
        at org.python.core.BuiltinFunctions.__call__(__builtin__.java:77)
        at org.python.core.PyObject.__call__(PyObject.java:401)
        at org.python.pycode._pyx25.f$0(<stdin>:1)
        at org.python.pycode._pyx25.call_function(<stdin>)
        at org.python.core.PyTableCode.call(PyTableCode.java:165)
        at org.python.core.PyCode.call(PyCode.java:18)
        at org.python.core.Py.runCode(Py.java:1204)
        at org.python.core.Py.exec(Py.java:1248)
        at
org.python.util.PythonInterpreter.exec(PythonInterpreter.java:181)
        at
org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89)
        at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70)
        at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:46)
        at
org.python.util.InteractiveConsole.push(InteractiveConsole.java:110)
        at
org.python.util.InteractiveConsole.interact(InteractiveConsole.java:90)
        at org.python.util.jython.run(jython.java:316)
        at org.python.util.jython.main(jython.java:129)

java.io.IOException: java.io.IOException: Resetting to invalid mark
History
Date User Action Args
2013-02-27 17:35:55fwierzbickisetpriority: low
resolution: remind
versions: + Jython 2.7
2009-09-14 20:50:37fwierzbickisettitle: Large lines in trigger "java.io.IOException: Resetting to invalid mark" -> Large lines trigger "java.io.IOException: Resetting to invalid mark"
2009-09-14 20:50:24fwierzbickisettitle: Large files trigger "java.io.IOException: Resetting to invalid mark" -> Large lines in trigger "java.io.IOException: Resetting to invalid mark"
2009-09-14 20:49:23fwierzbickisetmessages: + msg5167
2009-09-14 19:18:43fwierzbickisetmessages: + msg5166
2009-09-14 19:06:01fwierzbickicreate