Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error handling for incorrect model folder #165

Closed
1 task done
StupiDeity opened this issue Feb 21, 2023 · 5 comments
Closed
1 task done

Improve error handling for incorrect model folder #165

StupiDeity opened this issue Feb 21, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@StupiDeity
Copy link

StupiDeity commented Feb 21, 2023

Running Latest Version

  • I am running the latest version

Processor

M1 Max (or later)

Intel processor

No response

Memory

32GB

What happened?

  1. Install MochiDiffusion from homebrew
  2. Install a model in ~/Documents/MochiDiffusion/models from huggingface, e.g. https://huggingface.co/coreml/coreml-stable-diffusion-2-1-base
  3. Open MochiDiffusion
  4. In the Model dropdown select the coreml-stable-diffusion-2-1-base
  5. MochiDiffusion crashes

Tried with other models as well, but doesn't work.

Crash Log

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

Process:               Mochi Diffusion [73176]
Path:                  /Applications/Mochi Diffusion.app/Contents/MacOS/Mochi Diffusion
Identifier:            com.joshua-park.Mochi-Diffusion
Version:               2.4 (2.4)
Code Type:             ARM-64 (Native)
Parent Process:        launchd [1]
User ID:               501

Date/Time:             2023-02-21 16:27:23.6695 +0530
OS Version:            macOS 13.2.1 (22D68)
Report Version:        12
Anonymous UUID:        4212A49C-4C70-A1E6-BE96-EAF405E78762


Time Awake Since Boot: 560000 seconds

System Integrity Protection: enabled

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

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000001, 0x00000001003a950c

Termination Reason:    Namespace SIGNAL, Code 5 Trace/BPT trap: 5
Terminating Process:   exc handler [73176]

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Mochi Diffusion               	       0x1003a950c 0x10038c000 + 120076
1   Mochi Diffusion               	       0x1003a9148 0x10038c000 + 119112
2   Mochi Diffusion               	       0x1003a8e6c 0x10038c000 + 118380
3   SwiftUI                       	       0x1b162672c 0x1b0a97000 + 12121900
4   SwiftUI                       	       0x1b1626b54 0x1b0a97000 + 12122964
5   SwiftUI                       	       0x1b1b08cac 0x1b0a97000 + 17243308
6   SwiftUI                       	       0x1b1b09074 0x1b0a97000 + 17244276
7   SwiftUI                       	       0x1b1dff070 0x1b0a97000 + 20349040
8   SwiftUI                       	       0x1b1dff098 0x1b0a97000 + 20349080
9   SwiftUI                       	       0x1b19ab618 0x1b0a97000 + 15812120
10  SwiftUI                       	       0x1b1dfecd8 0x1b0a97000 + 20348120
11  SwiftUI                       	       0x1b19477c4 0x1b0a97000 + 15402948
12  SwiftUI                       	       0x1b1947588 0x1b0a97000 + 15402376
13  SwiftUI                       	       0x1b1dfeaf8 0x1b0a97000 + 20347640
14  SwiftUI                       	       0x1b1466c84 0x1b0a97000 + 10288260
15  AttributeGraph                	       0x1b23254b8 AG::Graph::UpdateStack::update() + 520
16  AttributeGraph                	       0x1b2325c38 AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int) + 424
17  AttributeGraph                	       0x1b232db9c AG::Graph::value_ref(AG::AttributeID, AGSwiftMetadata const*, unsigned char&) + 192
18  AttributeGraph                	       0x1b2345764 AGGraphGetValue + 284
19  SwiftUI                       	       0x1b1ee4d68 0x1b0a97000 + 21290344
20  SwiftUI                       	       0x1b1588988 0x1b0a97000 + 11475336
21  SwiftUI                       	       0x1b15885dc 0x1b0a97000 + 11474396
22  SwiftUI                       	       0x1b12593c4 0x1b0a97000 + 8135620
23  SwiftUI                       	       0x1b12591ec 0x1b0a97000 + 8135148
24  SwiftUI                       	       0x1b1ee52e0 0x1b0a97000 + 21291744
25  SwiftUI                       	       0x1b1ee6828 0x1b0a97000 + 21297192
26  SwiftUI                       	       0x1b1259464 0x1b0a97000 + 8135780
27  SwiftUI                       	       0x1b1ee67f0 0x1b0a97000 + 21297136
28  SwiftUI                       	       0x1b1ee66dc 0x1b0a97000 + 21296860
29  SwiftUI                       	       0x1b1614a14 0x1b0a97000 + 12048916
30  SwiftUI                       	       0x1b1d558b0 0x1b0a97000 + 19654832
31  SwiftUI                       	       0x1b1d587b8 0x1b0a97000 + 19666872
32  SwiftUI                       	       0x1b1d58810 0x1b0a97000 + 19666960
33  CoreFoundation                	       0x189ef0db8 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
34  CoreFoundation                	       0x189ef0ca4 __CFRunLoopDoObservers + 532
35  CoreFoundation                	       0x189eef8d4 CFRunLoopRunSpecific + 704
36  HIToolbox                     	       0x1935cffa0 RunCurrentEventLoopInMode + 292
37  HIToolbox                     	       0x1935cfde4 ReceiveNextEventCommon + 672
38  HIToolbox                     	       0x1935cfb2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
39  AppKit                        	       0x18d17584c _DPSNextEvent + 632
40  AppKit                        	       0x18d1749dc -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
41  AppKit                        	       0x18d168e0c -[NSApplication run] + 464
42  AppKit                        	       0x18d140250 NSApplicationMain + 880
43  SwiftUI                       	       0x1b0b4341c 0x1b0a97000 + 705564
44  SwiftUI                       	       0x1b1cf8f4c 0x1b0a97000 + 19275596
45  SwiftUI                       	       0x1b151caa0 0x1b0a97000 + 11033248
46  Mochi Diffusion               	       0x100391d00 0x10038c000 + 23808
47  dyld                          	       0x189ae7e50 start + 2544

