processing / processing/processing4
Segmentation fault/non-working renderer (default, P2D, P3D)
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 494
- Forks
- 183
- Ø Merge
- 4 Std. 39 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
Description
Graphics not updated correctly or segmentation fault, depending on which renderer is selected
Expected Behavior
Below code should just work fine (as it does with FX2D)
Current Behavior
-
graphics is not updated with default renderer
size(300,200);
It works fine if I comment out thenoLoop() -
Segmentation fault with P2D/P3D renderer
size(300,200,P2D)(see below)
when doing first key press -
works just fine with size(300,200,FX2D);
Steps to Reproduce
void setup() {
size(300, 200, P2D);
noLoop();
}
void draw() {
}
void keyPressed() {
background(255);
text("x", 10, 10);
redraw();
}
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fffa2222e31, pid=8425, tid=0x000000000000fc07
#
# JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C [libGL.dylib+0xe31] glClearColor+0xd
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Users/foo/hs_err_pid8425.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.
- type any key
Your Environment
- Processing version: 3.4 (macOS), 3.3.7 (windows)
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, die Skizze mit den Standard-Renderern P2D, P3D und FX2D auf den aufgeführten Processing-Versionen zu reproduzieren, und untersuche anschließend die gemeldete hs_err_pid8425.log sowie den problematischen libGL.dylib-Frame. Als erledigt gilt die Aufgabe, wenn Skizzen mit noLoop() nach dem ersten Tastendruck aktualisiert werden und P2D/P3D nicht mehr mit einem Segmentation Fault abstürzen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- java, macos
- Bereich
- computer-graphics, desktop
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100