processing / processing/processing4

Segmentation fault/non-working renderer (default, P2D, P3D)

Aperta
#1,547 12 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Lingua principale
Java
Stelle
494
Fork
183
Merge medio
4h 39m
PR unite (30g)
3

Descrizione

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 the noLoop()

  • 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.

  1. type any key

Your Environment

  • Processing version: 3.4 (macOS), 3.3.7 (windows)

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo lo sketch con i renderer predefinito, P2D, P3D e FX2D sulle versioni di Processing elencate, quindi esamina il hs_err_pid8425.log segnalato e il frame problematico di libGL.dylib. Il lavoro è completato quando gli sketch con noLoop() si aggiornano dopo la prima pressione di un tasto e P2D/P3D non causano più un segfault.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, macos
Ambito
computer-graphics, desktop
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.