Thread 1:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x189dd2050 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x189de411c mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x189ddac24 mach_msg_overwrite + 452
3   libsystem_kernel.dylib        	       0x189dd23cc mach_msg + 24
4   CoreFoundation                	       0x189ef1bb0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x189ef049c __CFRunLoopRun + 1232
6   CoreFoundation                	       0x189eef878 CFRunLoopRunSpecific + 612
7   AppKit                        	       0x18d2a019c _NSEventThread + 172
8   libsystem_pthread.dylib       	       0x189e1206c _pthread_start + 148
9   libsystem_pthread.dylib       	       0x189e0ce2c thread_start + 8

Thread 2:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0

Thread 3:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0

Thread 4:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0

Thread 5:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0

Thread 6::  Dispatch queue: com.apple.root.user-interactive-qos
0   libsystem_kernel.dylib        	       0x189dd2050 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x189de411c mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x189ddac24 mach_msg_overwrite + 452
3   libsystem_kernel.dylib        	       0x189dd23cc mach_msg + 24
4   CoreFoundation                	       0x189ef1bb0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x189ef049c __CFRunLoopRun + 1232
6   CoreFoundation                	       0x189eef878 CFRunLoopRunSpecific + 612
7   Foundation                    	       0x18adfaab8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8   AppKit                        	       0x18d4ede48 -[NSAnimation _runBlocking] + 320
9   AppKit                        	       0x18d4ee164 __30-[NSAnimation _runInNewThread]_block_invoke + 124
10  libdispatch.dylib             	       0x189c889dc _dispatch_call_block_and_release + 32
11  libdispatch.dylib             	       0x189c8a504 _dispatch_client_callout + 20
12  libdispatch.dylib             	       0x189c9c0b4 _dispatch_root_queue_drain + 684
13  libdispatch.dylib             	       0x189c9c7c0 _dispatch_worker_thread2 + 164
14  libsystem_pthread.dylib       	       0x189e0e0c4 _pthread_wqthread + 228
15  libsystem_pthread.dylib       	       0x189e0ce20 start_wqthread + 8

