Template crashes on M1 mac

Aperta
#103 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
rust

Direzione di ricerca

Inizia riproducendo il failure nativo su M1 con cargo run nel progetto eframe_template e confrontalo con la build wasm funzionante. Usa i frame AppKit/ImageIO e eframe::native::app_icon del crash report per individuare il percorso di avvio rilevante; il lavoro è terminato quando il template viene eseguito nativamente su un Mac M1 senza il crash SIGBUS.

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

Descrizione

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.

Lingua principale
Rust
Stelle
1.2k
Fork
235
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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.

Altre issue di emilk/eframe_template

Tutte le issue di emilk/eframe_template

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.