processing / processing/processing4

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

オープン
#1,547 コメント 12 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
3

説明

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)

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、記載されている Processing のバージョンで、デフォルト、P2D、P3D、FX2D の各レンダラーを使って sketch を再現し、その後、報告された hs_err_pid8425.log と問題のある libGL.dylib のフレームを調査します。完了条件は、noLoop() を使用する sketch が最初のキー入力後に更新され、P2D/P3D がセグメンテーションフォールトを起こさなくなることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java, macos
領域
computer-graphics, desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。