Thread 7:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0

Thread 8:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0

Thread 9:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0

Thread 10:
0   libsystem_pthread.dylib       	       0x189e0ce18 start_wqthread + 0


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000001   x1: 0x000000007fffffff   x2: 0x00000001e63392c0   x3: 0x0000000197f7a344
    x4: 0x0000000000000000   x5: 0x00000001e32959e8   x6: 0x0000000000000000   x7: 0x00000001e5443a80
    x8: 0x0000000000000000   x9: 0x0000000000000000  x10: 0x000000010044eb40  x11: 0x000000010044eba8
   x12: 0x0000000000000003  x13: 0x0000000000000800  x14: 0x0000000125400000  x15: 0x00000001e53b45d8
   x16: 0x000000018b036324  x17: 0x2e3f00010044eba8  x18: 0x0000000000000000  x19: 0x000000016fa71258
   x20: 0x000000016fa70eb0  x21: 0x000000016fa70ed0  x22: 0x000000010044ebb0  x23: 0x000000012613df80
   x24: 0x0000000000000000  x25: 0x00000001e596b658  x26: 0x0000000122017280  x27: 0x0000000000000001
   x28: 0x0000000000000001   fp: 0x000000016fa710b0   lr: 0x00000001003a9148
    sp: 0x000000016fa70eb0   pc: 0x00000001003a950c cpsr: 0x60001000
   far: 0x00000001261d4048  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x10038c000 -        0x100443fff com.joshua-park.Mochi-Diffusion (2.4) <8e03f735-5ecb-3573-9901-29714be3fbed> /Applications/Mochi Diffusion.app/Contents/MacOS/Mochi Diffusion
       0x1b0a97000 -        0x1b231afff com.apple.SwiftUI (4.3.3.1.400) <a2ed7102-543e-3c8c-8d24-9ed33a1db942> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x1b231b000 -        0x1b235dfff com.apple.AttributeGraph (4.0.28) <918f7b92-489a-3cf1-9f50-2c50327c270a> /System/Library/PrivateFrameworks/AttributeGraph.framework/Versions/A/AttributeGraph
       0x189e70000 -        0x18a347fff com.apple.CoreFoundation (6.9) <18260df4-69a8-30d3-8175-fb8ae7ae7709> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x19359e000 -        0x1938d1fff com.apple.HIToolbox (2.1.1) <c68fe2e2-e0f3-3caf-ada3-bcc72fba79d0> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x18d13c000 -        0x18e047fff com.apple.AppKit (6.9) <88722053-0df0-3d4f-bf55-7e3c2d2c8e29> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x189ae2000 -        0x189b6cba3 dyld (*) <191e84f1-4b95-39c8-b253-1c1ef56c0fa8> /usr/lib/dyld
       0x189dd1000 -        0x189e0afeb libsystem_kernel.dylib (*) <3dcd49b9-b3c5-3d90-be40-a3b807cb9cd7> /usr/lib/system/libsystem_kernel.dylib
       0x189e0b000 -        0x189e17ffb libsystem_pthread.dylib (*) <9f3b729a-ed04-3e65-adac-d75ad06ebbdc> /usr/lib/system/libsystem_pthread.dylib
       0x18ad9d000 -        0x18b7d6fff com.apple.Foundation (6.9) <c62e0110-c636-396a-9cb6-c3c08392b3fa> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
       0x189c86000 -        0x189ccdfff libdispatch.dylib (*) <4d52c3a5-32e6-37a2-9d6c-23c612038354> /usr/lib/system/libdispatch.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)
