Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`ReadOnlyMemoryError()` when creating Julia objects in multiple sub-processes using PyJulia.

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
julia, python
領域
backend

調査の方向性

まず、PyJulia と diffeqpy を介して Julia オブジェクトを作成する多数のサブプロセスで失敗を再現し、PyJulia 0.5.6 と 0.5.7 を比較します。gc.c と compiler/ssair/ にある、報告された Julia GC およびコンパイラのスタックトレースを使って、そのしきい値が PyJulia、Julia、またはプロセスリソースのいずれに関連するものかを判断します。原因が確認され、実行可能な解決策が得られれば完了です。

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

説明

I have a program that spawns a large number of sub-processes and each sub-process is having its own Julia object created using pyjulia and diffeqpy. It works fine for around 50 sub-processes, but after that, I get these errors. The following is the stack trace from one of the sub-processes.

Can anybody suggest a potential cause of the ReadOnlyMemoryError()? I tried both 0,5.6 and 0.5.7 versions of PyJulia.

Internal error: encountered unexpected error in runtime:
ReadOnlyMemoryError()
reset_page at /cygdrive/c/buildbot/worker/package_win64/build/src\gc.c:1145 [inlined]
add_page at /cygdrive/c/buildbot/worker/package_win64/build/src\gc.c:1177
jl_gc_pool_alloc at /cygdrive/c/buildbot/worker/package_win64/build/src\gc.c:1230
UseRef at .\compiler/ssair\ir.jl:263 [inlined]
UseRefIterator at .\compiler/ssair\ir.jl:268 [inlined]
userefs at .\compiler/ssair\ir.jl:382 [inlined]
scan_entry! at .\compiler/ssair\slot2ssa.jl:27
scan_slot_def_use at .\compiler/ssair\slot2ssa.jl:56
slot2reg at .\compiler/ssair\driver.jl:126 [inlined]
run_passes at .\compiler/ssair\driver.jl:134
optimize at .\compiler\optimize.jl:174
typeinf at .\compiler\typeinfer.jl:33
主要言語
Python
スター
893
フォーク
101
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

JuliaPy/pyjulia のほかの issue

JuliaPy/pyjulia の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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