Template crashes on M1 mac

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

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

評価

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

調査の方向性

まず、eframe_template プロジェクトで cargo run を使ってネイティブ M1 の失敗を再現し、動作する wasm ビルドと比較します。クラッシュレポートの AppKit/ImageIO および eframe::native::app_icon フレームを使って、関連する起動パスを特定します。完了の条件は、M1 Mac 上で SIGBUS クラッシュなしにテンプレートがネイティブで実行されることです。

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

説明

I try compiling and running the template natively on my M1 MacBook air and it crashes with the message:

cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `target/debug/eframe_template`
fish: Job 1, 'cargo run' terminated by signal SIGBUS (Misaligned address error)

An error reporting window compiles the report:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Process:               eframe_template [9468]
Path:                  /Users/USER/Documents/*/eframe_template
Identifier:            eframe_template
Version:               ???
Code Type:             ARM-64 (Native)
Parent Process:        fish [6166]
Responsible:           iTerm2 [1407]
User ID:               501

Date/Time:             2023-07-04 10:10:42.6998 +0200
OS Version:            macOS 13.4.1 (22F82)
Report Version:        12
Anonymous UUID:        A0084DB1-8AEA-596D-03B6-D711C864AD81

Sleep/Wake UUID:       C055D727-CF4F-45C5-B42C-B23FBE7D3BE2

Time Awake Since Boot: 220000 seconds
Time Since Wake:       2663 seconds

System Integrity Protection: enabled

Crashed Thread:        0  main  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGBUS)
Exception Codes:       UNKNOWN_0x101 at 0x000000000bad4007
Exception Codes:       0x0000000000000101, 0x000000000bad4007

Termination Reason:    Namespace SIGNAL, Code 10 Bus error: 10
Terminating Process:   exc handler [9468]

VM Region Info: 0xbad4007 is not in any region.  Bytes before following region: 4142219257
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      UNUSED SPACE AT START
--->  
      __TEXT                      102928000-102e04000    [ 4976K] r-x/r-x SM=COW  ...rame_template

Thread 0 Crashed:: main Dispatch queue: com.apple.main-thread
0   ???                           	         0xbad4007 ???
1   ImageIO                       	       0x18d2d1064 IIOReadPlugin::callInitialize() + 136
2   ImageIO                       	       0x18d2d0d78 IIO_Reader::initImageAtOffset(CGImagePlugin*, unsigned long, unsigned long, unsigned long) + 124
3   ImageIO                       	       0x18d2ce60c IIOImageSource::makeImagePlus(unsigned long, IIODictionary*) + 808
4   ImageIO                       	       0x18d2cdee8 IIOImageSource::getPropertiesAtIndexInternal(unsigned long, IIODictionary*) + 72
5   ImageIO                       	       0x18d2cde24 IIOImageSource::copyPropertiesAtIndex(unsigned long, IIODictionary*) + 24
6   ImageIO                       	       0x18d2cdd2c CGImageSourceCopyPropertiesAtIndex + 276
7   AppKit                        	       0x186a2d008 ImageSourceOptionsForCGImageSource_index_ + 64
8   AppKit                        	       0x186a2ce88 +[NSBitmapImageRep _imagesWithData:hfsFileType:extension:zone:expandImageContentNow:includeAllReps:] + 428
9   AppKit                        	       0x186b4a4d8 +[NSBitmapImageRep imageRepsWithData:] + 68
10  AppKit                        	       0x186b49e34 -[NSImage initWithData:] + 76
11  eframe_template               	       0x102a22668 eframe::native::app_icon::AppTitleIconSe

Etc...

Anyone else having a similar problem? It works in wasm, but not natively.

主要言語
Rust
スター
1.2k
フォーク
235
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

emilk/eframe_template のほかの issue

emilk/eframe_template の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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