Writable regions: Total=350.0M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=350.0M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               384K        3 
Activity Tracing                   256K        1 
CG backing stores                 2880K        4 
CG image                          2208K       15 
ColorSync                          592K       29 
CoreAnimation                     3440K       68 
CoreGraphics                        48K        3 
CoreServices                       128K        1 
CoreUI image data                 3776K       29 
Dispatch continuations            80.0M        1 
Foundation                          16K        1 
Kernel Alloc Once                   32K        1 
MALLOC                           131.3M       54 
MALLOC guard page                  192K       10 
MALLOC_MEDIUM (reserved)         112.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.2M       11 
Stack                             13.3M       11 
VM_ALLOCATE                       3280K       14 
__AUTH                            2034K      343 
__AUTH_CONST                      25.0M      561 
__CTF                               756        1 
__DATA                            12.9M      550 
__DATA_CONST                      27.3M      566 
__DATA_DIRTY                      2009K      214 
__FONT_DATA                        2352        1 
__LINKEDIT                       768.2M        4 
__OBJC_CONST                      4437K      305 
__OBJC_RO                         65.5M        1 
__OBJC_RW                         1988K        1 
__TEXT                           593.2M      587 
dyld private memory                256K        1 
mapped file                      203.5M       41 
shared memory                     2928K       19 
===========                     =======  ======= 
TOTAL                              2.1G     3452 
TOTAL, minus reserved VM space     2.0G     3452 



-----------
Full Report
-----------

