From: SourceForge.net <no...@so...> - 2003-10-24 11:38:41
|
Bugs item #527524, was opened at 2002-03-08 12:01 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=527524&group_id=12867 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Long list of initializations fails Initial Comment: Sourceforge won't let me create an account right now, sorry. Attached is a 2500 line snippet from a 15,000 line unicode initialization table. Commenting out the last executable line will let it execute, but the line itself does not seem to be the problem. Using Jython 2.1 on java1.3.0_01 (JIT:null) on MSW 2000 --Th ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-10-23 16:36 Message: Logged In: NO The exception trace on createBigFile.py isn't the same thing I saw. This exception looks like there is a method that is very large. What I saw was a parsing problem whith a py file around 2500 lines long, that at a certain point the python parser loses infomation (like it is cut off at a certain point). So the parse fails due to the cut off. ---------------------------------------------------------------------- Comment By: Kevin J. Butler (kevinbutler) Date: 2003-10-23 16:25 Message: Logged In: YES user_id=117665 I have now found a problem with large files, but I don't know if it is the same as the original bug or not. Steps to do what I've done: - Increase heap space available to Jython, by modifying 'jython' script to include -Xmx256m -Xms256m - Save the 'createBigFile.py' (attached) to some directory with lots of space. - jython createBigFile.py (creates big.py) - jython big.py Traceback (innermost last): (no code object) at line 0 java.lang.ClassFormatError: org/python/pycode/_pyx0 (Code of a method longer than 65535 bytes) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at org.python.core.BytecodeLoader2.loadClassFromBytes(BytecodeLoader2.java) at org.python.core.BytecodeLoader.makeClass(BytecodeLoader.java) at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java) at org.python.core.Py.compile_flags(Py.java) at org.python.core.Py.compile_flags(Py.java) at org.python.core.__builtin__.execfile_flags(__builtin__.java) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java) at org.python.util.jython.main(jython.java) java.lang.ClassFormatError: java.lang.ClassFormatError: org/python/pycode/_pyx0 (Code of a method longer than 65535 bytes) Note that this is partly a Java limitation, and partly a "mapping Python code to Java" issue. Is this the error that was intended with this bug? ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-10-23 15:37 Message: Logged In: NO You should be able to recreate this bug with a py file of significant size. This is a serious scaling limitation to python, I suggest you fix the issue and not close it. ---------------------------------------------------------------------- Comment By: Kevin J. Butler (kevinbutler) Date: 2003-10-23 15:15 Message: Logged In: YES user_id=117665 9 months later, no code. Closing it. ---------------------------------------------------------------------- Comment By: Eric Moore (ericmoore) Date: 2003-04-25 16:45 Message: Logged In: YES user_id=759503 I have a file that recreates this problem, but I can't seem to attach it now. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2003-04-25 10:13 Message: Logged In: NO I have been able to recreate this problem using my own script file that is around 2500 lines in length. When I cut the script down to a smaller size it works, as the size increases it fails. ---------------------------------------------------------------------- Comment By: Pedro Sam (p2sam) Date: 2003-04-25 05:18 Message: Logged In: YES user_id=72446 Hi, I'm new to SourceForge, I can't seem to find the file that you are referring to, without it, it's hard to reproduce the problem. Pedro ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=527524&group_id=12867 |