jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

Processing 4b1, crash on File > Open... #321

Open villares opened 2 years ago

villares commented 2 years ago

I'm using the experimental Python mode build by @tabreturn: https://github.com/tabreturn/processing.py-for-processing-4

I can run sketches, but File > Open... is crashing like this:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by processing.app.platform.LinuxPlatform (file:/home/villares/other-software/processing-4.0b1/lib/pde.jar) to field sun.awt.X11.XToolkit.awtAppClassName
WARNING: Please consider reporting this to the maintainers of processing.app.platform.LinuxPlatform
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
created registry at port 8220
/home/villares/sketchbook/modes/PythonMode/formatter/pep8.py:100: FutureWarning: Possible nested set at position 1
  EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
could not create registry; assume it's already created
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.python.core.PyJavaType (file:/home/villares/sketchbook/modes/PythonMode/mode/jython.jar) to method java.lang.Object.finalize()
WARNING: Please consider reporting this to the maintainers of org.python.core.PyJavaType
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f6d907d412c, pid=129688, tid=129820
#
# JRE version: OpenJDK Runtime Environment Temurin-11.0.12+7 (11.0.12+7) (build 11.0.12+7)
# Java VM: OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (11.0.12+7, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C  0x00007f6d907d412c
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/villares/other-software/processing-4.0b1/core.129688)
#
# An error report file with more information is saved as:
# /home/villares/other-software/processing-4.0b1/hs_err_pid129688.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

LOG: hs_err_pid129688.log

I think "first save", that works like Save As... is also crashing.

Just to prove that it is working otherwise: image

tabreturn commented 2 years ago

I'm using 4.0b1, which is out now, and seems to work fine. I'm on Linux Mint 20.2. Also, I used a fresh sketchbook directory, if that makes any difference.

villares commented 2 years ago

Hmm, I wrote 4a, but I meant 4b1, so I renamed the issue. But I should try the fresh sketchbook!

villares commented 2 years ago

I can now confirm that, with a clean sketchbook, Processing 4.0b1 + @tabreturn's Python mode 4 alpha that it still crashes as described above on my Linux Manjaro.

On the other hand, it works fine on Windows 10...