{"app_name":"Mochi Diffusion","timestamp":"2023-02-21 16:27:23.00 +0530","app_version":"2.4","slice_uuid":"8e03f735-5ecb-3573-9901-29714be3fbed","build_version":"2.4","platform":1,"bundleID":"com.joshua-park.Mochi-Diffusion","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.2.1 (22D68)","roots_installed":0,"name":"Mochi Diffusion","incident_id":"9E386B19-8919-4655-A124-E255F159152D"}
{
  "uptime" : 560000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "Mac13,1",
  "coalitionID" : 29778,
  "osVersion" : {
    "train" : "macOS 13.2.1",
    "build" : "22D68",
    "releaseType" : "User"
  },
  "captureTime" : "2023-02-21 16:27:23.6695 +0530",
  "incident" : "9E386B19-8919-4655-A124-E255F159152D",
  "pid" : 73176,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-02-21 16:24:28.9664 +0530",
  "procStartAbsTime" : 13667423164705,
  "procExitAbsTime" : 13671615882336,
  "procName" : "Mochi Diffusion",
  "procPath" : "\/Applications\/Mochi Diffusion.app\/Contents\/MacOS\/Mochi Diffusion",
  "bundleInfo" : {"CFBundleShortVersionString":"2.4","CFBundleVersion":"2.4","CFBundleIdentifier":"com.joshua-park.Mochi-Diffusion"},
  "storeInfo" : {"deviceIdentifierForVendor":"79C937F4-CD2C-5FC0-ACEE-C384BC51EEC9","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.joshua-park.Mochi-Diffusion",
  "crashReporterKey" : "4212A49C-4C70-A1E6-BE96-EAF405E78762",
  "throttleTimeout" : 2147483647,
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x00000001003a950c","rawCodes":[1,4298806540],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":73176},
  "os_fault" : {"process":"Mochi Diffusion"},
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":11914301,"threadState":{"x":[{"value":1},{"value":2147483647},{"value":8157106880,"symbolLocation":0,"symbol":"type metadata for URL"},{"value":6844556100,"symbolLocation":0,"symbol":"swift::metadataimpl::FixedSizeBufferValueWitnesses<swift::metadataimpl::ValueWitnesses<swift::metadataimpl::ObjCRetainableBox>, true, 8ul, 8ul, true>::getEnumTagSinglePayload(swift::OpaqueValue const*, unsigned int, swift::TargetMetadata<swift::InProcess> const*)"},{"value":0},{"value":8106105320,"symbolLocation":0,"symbol":"flag for loading of canonical specialized generic type metadata for Optional"},{"value":0},{"value":8141421184,"symbolLocation":11560,"symbol":"InitialAllocationPool"},{"value":0},{"value":0},{"value":4299483968},{"value":4299484072},{"value":3},{"value":2048},{"value":4919918592},{"value":8140834264,"symbolLocation":0,"symbol":"__CFConstantStringClassReference"},{"value":6627222308,"symbolLocation":0,"symbol":"type metadata accessor for URL"},{"value":3332382253576940456},{"value":0},{"value":6168187480},{"value":6168186544},{"value":6168186576},{"value":4299484080},{"value":4933803904},{"value":0},{"value":8146826840,"symbolLocation":0,"symbol":"_swiftEmptyArrayStorage"},{"value":4865487488},{"value":1},{"value":1}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4298805576},"cpsr":{"value":1610616832},"fp":{"value":6168187056},"sp":{"value":6168186544},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4298806540,"matchesCrashFrame":1},"far":{"value":4934418504}},"queue":"com.apple.main-thread","frames":[{"imageOffset":120076,"imageIndex":0},{"imageOffset":119112,"imageIndex":0},{"imageOffset":118380,"imageIndex":0},{"imageOffset":12121900,"imageIndex":1},{"imageOffset":12122964,"imageIndex":1},{"imageOffset":17243308,"imageIndex":1},{"imageOffset":17244276,"imageIndex":1},{"imageOffset":20349040,"imageIndex":1},{"imageOffset":20349080,"imageIndex":1},{"imageOffset":15812120,"imageIndex":1},{"imageOffset":20348120,"imageIndex":1},{"imageOffset":15402948,"imageIndex":1},{"imageOffset":15402376,"imageIndex":1},{"imageOffset":20347640,"imageIndex":1},{"imageOffset":10288260,"imageIndex":1},{"imageOffset":42168,"symbol":"AG::Graph::UpdateStack::update()","symbolLocation":520,"imageIndex":2},{"imageOffset":44088,"symbol":"AG::Graph::update_attribute(AG::data::ptr<AG::Node>, unsigned int)","symbolLocation":424,"imageIndex":2},{"imageOffset":76700,"symbol":"AG::Graph::value_ref(AG::AttributeID, AGSwiftMetadata const*, unsigned char&)","symbolLocation":192,"imageIndex":2},{"imageOffset":173924,"symbol":"AGGraphGetValue","symbolLocation":284,"imageIndex":2},{"imageOffset":21290344,"imageIndex":1},{"imageOffset":11475336,"imageIndex":1},{"imageOffset":11474396,"imageIndex":1},{"imageOffset":8135620,"imageIndex":1},{"imageOffset":8135148,"imageIndex":1},{"imageOffset":21291744,"imageIndex":1},{"imageOffset":21297192,"imageIndex":1},{"imageOffset":8135780,"imageIndex":1},{"imageOffset":21297136,"imageIndex":1},{"imageOffset":21296860,"imageIndex":1},{"imageOffset":12048916,"imageIndex":1},{"imageOffset":19654832,"imageIndex":1},{"imageOffset":19666872,"imageIndex":1},{"imageOffset":19666960,"imageIndex":1},{"imageOffset":527800,"symbol":"__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__","symbolLocation":36,"imageIndex":3},{"imageOffset":527524,"symbol":"__CFRunLoopDoObservers","symbolLocation":532,"imageIndex":3},{"imageOffset":522452,"symbol":"CFRunLoopRunSpecific","symbolLocation":704,"imageIndex":3},{"imageOffset":204704,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":4},{"imageOffset":204260,"symbol":"ReceiveNextEventCommon","symbolLocation":672,"imageIndex":4},{"imageOffset":203564,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":72,"imageIndex":4},{"imageOffset":235596,"symbol":"_DPSNextEvent","symbolLocation":632,"imageIndex":5},{"imageOffset":231900,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":728,"imageIndex":5},{"imageOffset":183820,"symbol":"-[NSApplication run]","symbolLocation":464,"imageIndex":5},{"imageOffset":16976,"symbol":"NSApplicationMain","symbolLocation":880,"imageIndex":5},{"imageOffset":705564,"imageIndex":1},{"imageOffset":19275596,"imageIndex":1},{"imageOffset":11033248,"imageIndex":1},{"imageOffset":23808,"imageIndex":0},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":6}]},{"id":11914328,"name":"com.apple.NSEventThread","frames":[{"imageOffset":4176,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":7},{"imageOffset":78108,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":7},{"imageOffset":39972,"symbol":"mach_msg_overwrite","symbolLocation":452,"imageIndex":7},{"imageOffset":5068,"symbol":"mach_msg","symbolLocation":24,"imageIndex":7},{"imageOffset":531376,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":3},{"imageOffset":525468,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":3},{"imageOffset":522360,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":3},{"imageOffset":1458588,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":5},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":8},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":8}]},{"id":11915606,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":11915607,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":11916086,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":11916087,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":11916110,"queue":"com.apple.root.user-interactive-qos","frames":[{"imageOffset":4176,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":7},{"imageOffset":78108,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":7},{"imageOffset":39972,"symbol":"mach_msg_overwrite","symbolLocation":452,"imageIndex":7},{"imageOffset":5068,"symbol":"mach_msg","symbolLocation":24,"imageIndex":7},{"imageOffset":531376,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":3},{"imageOffset":525468,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":3},{"imageOffset":522360,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":3},{"imageOffset":383672,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":212,"imageIndex":9},{"imageOffset":3874376,"symbol":"-[NSAnimation _runBlocking]","symbolLocation":320,"imageIndex":5},{"imageOffset":3875172,"symbol":"__30-[NSAnimation _runInNewThread]_block_invoke","symbolLocation":124,"imageIndex":5},{"imageOffset":10716,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":10},{"imageOffset":17668,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":10},{"imageOffset":90292,"symbol":"_dispatch_root_queue_drain","symbolLocation":684,"imageIndex":10},{"imageOffset":92096,"symbol":"_dispatch_worker_thread2","symbolLocation":164,"imageIndex":10},{"imageOffset":12484,"symbol":"_pthread_wqthread","symbolLocation":228,"imageIndex":8},{"imageOffset":7712,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":8}]},{"id":11916111,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":11916112,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":11916113,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]},{"id":11916114,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":8}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4298686464,
    "CFBundleShortVersionString" : "2.4",
    "CFBundleIdentifier" : "com.joshua-park.Mochi-Diffusion",
    "size" : 753664,
    "uuid" : "8e03f735-5ecb-3573-9901-29714be3fbed",
    "path" : "\/Applications\/Mochi Diffusion.app\/Contents\/MacOS\/Mochi Diffusion",
    "name" : "Mochi Diffusion",
    "CFBundleVersion" : "2.4"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7258861568,
    "CFBundleShortVersionString" : "4.3.3.1.400",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 25706496,
    "uuid" : "a2ed7102-543e-3c8c-8d24-9ed33a1db942",
    "path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "4.3.3.1.400"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7284568064,
    "CFBundleShortVersionString" : "4.0.28",
    "CFBundleIdentifier" : "com.apple.AttributeGraph",
    "size" : 274432,
    "uuid" : "918f7b92-489a-3cf1-9f50-2c50327c270a",
    "path" : "\/System\/Library\/PrivateFrameworks\/AttributeGraph.framework\/Versions\/A\/AttributeGraph",
    "name" : "AttributeGraph",
    "CFBundleVersion" : "4.0.28"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6608584704,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5079040,
    "uuid" : "18260df4-69a8-30d3-8175-fb8ae7ae7709",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6767108096,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3358720,
    "uuid" : "c68fe2e2-e0f3-3caf-ada3-bcc72fba79d0",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6661849088,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15777792,
    "uuid" : "88722053-0df0-3d4f-bf55-7e3c2d2c8e29",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.40.118"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6604857344,
    "size" : 568228,
    "uuid" : "191e84f1-4b95-39c8-b253-1c1ef56c0fa8",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6607933440,
    "size" : 237548,
    "uuid" : "3dcd49b9-b3c5-3d90-be40-a3b807cb9cd7",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6608171008,
    "size" : 53244,
    "uuid" : "9f3b729a-ed04-3e65-adac-d75ad06ebbdc",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6624497664,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.Foundation",
    "size" : 10723328,
    "uuid" : "c62e0110-c636-396a-9cb6-c3c08392b3fa",
    "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Versions\/C\/Foundation",
    "name" : "Foundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6606577664,
    "size" : 294912,
    "uuid" : "4d52c3a5-32e6-37a2-9d6c-23c612038354",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  }
],
  "sharedCache" : {
  "base" : 6604210176,
  "size" : 3447455744,
  "uuid" : "835716ae-b363-3187-b065-cf94139bfc85"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)\nWritable regions: Total=350.0M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=350.0M(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               384K        3 \nActivity Tracing                   256K        1 \nCG backing stores                 2880K        4 \nCG image                          2208K       15 \nColorSync                          592K       29 \nCoreAnimation                     3440K       68 \nCoreGraphics                        48K        3 \nCoreServices                       128K        1 \nCoreUI image data                 3776K       29 \nDispatch continuations            80.0M        1 \nFoundation                          16K        1 \nKernel Alloc Once                   32K        1 \nMALLOC                           131.3M       54 \nMALLOC guard page                  192K       10 \nMALLOC_MEDIUM (reserved)         112.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.2M       11 \nStack                             13.3M       11 \nVM_ALLOCATE                       3280K       14 \n__AUTH                            2034K      343 \n__AUTH_CONST                      25.0M      561 \n__CTF                               756        1 \n__DATA                            12.9M      550 \n__DATA_CONST                      27.3M      566 \n__DATA_DIRTY                      2009K      214 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       768.2M        4 \n__OBJC_CONST                      4437K      305 \n__OBJC_RO                         65.5M        1 \n__OBJC_RW                         1988K        1 \n__TEXT                           593.2M      587 \ndyld private memory                256K        1 \nmapped file                      203.5M       41 \nshared memory                     2928K       19 \n===========                     =======  ======= \nTOTAL                              2.1G     3452 \nTOTAL, minus reserved VM space     2.0G     3452 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "60f8ddccefea4203d95cbeef",
      "factorPackIds" : {

      },
      "deploymentId" : 240000022
    },
    {
      "rolloutId" : "62b4513af75dc926494899c6",
      "factorPackIds" : {
        "COREOS_ICD" : "62fbe3cfa9a700130f60b3ea"
      },
      "deploymentId" : 240000019
    }
  ],
  "experiments" : [

  ]
}
}

Model: Mac13,1, BootROM 8419.80.7, proc 10:8:2 processors, 32 GB, SMC 
Graphics: Apple M1 Max, Apple M1 Max, Built-In
Display: LG HDR 4K, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), Main, MirrorOff, Online
Memory Module: LPDDR5, Samsung
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Nov 30 2022 02:49:13 version 20.10.965.13.8.7.131 FWID 01-c3a524b8
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Ethernet, Ethernet, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB2 Hub
USB Device: Lenovo FHD Webcam
USB Device: USB3 Gen2 Hub
Thunderbolt Bus: Mac Studio, Apple Inc.
Thunderbolt Bus: Mac Studio, Apple Inc.
Thunderbolt Bus: Mac Studio, Apple Inc.
Thunderbolt Bus: Mac Studio, Apple Inc.
@StupiDeity StupiDeity added the bug Something isn't working label Feb 21, 2023
@StupiDeity
Copy link
Author

N00b here. Forgot to unzip the models and place it in the root model folder.

@vzsg
Copy link
Contributor

vzsg commented Feb 21, 2023

Even if you do that, it shouldn't cause a crash. Did you copy the zip file in the models folder?

@vzsg
Copy link
Contributor

vzsg commented Feb 21, 2023

Okay, I managed to reproduce it: I created a subfolder under models and put the zip file in that subfolder (as opposed to unpacking it). I selected the folder from the dropdown and boom, a force unwrap explodes.

This is worthy of a reopen, IMHO.

@godly-devotion godly-devotion changed the title MochiDiffusion crashes immediately on loading any model Improve error handling for incorrect model folder Feb 21, 2023
@vzsg
Copy link
Contributor

vzsg commented Mar 31, 2023

You can also close this one, @godly-devotion 🙂

@godly-devotion
Copy link
Collaborator

Fixed by #209

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants