Code Monkey home page Code Monkey logo

mochidiffusion's Introduction

Mochi Diffusion

Run Stable Diffusion on Mac natively

English, 한국어, 中文

Screenshot

Description

This app uses Apple's Core ML Stable Diffusion implementation to achieve maximum performance and speed on Apple Silicon based Macs while reducing memory requirements.

Features

  • Extremely fast and memory efficient (~150MB with Neural Engine)
  • Runs well on all Apple Silicon Macs by fully utilizing Neural Engine
  • Generate images locally and completely offline
  • Generate images based on an existing image (commonly known as Image2Image)
  • Generate images using ControlNet
  • Generated images are saved with prompt info inside EXIF metadata (view in Finder's Get Info window)
  • Convert generated images to high resolution (using RealESRGAN)
  • Autosave & restore images
  • Use custom Stable Diffusion Core ML models
  • No worries about pickled models
  • macOS native app using SwiftUI

Releases

Download the latest version from the releases page.

Running

When using a model for the very first time, it may take up to 2 minutes for the Neural Engine to compile a cached version. Afterwards, subsequent generations will be much faster.

Compute Unit

  • CPU & Neural Engine provides a good balance between speed and low memory usage
  • CPU & GPU may be faster on M1 Max, Ultra and later but will use more memory

Depending on the option chosen, you will need to use the correct model version (see Models section for details).

Models

You will need to convert or download Core ML models in order to use Mochi Diffusion.

A few models have been converted and uploaded here.

  1. Convert or download Core ML models
    • split_einsum version is compatible with all compute unit options including Neural Engine
    • original version is only compatible with CPU & GPU option
  2. By default, the app's model folder will be created under your home directory. This location can be customized under Settings
  3. In the model folder, create a new folder with the name you'd like displayed in the app then move or extract the converted models here
  4. Your directory structure should look like this:
<Home Directory>/
└── MochiDiffusion/
    └── models/
        ├── stable-diffusion-2-1_split-einsum_compiled/
        │   ├── merges.txt
        │   ├── TextEncoder.mlmodelc
        │   ├── Unet.mlmodelc
        │   ├── VAEDecoder.mlmodelc
        │   ├── VAEEncoder.mlmodelc
        │   └── vocab.json
        ├── ...
        └── ...

Compatibility

  • Apple Silicon (M1 and later)
  • macOS Sonoma 14.0 and later
  • Xcode 15.2 (to build)

Privacy

All generation happens locally and absolutely nothing is sent to the cloud.

Contributing

Mochi Diffusion is always looking for contributions, whether it's through bug reports, code, or new translations.

  • If you find a bug, or would like to suggest a new feature or enhancement, try searching for your problem first as it helps avoid duplicates. If you can't find your issue, feel free to create a new issue. Don't create an issue for your question as those are for bugs and feature requests only.

  • If you're looking to contribute code, feel free to open a Pull Request. I recommend installing swift-format to catch lint issues.

  • If you'd like to translate Mochi Diffusion to your language, please visit the project page on Crowdin. You can create an account for free and start translating and/or approving.

Credits

mochidiffusion's People

Contributors

alexey-detr avatar amitkot avatar azyu avatar carterlombardi avatar dependabot[bot] avatar gdbing avatar godly-devotion avatar haiodo avatar hoseins77 avatar jerry23011 avatar jinhongw avatar jrittvo avatar lordgiotto avatar mangoes-dev avatar pcuenca avatar stuartjmoore avatar surjikal avatar vzsg avatar zabriskije avatar zachnagengast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mochidiffusion's Issues

Can you add a comparison of different configurations

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Provide a running comparison similar to Intel processor m1 m1pro m1max m2 m2pro m2max

Why do you think this should be added?

Provide expectations and references for users

Save Settings with each new batch

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

I wish to have the possibility to save a setting.txt with each picture saved (even with "save all"). I know that the filename is the prompt, but it's of course incomplete. Like with a colab, in a way.

Why do you think this should be added?

To find the exact settings, prompts, negative prompt, seed, and all, next to each picture.

Support token weights

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

I want to be able to set weight for a specific words, like I do in Midjourney or others.

Why do you think this should be added?

This is an important feature that gives better artistic control over generation.

High resolution options

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

While RealESRGAN is a common upscaler to use. I do like to have the option to utilize other models like BSRGAN for example.

Why do you think this should be added?

Theres a couple coreml versions here. They all render pretty quickly!

[Feat]: Automatically convert ckpt / tensors into usable models

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

I want it so I can just import an existing model and Mochi converts it for me

Why do you think this should be added?

Because I am a lazy user and I don’t want to do things for myself

The resulting images are just noise (Intel processor)

Running Latest Version

  • I am running the latest version

Processor

Intel

Intel processor

i5 10600 and RX 6600 XT 8Gb

Memory

16GB

What happened?

Original models from Hugging Face only produce noise, but split_einsum ones works just fine, what could be the problem?
Pic

Crash Log

No response

Non-destructive removal of imported images

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

When I import images later on to resize, for example. There is no clear indication that removing them after modification will send them to trash. The only way to clear imported images non-destructively is to close/open the app or change the low memory setting.

Why do you think this should be added?

It would be nice to quickly remove the imported images without having to change memory settings or close and reopen the app. Also it would be nice to have the option to save the orignal smaller image copy during the resize operation (especially if later we have other upscale sampler options).

Database restore

Running Latest Version

  • I am running the latest version

Processor

Intel

Intel processor

3,1 GHz 6-Core Intel Core i5, AMD Radeon Pro 5300 4 GB, 40GB RAM. macOS 13.2

Memory

32GB

What happened?

I was using the app (generating image) and suddenly it crashed macOS GUI. After reboot (or just re-login) my all generated images in Mochi were gone. So not sure maybe crash corrupted Mochi database. Would be nice if app would have some kind of database backup mechanism so after crash it can restore older database or something like that.

P.S. Crash report was not generated. Not sure why.

Crash Log

No response

DPM Solver ++ implementation not correct?

Running Latest Version

  • I am running the latest version

Processor

M1 Pro (or later)

Intel processor

No response

Memory

16GB

What happened?

I found that the "DPM-Solver ++" scheduler did not produce the same results (with a given seed) as any one of the following schedulers from Automatic1111's webui:

  • DPM++ 2S a
  • DPM++ 2M
  • DPM++ SDE
  • DPM++ 2S a Karras
  • DPM++ 2M Karras
  • DPM++ SDE Karras

I think that Automatic1111's implementation supposedly matches the canonical implementation.
So, I think that the Mochi Diffusion implementation is probably incorrect. It does not say which DPM++ solver it is exactly. Can you be more specific as to exactly which DPM++ algorithm it is?

It is important to use the correct implementation, so that prompts and configurations are portable across different applications.

Crash Log

No response

[Bug]: Stuck on "Loading Model..."

Running Latest Version

  • I am running the latest version

Processor

M1 Pro (or later)

Intel processor

No response

Memory

16GB

What happened?

I enter a prompt, set the settings, set a model, then click "Generate". The spinning wheel says "Loading Model..."

Screenshot 2023-01-22 at 22 55 16

It does not progress beyond this point.

I used the Mochi Diffusion app earlier without issue. Same model, same prompt. It could have happened after I updated to the newest version of Mochi Diffusion (2.1.2). However, downgrading to 2.1.1 did not help.

I tried deleting the application and application settings, but some settings keep persisting. I deleted the two directories in "/Users/user/Library/", but still some settings persist. When I remove the app and reinstall it, it remembers the prompt I used and directory of the models. I think the application is storing data somewhere nonstandard, that is not labelled with the application name "mochi". I could not find any remaining directories on the machine with "mochi" in the name; I performed a search with sudo find / -iname mochi.

Crash Log

No response

Add copy image by right-click, add multi-selection

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Hello, thank you for this awesome tool! I started a $5 monthly sponsorship to hopefully help motivate you to continue the great work.

I have two feature requests that would greatly improve my workflow with Mochi Diffusion.
First is to add a Copy image option to the right-click menu of individual items. This would simply copy the image to clipboard.
Second is to add multi-selection to the "canvas", so that I can select multiple images and then save just those images, contrary to saving all of them, or manually one-by one.

Thank you!

Why do you think this should be added?

I think this is a common action that users take, that currently isn't very ergonomic.

QuickLook is not updated when the very first image is deleted

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

  1. Generate two images.
  2. Make sure that the first one is selected.
  3. Open QuickLook.
  4. Delete the first image with the keyboard shortcut or via the menu.
  5. Observe that while other parts of the UI are updated as the second image becoming selected, QuickLook is still showing the deleted image.

Expected behavior:

  • If there are other images left, QuickLook should be updated with the new first image.
  • If all images were deleted, QuickLook should be dismissed (if possible).

Crash Log

No response

The selected model does not support setting a starting image error message

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

With the amazing new img2img feature I'm unclear which models can use the pipeline. Instead we see a genertic error message informing us that this model does not support the pipeline.

Is this in error? and what models do support the new img2img feature?

Why do you think this should be added?

Either support for more models or a list of img2img capable models.

*incredible work here.

有没有可能加入lora的支持呢?

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

加入原版stable diffusion的lora插件功能可行吗?

Why do you think this should be added?

metal速度比cpu gpu跑快了6-7倍,希望能加入插件完善

image2image support

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Why do you think this should be added?

image2image opens up door for a completely new level of creativity.

Size of the images

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

I'm really impressed by the speed, but there is no way ton specify the size of the image, at least to have some ratio, such as
1:1, 5:4, 4:3, 19:16, ...

Why do you think this should be added?

IMHO, without this option, it can be fast, but not so much useful

Add a Quick Look to view images in the app via the spacebar

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Open the Quick Look preview window with the selected picture by pressing the spacebar inside the application

Why do you think this should be added?

I think it would be convenient to open the resulting images on a larger scale instantly and without going to the Finder.
Thank you for your work!

Improve error handling for incorrect model folder

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.

Potential crash when deleting images during an ongoing upscale

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

  1. Generate a single image at original resolution.
  2. Trigger an upscale on this image with the ⌘R shortcut or the context menu (Convert to High Resolution).
  3. Immediately delete the image with ⌘⌫ or the context menu (Remove).
  4. Wait a few seconds for the upscaling to finish.

The app crashes as the image index it's trying to replace is no longer valid.

Crash Log

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

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

Date/Time:             2023-02-01 16:35:05.8987 +0100
OS Version:            macOS 13.2 (22D49)
Report Version:        12
Anonymous UUID:        7AA09E58-14BB-3FA6-6323-21519F2C7513

Sleep/Wake UUID:       6533F255-217D-4674-8CCA-AE4D0B05595D

Time Awake Since Boot: 130000 seconds
Time Since Wake:       2862 seconds

System Integrity Protection: enabled

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

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

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

Kernel Triage:
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage
VM - pmap_enter retried due to resource shortage


Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   Mochi Diffusion               	       0x10246ab64 0x102444000 + 158564
1   Mochi Diffusion               	       0x10246ab54 0x102444000 + 158548
2   Mochi Diffusion               	       0x102468314 0x102444000 + 148244
3   libdispatch.dylib             	       0x1888b89dc _dispatch_call_block_and_release + 32
4   libdispatch.dylib             	       0x1888ba504 _dispatch_client_callout + 20
5   libdispatch.dylib             	       0x1888c8d1c _dispatch_main_queue_drain + 928
6   libdispatch.dylib             	       0x1888c896c _dispatch_main_queue_callback_4CF + 44
7   CoreFoundation                	       0x188b62d40 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
8   CoreFoundation                	       0x188b207c0 __CFRunLoopRun + 2036
9   CoreFoundation                	       0x188b1f878 CFRunLoopRunSpecific + 612
10  HIToolbox                     	       0x1921fffa0 RunCurrentEventLoopInMode + 292
11  HIToolbox                     	       0x1921ffde4 ReceiveNextEventCommon + 672
12  HIToolbox                     	       0x1921ffb2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
13  AppKit                        	       0x18bda5838 _DPSNextEvent + 632
14  AppKit                        	       0x18bda49c8 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
15  AppKit                        	       0x18bd98df8 -[NSApplication run] + 464
16  AppKit                        	       0x18bd7023c NSApplicationMain + 880
17  SwiftUI                       	       0x1af77341c 0x1af6c7000 + 705564
18  SwiftUI                       	       0x1b0928f4c 0x1af6c7000 + 19275596
19  SwiftUI                       	       0x1b014caa0 0x1af6c7000 + 11033248
20  Mochi Diffusion               	       0x102447008 0x102444000 + 12296
21  dyld                          	       0x188717e50 start + 2544

Thread 1:
0   libsystem_pthread.dylib       	       0x188a3ce18 start_wqthread + 0

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x188a02050 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x188a1411c mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x188a0ac24 mach_msg_overwrite + 452
3   libsystem_kernel.dylib        	       0x188a023cc mach_msg + 24
4   CoreFoundation                	       0x188b21bb0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x188b2049c __CFRunLoopRun + 1232
6   CoreFoundation                	       0x188b1f878 CFRunLoopRunSpecific + 612
7   AppKit                        	       0x18bed0188 _NSEventThread + 172
8   libsystem_pthread.dylib       	       0x188a4206c _pthread_start + 148
9   libsystem_pthread.dylib       	       0x188a3ce2c thread_start + 8

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

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

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

Thread 6:
0   libsystem_pthread.dylib       	       0x188a3ce18 start_wqthread + 0

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

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

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

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


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x00000001e459b658   x1: 0x0000000196ba86d8   x2: 0x0000000000000000   x3: 0x0000000102515eb8
    x4: 0x0000000000000000   x5: 0x00000001e1ec59e8   x6: 0x0000000000000001   x7: 0x00000001e40733b0
    x8: 0x0000000000000000   x9: 0x0000000200000003  x10: 0xfffffffe00000000  x11: 0x0000000200000003
   x12: 0x0000000000000003  x13: 0x00000000000007fd  x14: 0x00000000f547d00d  x15: 0x00000000f527c801
   x16: 0x0000000196bec504  x17: 0x0f4500016d9ba130  x18: 0x0000000000000000  x19: 0x000000016d9ba110
   x20: 0x0000000102515e48  x21: 0x000000016d9ba100  x22: 0x0000000000000000  x23: 0x000000016d9ba070
   x24: 0x0000600003fcf740  x25: 0x00006000024ce280  x26: 0x00000001987862c8  x27: 0x00000001e459b658
   x28: 0x000060000282c060   fp: 0x000000016d9ba1a0   lr: 0x000000010246ab54
    sp: 0x000000016d9ba070   pc: 0x000000010246ab64 cpsr: 0x60001000
   far: 0x000000037cb28000  esr: 0xf2000001 (Breakpoint) brk 1

Binary Images:
       0x102444000 -        0x102507fff com.joshua-park.Mochi-Diffusion (2.1.5) <e47d093d-e1c8-3067-9832-5ff82a99f019> /Applications/Mochi Diffusion.app/Contents/MacOS/Mochi Diffusion
       0x1888b6000 -        0x1888fdfff libdispatch.dylib (*) <4d52c3a5-32e6-37a2-9d6c-23c612038354> /usr/lib/system/libdispatch.dylib
       0x188aa0000 -        0x188f77fff com.apple.CoreFoundation (6.9) <18260df4-69a8-30d3-8175-fb8ae7ae7709> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1921ce000 -        0x192501fff com.apple.HIToolbox (2.1.1) <c68fe2e2-e0f3-3caf-ada3-bcc72fba79d0> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x18bd6c000 -        0x18cc77fff com.apple.AppKit (6.9) <7758f868-3402-3892-8b75-66ab0b883af6> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1af6c7000 -        0x1b0f4afff com.apple.SwiftUI (4.3.3.1.400) <a2ed7102-543e-3c8c-8d24-9ed33a1db942> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x188712000 -        0x18879cba3 dyld (*) <fe8a9d9e-f65d-34ca-942c-175b99c0601b> /usr/lib/dyld
       0x188a3b000 -        0x188a47ffb libsystem_pthread.dylib (*) <9f3b729a-ed04-3e65-adac-d75ad06ebbdc> /usr/lib/system/libsystem_pthread.dylib
       0x188a01000 -        0x188a3afeb libsystem_kernel.dylib (*) <6b682e21-fd96-3a5a-8260-fce367258252> /usr/lib/system/libsystem_kernel.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: 57
    thread_create: 49
    thread_set_state: 214

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

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework              5632K        6 
Activity Tracing                   256K        1 
CG backing stores                 2176K        4 
CG image                           768K       21 
ColorSync                          592K       29 
CoreAnimation                     5216K       65 
CoreGraphics                        32K        2 
CoreImage                         24.0M        1 
CoreUI image data                 4384K       34 
Foundation                          48K        2 
Kernel Alloc Once                   32K        1 
MALLOC                             1.8G      206 
MALLOC guard page                  192K       10 
MALLOC_MEDIUM (reserved)         504.0M        5         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.2M       11 
Stack                             13.3M       11 
VM_ALLOCATE                       3280K       14 
__AUTH                            2087K      355 
__AUTH_CONST                      25.2M      577 
__CTF                               756        1 
__DATA                            13.1M      565 
__DATA_CONST                      27.8M      582 
__DATA_DIRTY                      2017K      218 
__FONT_DATA                        2352        1 
__LINKEDIT                       768.2M        4 
__OBJC_CONST                      4522K      314 
__OBJC_RO                         65.5M        1 
__OBJC_RW                         1988K        1 
__TEXT                           600.3M      603 
dyld private memory                256K        1 
mapped file                        2.2G       62 
shared memory                     2960K       19 
===========                     =======  ======= 
TOTAL                              6.4G     3728 
TOTAL, minus reserved VM space     5.6G     3728 



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

{"app_name":"Mochi Diffusion","timestamp":"2023-02-01 16:35:07.00 +0100","app_version":"2.1.5","slice_uuid":"e47d093d-e1c8-3067-9832-5ff82a99f019","build_version":"2.1.5","platform":1,"bundleID":"com.joshua-park.Mochi-Diffusion","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.2 (22D49)","roots_installed":0,"name":"Mochi Diffusion","incident_id":"F7AB9B67-EACB-47A8-BD4C-51A66CA05964"}
{
  "uptime" : 130000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro17,1",
  "coalitionID" : 19960,
  "osVersion" : {
    "train" : "macOS 13.2",
    "build" : "22D49",
    "releaseType" : "User"
  },
  "captureTime" : "2023-02-01 16:35:05.8987 +0100",
  "incident" : "F7AB9B67-EACB-47A8-BD4C-51A66CA05964",
  "pid" : 73005,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-02-01 16:33:51.5737 +0100",
  "procStartAbsTime" : 3261333217936,
  "procExitAbsTime" : 3263116824172,
  "procName" : "Mochi Diffusion",
  "procPath" : "\/Applications\/Mochi Diffusion.app\/Contents\/MacOS\/Mochi Diffusion",
  "bundleInfo" : {"CFBundleShortVersionString":"2.1.5","CFBundleVersion":"2.1.5","CFBundleIdentifier":"com.joshua-park.Mochi-Diffusion"},
  "storeInfo" : {"deviceIdentifierForVendor":"A96E5AF3-33A2-59E8-8D46-4E85ACCB3823","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.joshua-park.Mochi-Diffusion",
  "crashReporterKey" : "7AA09E58-14BB-3FA6-6323-21519F2C7513",
  "throttleTimeout" : 2147483647,
  "wakeTime" : 2862,
  "sleepWakeUUID" : "6533F255-217D-4674-8CCA-AE4D0B05595D",
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000001, 0x000000010246ab64","rawCodes":[1,4333153124],"type":"EXC_BREAKPOINT","signal":"SIGTRAP"},
  "termination" : {"flags":0,"code":5,"namespace":"SIGNAL","indicator":"Trace\/BPT trap: 5","byProc":"exc handler","byPid":73005},
  "os_fault" : {"process":"Mochi Diffusion"},
  "ktriageinfo" : "VM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\nVM - pmap_enter retried due to resource shortage\n",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":49,"thread_set_state":214,"task_for_pid":57},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":2337997,"threadState":{"x":[{"value":8126051928,"symbolLocation":0,"symbol":"_swiftEmptyArrayStorage"},{"value":6823773912,"symbolLocation":0,"symbol":"_swift_release_"},{"value":0},{"value":4333854392},{"value":0},{"value":8085330408,"symbolLocation":0,"symbol":"flag for loading of canonical specialized generic type metadata for Optional"},{"value":1},{"value":8120644528,"symbolLocation":9816,"symbol":"InitialAllocationPool"},{"value":0},{"value":8589934595},{"value":18446744065119617024},{"value":8589934595},{"value":3},{"value":2045},{"value":4115124237},{"value":4113025025},{"value":6824051972,"symbolLocation":0,"symbol":"swift_bridgeObjectRelease"},{"value":1100285690095837488},{"value":0},{"value":6133883152},{"value":4333854280},{"value":6133883136},{"value":0},{"value":6133882992},{"value":105553183176512},{"value":105553154859648},{"value":6852993736,"symbolLocation":0,"symbol":"static Published.subscript.modify"},{"value":8126051928,"symbolLocation":0,"symbol":"_swiftEmptyArrayStorage"},{"value":105553158389856}],"flavor":"ARM_THREAD_STATE64","lr":{"value":4333153108},"cpsr":{"value":1610616832},"fp":{"value":6133883296},"sp":{"value":6133882992},"esr":{"value":4060086273,"description":"(Breakpoint) brk 1"},"pc":{"value":4333153124,"matchesCrashFrame":1},"far":{"value":14976974848}},"queue":"com.apple.main-thread","frames":[{"imageOffset":158564,"imageIndex":0},{"imageOffset":158548,"imageIndex":0},{"imageOffset":148244,"imageIndex":0},{"imageOffset":10716,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":1},{"imageOffset":17668,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":1},{"imageOffset":77084,"symbol":"_dispatch_main_queue_drain","symbolLocation":928,"imageIndex":1},{"imageOffset":76140,"symbol":"_dispatch_main_queue_callback_4CF","symbolLocation":44,"imageIndex":1},{"imageOffset":798016,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":16,"imageIndex":2},{"imageOffset":526272,"symbol":"__CFRunLoopRun","symbolLocation":2036,"imageIndex":2},{"imageOffset":522360,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":2},{"imageOffset":204704,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":3},{"imageOffset":204260,"symbol":"ReceiveNextEventCommon","symbolLocation":672,"imageIndex":3},{"imageOffset":203564,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":72,"imageIndex":3},{"imageOffset":235576,"symbol":"_DPSNextEvent","symbolLocation":632,"imageIndex":4},{"imageOffset":231880,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":728,"imageIndex":4},{"imageOffset":183800,"symbol":"-[NSApplication run]","symbolLocation":464,"imageIndex":4},{"imageOffset":16956,"symbol":"NSApplicationMain","symbolLocation":880,"imageIndex":4},{"imageOffset":705564,"imageIndex":5},{"imageOffset":19275596,"imageIndex":5},{"imageOffset":11033248,"imageIndex":5},{"imageOffset":12296,"imageIndex":0},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":6}]},{"id":2338011,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2338049,"name":"com.apple.NSEventThread","frames":[{"imageOffset":4176,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":8},{"imageOffset":78108,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":8},{"imageOffset":39972,"symbol":"mach_msg_overwrite","symbolLocation":452,"imageIndex":8},{"imageOffset":5068,"symbol":"mach_msg","symbolLocation":24,"imageIndex":8},{"imageOffset":531376,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":2},{"imageOffset":525468,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":2},{"imageOffset":522360,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":2},{"imageOffset":1458568,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":4},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":7},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":2338593,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2338979,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2338980,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2339166,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2339242,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2339243,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2339244,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":2339245,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4332994560,
    "CFBundleShortVersionString" : "2.1.5",
    "CFBundleIdentifier" : "com.joshua-park.Mochi-Diffusion",
    "size" : 802816,
    "uuid" : "e47d093d-e1c8-3067-9832-5ff82a99f019",
    "path" : "\/Applications\/Mochi Diffusion.app\/Contents\/MacOS\/Mochi Diffusion",
    "name" : "Mochi Diffusion",
    "CFBundleVersion" : "2.1.5"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6585802752,
    "size" : 294912,
    "uuid" : "4d52c3a5-32e6-37a2-9d6c-23c612038354",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6587809792,
    "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" : 6746333184,
    "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" : 6641074176,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15777792,
    "uuid" : "7758f868-3402-3892-8b75-66ab0b883af6",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.40.116"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7238086656,
    "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" : 6584082432,
    "size" : 568228,
    "uuid" : "fe8a9d9e-f65d-34ca-942c-175b99c0601b",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6587396096,
    "size" : 53244,
    "uuid" : "9f3b729a-ed04-3e65-adac-d75ad06ebbdc",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 6587158528,
    "size" : 237548,
    "uuid" : "6b682e21-fd96-3a5a-8260-fce367258252",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  }
],
  "sharedCache" : {
  "base" : 6583435264,
  "size" : 3447406592,
  "uuid" : "3366b98c-6b8a-3546-8233-dc167320439f"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.3G resident=0K(0%) swapped_out_or_unallocated=1.3G(100%)\nWritable regions: Total=2.7G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=2.7G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework              5632K        6 \nActivity Tracing                   256K        1 \nCG backing stores                 2176K        4 \nCG image                           768K       21 \nColorSync                          592K       29 \nCoreAnimation                     5216K       65 \nCoreGraphics                        32K        2 \nCoreImage                         24.0M        1 \nCoreUI image data                 4384K       34 \nFoundation                          48K        2 \nKernel Alloc Once                   32K        1 \nMALLOC                             1.8G      206 \nMALLOC guard page                  192K       10 \nMALLOC_MEDIUM (reserved)         504.0M        5         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.2M       11 \nStack                             13.3M       11 \nVM_ALLOCATE                       3280K       14 \n__AUTH                            2087K      355 \n__AUTH_CONST                      25.2M      577 \n__CTF                               756        1 \n__DATA                            13.1M      565 \n__DATA_CONST                      27.8M      582 \n__DATA_DIRTY                      2017K      218 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       768.2M        4 \n__OBJC_CONST                      4522K      314 \n__OBJC_RO                         65.5M        1 \n__OBJC_RW                         1988K        1 \n__TEXT                           600.3M      603 \ndyld private memory                256K        1 \nmapped file                        2.2G       62 \nshared memory                     2960K       19 \n===========                     =======  ======= \nTOTAL                              6.4G     3728 \nTOTAL, minus reserved VM space     5.6G     3728 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.main-thread"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "62cdf63ddb3b7109d6d765cc",
      "factorPackIds" : {
        "SIRI_UNDERSTANDING_TMDC" : "62cdf6dddb3b7109d6d765cd"
      },
      "deploymentId" : 240000007
    },
    {
      "rolloutId" : "61675b89201f677a9a4cbd65",
      "factorPackIds" : {
        "HEALTH_FEATURE_AVAILABILITY" : "638e768d75b0720ff1f8c4f3"
      },
      "deploymentId" : 240000051
    }
  ],
  "experiments" : [

  ]
}
}

[Bug]:

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

Found a little bug.
When I make a few pictures with one prompt, then a few others with another prompt, the gallery is full of all results.

When I "save all", all filenames are made with the LAST prompt only, for all pics.

Crash Log

No response

Focus locked to prompt boxes

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

Focus remains on prompt boxes, even after clicking in the image gallery area. Arrow keys do not move between images. Cannot press spacebar to quickview, either.

Crash Log

No response

🗺️ Roadmap

These are features that are planned but haven't been worked on yet.
If you feel like you have a good implementation please feel free to open a Pull Request.
Or if you are able to donate a little, please use the Sponsor button.

  • Improved Search capabilities
    • Search more categories
    • Filter

Regression in "Convert ckpt → diffusers" instruction

Running Latest Version

  • I am running the latest version

Processor

M1 Max (or later)

Intel processor

No response

Memory

64GB (or higher)

What happened?

I noticed that conversion instruction step where you have to download from the huggingface/diffusers Github repo and run the convert_original_stable_diffusion_to_diffusers.py script no longer works (the old version of this script does work). Attempt to run latest version results in this error:

% python convert_original_stable_diffusion_to_diffusers.py                                                   
Traceback (most recent call last):
  File "convert_original_stable_diffusion_to_diffusers.py", line 19, in <module>
    from diffusers.pipelines.stable_diffusion.convert_from_ckpt import load_pipeline_from_original_stable_diffusion_ckpt
ModuleNotFoundError: No module named 'diffusers.pipelines.stable_diffusion.convert_from_ckpt'

Please advise.

Crash Log

No response

[Regression] Removing image causes selection to change

Running Latest Version

  • I am running the latest version

Processor

M1 Pro (or later)

Intel processor

No response

Memory

32GB

What happened?

  1. Remove an image that isn’t selected.
  2. Current selection changes to the previous image of the deleted image.

Crash Log

No response

[Feat]: Please add an option to use the safety checker.

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

As the title, an option to use the safety checker would be useful. Maybe even offer an alternate download that has it permanently-enabled, so that it's not easy for users to turn it off.

Why do you think this should be added?

My primary use case is to allow kids to play with image generation, while making it as unlikely as possible that they'll get nsfw results. Of course, another use case would be workplaces, where you literally need to keep it safe-for-work.

Hard crash "BUG IN CLIENT OF LIBDISPATCH: Unbalanced call to dispatch_group_leave()"

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

8GB

What happened?

Got a crash in my first test. I downloaded the model "stable-diffusion-v2.1-base_original_compiled" and moved it to the documents folder. Then I restarted Mochi and entered a prompt. After a couple of minutes I noticed that the app had crashed.

I can't find anything related to "Problem Details and System Configuration" in the app.
Mochi Diffusion-2023-02-02-150931.ips.zip

Crash Log

No response

"Compute Unit" label in the info panel

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Add a Compute Unit label in the info panel

Why do you think this should be added?

It would help to remember what option was used to make the image. Sometimes I do a bunch of tests for a prompt, switching between NE and GPU, then I forget what I had used.

Wiki help: converting safetensor/ckpt to coreML; conda activate st_gui

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

when running command
conda activate st_gui
it results in
EnvironmentNameNotFound: Could not find conda environment: st_gui

New to this so would love some guidance

Why do you think this should be added?

how do I add the st_gui env? new to python. thanks!!

Feature Request: More Samplers

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Please add support for additional samplers, such as "euler a" etc.

Why do you think this should be added?

Different samplers work better for different types of prompts and expected outputs.

Blurred image generated using converted safetensor models

Running Latest Version

  • I am running the latest version

Processor

M1 Pro (or later)

Intel processor

Computer:

image

Memory

16GB

What happened?

I converted the civitai model to coreml by downloading safetensor file from https://civitai.com/models/4201/realistic-vision-v13 according to guide: https://github.com/godly-devotion/MochiDiffusion/wiki/How-to-convert-ckpt-or-safetensors-files-to-Core-ML

Problem:

image

log of conversion

(coreml_stable_diffusion) ➜  ml-stable-diffusion git:(main) ✗ python -m python_coreml_stable_diffusion.torch2coreml --convert-unet --convert-text-encoder --convert-vae-decoder --convert-vae-encoder --model-version "./diffusers_model" --bundle-resources-for-swift-cli --attention-implementation SPLIT_EINSUM -o "./real_split-einsum_compiled"
INFO:__main__:Initializing StableDiffusionPipeline with ./diffusers_model..
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/transformers/models/clip/feature_extraction_clip.py:28: FutureWarning: The class CLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please use CLIPImageProcessor instead.
  warnings.warn(
INFO:__main__:Done.
INFO:__main__:Converting vae_decoder
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/diffusers/models/resnet.py:109: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  assert hidden_states.shape[1] == self.channels
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/diffusers/models/resnet.py:122: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  if hidden_states.shape[0] >= 64:
INFO:__main__:Converting vae_decoder to CoreML..
Converting PyTorch Frontend ==> MIL Ops:   0%|        | 0/426 [00:00<?, ? ops/s]WARNING:__main__:Casted the `beta`(value=0.0) argument of `baddbmm` op from int32 to float32 dtype for conversion!
Converting PyTorch Frontend ==> MIL Ops: 100%|▉| 425/426 [00:00<00:00, 2822.27 o
Running MIL Common passes: 100%|███████████| 40/40 [00:00<00:00, 79.11 passes/s]
Running MIL FP16ComputePrecision pass: 100%|█| 1/1 [00:00<00:00,  1.67 passes/s]
Running MIL Clean up passes: 100%|█████████| 11/11 [00:02<00:00,  4.47 passes/s]
INFO:__main__:Saved vae_decoder model to ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_decoder.mlpackage
INFO:__main__:Saved vae_decoder into ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_decoder.mlpackage
INFO:__main__:Converted vae_decoder
INFO:__main__:Converting vae_encoder
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/diffusers/models/resnet.py:182: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  assert hidden_states.shape[1] == self.channels
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/diffusers/models/resnet.py:187: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  assert hidden_states.shape[1] == self.channels
INFO:__main__:Converting vae_encoder to CoreML..
Converting PyTorch Frontend ==> MIL Ops:   0%|        | 0/370 [00:00<?, ? ops/s]WARNING:__main__:Casted the `beta`(value=0.0) argument of `baddbmm` op from int32 to float32 dtype for conversion!
Converting PyTorch Frontend ==> MIL Ops: 100%|▉| 369/370 [00:00<00:00, 3335.20 o
Running MIL Common passes: 100%|██████████| 40/40 [00:00<00:00, 109.98 passes/s]
Running MIL FP16ComputePrecision pass: 100%|█| 1/1 [00:00<00:00,  2.47 passes/s]
Running MIL Clean up passes: 100%|█████████| 11/11 [00:01<00:00,  7.38 passes/s]
INFO:__main__:Saved vae_encoder model to ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_encoder.mlpackage
INFO:__main__:Saved vae_encoder into ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_encoder.mlpackage
INFO:__main__:Converted vae_encoder
INFO:__main__:Converting unet
INFO:__main__:Attention implementation in effect: AttentionImplementations.SPLIT_EINSUM
INFO:__main__:Sample inputs spec: {'sample': (torch.Size([2, 4, 64, 64]), torch.float32), 'timestep': (torch.Size([2]), torch.float32), 'encoder_hidden_states': (torch.Size([2, 768, 1, 77]), torch.float32)}
INFO:__main__:JIT tracing..
/Users/jo32/Projects/xcode/ml-stable-diffusion/python_coreml_stable_diffusion/layer_norm.py:61: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  assert inputs.size(1) == self.num_channels
INFO:__main__:Done.
INFO:__main__:Converting unet to CoreML..
WARNING:coremltools:Tuple detected at graph output. This will be flattened in the converted model.
Converting PyTorch Frontend ==> MIL Ops:   0%|       | 0/7876 [00:00<?, ? ops/s]WARNING:coremltools:Saving value type of int64 into a builtin type of int32, might lose precision!
Converting PyTorch Frontend ==> MIL Ops: 100%|▉| 7874/7876 [00:01<00:00, 5011.63
Running MIL Common passes: 100%|███████████| 40/40 [00:08<00:00,  4.47 passes/s]
Running MIL FP16ComputePrecision pass: 100%|█| 1/1 [00:23<00:00, 23.51s/ passes]
Running MIL Clean up passes: 100%|█████████| 11/11 [02:57<00:00, 16.10s/ passes]
INFO:__main__:Saved unet model to ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_unet.mlpackage
INFO:__main__:Saved unet into ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_unet.mlpackage
INFO:__main__:Converted unet
INFO:__main__:Converting text_encoder
INFO:__main__:Sample inputs spec: {'input_ids': (torch.Size([1, 77]), torch.float32)}
INFO:__main__:JIT tracing text_encoder..
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py:284: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  if attn_weights.size() != (bsz * self.num_heads, tgt_len, src_len):
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py:292: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  if causal_attention_mask.size() != (bsz, 1, tgt_len, src_len):
/Users/jo32/miniforge3/envs/coreml_stable_diffusion/lib/python3.8/site-packages/transformers/models/clip/modeling_clip.py:324: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can't record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs!
  if attn_output.size() != (bsz * self.num_heads, tgt_len, self.head_dim):
INFO:__main__:Done.
INFO:__main__:Converting text_encoder to CoreML..
WARNING:coremltools:Tuple detected at graph output. This will be flattened in the converted model.
Converting PyTorch Frontend ==> MIL Ops:  44%|▍| 361/814 [00:00<00:00, 3608.45 oWARNING:coremltools:Saving value type of int64 into a builtin type of int32, might lose precision!
Converting PyTorch Frontend ==> MIL Ops: 100%|▉| 812/814 [00:00<00:00, 4170.30 o
Running MIL Common passes: 100%|███████████| 40/40 [00:00<00:00, 87.37 passes/s]
Running MIL FP16ComputePrecision pass: 100%|█| 1/1 [00:00<00:00,  1.09 passes/s]
Running MIL Clean up passes: 100%|█████████| 11/11 [00:02<00:00,  4.33 passes/s]
INFO:__main__:Saved text_encoder model to ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_text_encoder.mlpackage
INFO:__main__:Saved text_encoder into ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_text_encoder.mlpackage
INFO:__main__:Converted text_encoder
INFO:__main__:Bundling resources for the Swift CLI
INFO:__main__:Created ./real_split-einsum_compiled/Resources for Swift CLI assets
INFO:__main__:Compiling ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_text_encoder.mlpackage
/Users/jo32/Projects/xcode/ml-stable-diffusion/real_split-einsum_compiled/Resources/Stable_Diffusion_version_._diffusers_model_text_encoder.mlmodelc/coremldata.bin
INFO:__main__:Compiled ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_text_encoder.mlpackage to ./real_split-einsum_compiled/Resources/TextEncoder.mlmodelc
INFO:__main__:Compiling ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_decoder.mlpackage
/Users/jo32/Projects/xcode/ml-stable-diffusion/real_split-einsum_compiled/Resources/Stable_Diffusion_version_._diffusers_model_vae_decoder.mlmodelc/coremldata.bin
INFO:__main__:Compiled ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_decoder.mlpackage to ./real_split-einsum_compiled/Resources/VAEDecoder.mlmodelc
INFO:__main__:Compiling ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_encoder.mlpackage
/Users/jo32/Projects/xcode/ml-stable-diffusion/real_split-einsum_compiled/Resources/Stable_Diffusion_version_._diffusers_model_vae_encoder.mlmodelc/coremldata.bin
INFO:__main__:Compiled ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_vae_encoder.mlpackage to ./real_split-einsum_compiled/Resources/VAEEncoder.mlmodelc
INFO:__main__:Compiling ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_unet.mlpackage
/Users/jo32/Projects/xcode/ml-stable-diffusion/real_split-einsum_compiled/Resources/Stable_Diffusion_version_._diffusers_model_unet.mlmodelc/coremldata.bin
INFO:__main__:Compiled ./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_unet.mlpackage to ./real_split-einsum_compiled/Resources/Unet.mlmodelc
WARNING:__main__:./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_unet_chunk1.mlpackage not found, skipping compilation to UnetChunk1.mlmodelc
WARNING:__main__:./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_unet_chunk2.mlpackage not found, skipping compilation to UnetChunk2.mlmodelc
WARNING:__main__:./real_split-einsum_compiled/Stable_Diffusion_version_._diffusers_model_safety_checker.mlpackage not found, skipping compilation to SafetyChecker.mlmodelc
INFO:__main__:Downloading and saving tokenizer vocab.json
INFO:__main__:Done
INFO:__main__:Downloading and saving tokenizer merges.txt
INFO:__main__:Done
INFO:__main__:Bundled resources for the Swift CLI

Crash Log

No response

Prompt are not limited to 75 characters

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Prompt are not limited to 75 characters

Why do you think this should be added?

we need more

Button nonfunctional: "Stop Generation"

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

The "Stop Generation" button does not appear to do anything.

Crash Log

No response

Crash when running any model (iMac M1)

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

Install a fresh Mochi Diffusion (2.1.3), run with Stable Diffusion 1.5 or Stable Diffusion 2.1 Basic model.

Always results in a crash about halfway or just before outputting an image.

Crash Log

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

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

Date/Time:             2023-01-23 13:16:55.4978 +0100
OS Version:            macOS 13.1 (22C65)
Report Version:        12
Anonymous UUID:        D677F2DF-D399-2319-6357-6C887C1C1AFF


Time Awake Since Boot: 2200 seconds

System Integrity Protection: enabled

Crashed Thread:        1  Dispatch queue: com.apple.root.default-qos

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
abort() called


Application Specific Backtrace 0:
0   CoreFoundation                      0x00000001b13033f8 __exceptionPreprocess + 176
1   libobjc.A.dylib                     0x00000001b0e4eea8 objc_exception_throw + 60
2   CoreFoundation                      0x00000001b13a5c1c -[NSObject(NSObject) __retain_OA] + 0
3   CoreFoundation                      0x00000001b1269670 ___forwarding___ + 1600
4   CoreFoundation                      0x00000001b1268f70 _CF_forwarding_prep_0 + 96
5   Mochi Diffusion                     0x0000000102ea86f4 Mochi Diffusion + 329460
6   Mochi Diffusion                     0x0000000102ea75e0 Mochi Diffusion + 325088
7   Mochi Diffusion                     0x0000000102eb6884 Mochi Diffusion + 387204
8   Mochi Diffusion                     0x0000000102eb636c Mochi Diffusion + 385900
9   Mochi Diffusion                     0x0000000102e8c4f0 Mochi Diffusion + 214256
10  Mochi Diffusion                     0x0000000102e7cd0c Mochi Diffusion + 150796
11  Mochi Diffusion                     0x0000000102e7c468 Mochi Diffusion + 148584
12  libdispatch.dylib                   0x00000001b10209dc _dispatch_call_block_and_release + 32
13  libdispatch.dylib                   0x00000001b1022504 _dispatch_client_callout + 20
14  libdispatch.dylib                   0x00000001b10255f0 _dispatch_queue_override_invoke + 788
15  libdispatch.dylib                   0x00000001b1033f94 _dispatch_root_queue_drain + 396
16  libdispatch.dylib                   0x00000001b10347c0 _dispatch_worker_thread2 + 164
17  libsystem_pthread.dylib             0x00000001b11a50c4 _pthread_wqthread + 228
18  libsystem_pthread.dylib             0x00000001b11a3e20 start_wqthread + 8


Thread 0::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1b1169d70 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b117b8a4 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1b11725c4 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b116a0ec mach_msg + 24
4   CoreFoundation                	       0x1b1288bc0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1b12874ac __CFRunLoopRun + 1232
6   CoreFoundation                	       0x1b1286888 CFRunLoopRunSpecific + 612
7   HIToolbox                     	       0x1ba95bfa0 RunCurrentEventLoopInMode + 292
8   HIToolbox                     	       0x1ba95bde4 ReceiveNextEventCommon + 672
9   HIToolbox                     	       0x1ba95bb2c _BlockUntilNextEventMatchingListInModeWithFilter + 72
10  AppKit                        	       0x1b4508424 _DPSNextEvent + 632
11  AppKit                        	       0x1b45075b4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
12  AppKit                        	       0x1b44fb9e4 -[NSApplication run] + 464
13  AppKit                        	       0x1b44d2e28 NSApplicationMain + 880
14  SwiftUI                       	       0x1d7e188a8 0x1d7d6b000 + 710824
15  SwiftUI                       	       0x1d8fcd7c0 0x1d7d6b000 + 19277760
16  SwiftUI                       	       0x1d87f183c 0x1d7d6b000 + 11036732
17  Mochi Diffusion               	       0x102e5b5c4 0x102e58000 + 13764
18  dyld                          	       0x1b0e7fe50 start + 2544

Thread 1 Crashed::  Dispatch queue: com.apple.root.default-qos
0   libsystem_kernel.dylib        	       0x1b11721b0 __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1b11a8cec pthread_kill + 288
2   libsystem_c.dylib             	       0x1b10e22c8 abort + 180
3   libc++abi.dylib               	       0x1b1162b18 abort_message + 132
4   libc++abi.dylib               	       0x1b1152a0c demangling_terminate_handler() + 336
5   libobjc.A.dylib               	       0x1b0e57764 _objc_terminate() + 144
6   libc++abi.dylib               	       0x1b1161eb4 std::__terminate(void (*)()) + 20
7   libc++abi.dylib               	       0x1b1161e50 std::terminate() + 56
8   libdispatch.dylib             	       0x1b1022518 _dispatch_client_callout + 40
9   libdispatch.dylib             	       0x1b10255f0 _dispatch_queue_override_invoke + 788
10  libdispatch.dylib             	       0x1b1033f94 _dispatch_root_queue_drain + 396
11  libdispatch.dylib             	       0x1b10347c0 _dispatch_worker_thread2 + 164
12  libsystem_pthread.dylib       	       0x1b11a50c4 _pthread_wqthread + 228
13  libsystem_pthread.dylib       	       0x1b11a3e20 start_wqthread + 8

Thread 2:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	       0x1b1169d70 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b117b8a4 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1b11725c4 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b116a0ec mach_msg + 24
4   CoreFoundation                	       0x1b1288bc0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1b12874ac __CFRunLoopRun + 1232
6   CoreFoundation                	       0x1b1286888 CFRunLoopRunSpecific + 612
7   AppKit                        	       0x1b4632410 _NSEventThread + 172
8   libsystem_pthread.dylib       	       0x1b11a906c _pthread_start + 148
9   libsystem_pthread.dylib       	       0x1b11a3e2c thread_start + 8

Thread 3:: H11ANEServicesThread
0   libsystem_kernel.dylib        	       0x1b1169d70 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b117b8a4 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1b11725c4 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b116a0ec mach_msg + 24
4   CoreFoundation                	       0x1b1288bc0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1b12874ac __CFRunLoopRun + 1232
6   CoreFoundation                	       0x1b1286888 CFRunLoopRunSpecific + 612
7   CoreFoundation                	       0x1b130d7f8 CFRunLoopRun + 64
8   ANEServices                   	       0x1c7588e74 H11ANE::H11ANEServicesThreadStart(H11ANE::H11ANEServicesThreadParams*) + 132
9   libsystem_pthread.dylib       	       0x1b11a906c _pthread_start + 148
10  libsystem_pthread.dylib       	       0x1b11a3e2c thread_start + 8

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

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

Thread 6:: H11ANEServicesThread
0   libsystem_kernel.dylib        	       0x1b1169d70 mach_msg2_trap + 8
1   libsystem_kernel.dylib        	       0x1b117b8a4 mach_msg2_internal + 80
2   libsystem_kernel.dylib        	       0x1b11725c4 mach_msg_overwrite + 540
3   libsystem_kernel.dylib        	       0x1b116a0ec mach_msg + 24
4   CoreFoundation                	       0x1b1288bc0 __CFRunLoopServiceMachPort + 160
5   CoreFoundation                	       0x1b12874ac __CFRunLoopRun + 1232
6   CoreFoundation                	       0x1b1286888 CFRunLoopRunSpecific + 612
7   CoreFoundation                	       0x1b130d7f8 CFRunLoopRun + 64
8   ANEServices                   	       0x1c7588e74 H11ANE::H11ANEServicesThreadStart(H11ANE::H11ANEServicesThreadParams*) + 132
9   libsystem_pthread.dylib       	       0x1b11a906c _pthread_start + 148
10  libsystem_pthread.dylib       	       0x1b11a3e2c thread_start + 8


Thread 1 crashed with ARM Thread State (64-bit):
    x0: 0x0000000000000000   x1: 0x0000000000000000   x2: 0x0000000000000000   x3: 0x0000000000000000
    x4: 0x00000001b11660f5   x5: 0x000000016d1d29c0   x6: 0x000000000000006e   x7: 0x0000000000000001
    x8: 0x917a04a2048cf052   x9: 0x917a04a36991c052  x10: 0x0000000000000200  x11: 0x000000000000000b
   x12: 0x000000000000000b  x13: 0x00000000001ff800  x14: 0x00000000000007fb  x15: 0x00000000c143381d
   x16: 0x0000000000000148  x17: 0x00000002113507f0  x18: 0x0000000000000000  x19: 0x0000000000000006
   x20: 0x000000016d1d3000  x21: 0x0000000000007703  x22: 0x000000016d1d30e0  x23: 0x0000000000000000
   x24: 0x000000016d1d30e0  x25: 0x000000020c513c00  x26: 0x00000000000005ff  x27: 0x000000020ca24104
   x28: 0x0000000000000000   fp: 0x000000016d1d2930   lr: 0x00000001b11a8cec
    sp: 0x000000016d1d2910   pc: 0x00000001b11721b0 cpsr: 0x40001000
   far: 0x0000000209ff07f0  esr: 0x56000080  Address size fault

Binary Images:
       0x1b1169000 -        0x1b11a1ff3 libsystem_kernel.dylib (*) <aebf397e-e2ef-3a49-be58-23d4558511f6> /usr/lib/system/libsystem_kernel.dylib
       0x1b1207000 -        0x1b16defff com.apple.CoreFoundation (6.9) <fd16d6d9-10c0-323b-b43b-9781c4a4d268> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
       0x1ba92a000 -        0x1bac5dfff com.apple.HIToolbox (2.1.1) <f1e0f4f6-dd7b-3d16-a622-5ee94a20fcaa> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
       0x1b44cf000 -        0x1b53d9fff com.apple.AppKit (6.9) <dbbd4dea-6c68-3200-a81b-79b6a62f4669> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
       0x1d7d6b000 -        0x1d95eefff com.apple.SwiftUI (4.2.11.400) <ec516c7c-a622-3030-abe2-72e824c47bd0> /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUI
       0x102e58000 -        0x102f1bfff com.joshua-park.Mochi-Diffusion (2.1.3) <93b1d17c-c5c1-3194-8989-0fdc728b2f13> /Applications/Mochi Diffusion.app/Contents/MacOS/Mochi Diffusion
       0x1b0e7a000 -        0x1b0f04b63 dyld (*) <487cfdeb-9b07-39bf-bfb9-970b61aea2d1> /usr/lib/dyld
       0x1b11a2000 -        0x1b11aeffb libsystem_pthread.dylib (*) <132084c6-c347-3489-9ac2-fcaad21cdb73> /usr/lib/system/libsystem_pthread.dylib
       0x1b1069000 -        0x1b10e9ff3 libsystem_c.dylib (*) <756cd0d2-3241-3a74-8c59-02632dcee221> /usr/lib/system/libsystem_c.dylib
       0x1b1151000 -        0x1b1168ffb libc++abi.dylib (*) <20a1d2a7-4c7c-36d4-ade6-c65d68317bca> /usr/lib/libc++abi.dylib
       0x1b0e34000 -        0x1b0e79d9f libobjc.A.dylib (*) <fc6d1c4f-2e83-37cc-b972-c5529f1c0e40> /usr/lib/libobjc.A.dylib
       0x1b101e000 -        0x1b1065fff libdispatch.dylib (*) <191028d2-0477-3ebc-9eef-a85acafc7193> /usr/lib/system/libdispatch.dylib
       0x1c7578000 -        0x1c7597fff com.apple.ANEServices (6.201) <1e4b2cc3-3380-3b09-8827-76f33595ec3d> /System/Library/PrivateFrameworks/ANEServices.framework/Versions/A/ANEServices

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.4G resident=0K(0%) swapped_out_or_unallocated=1.4G(100%)
Writable regions: Total=21.8G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=21.8G(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Accelerate framework               128K        1 
Activity Tracing                   256K        1 
CG backing stores                 3392K        4 
CG image                           304K       15 
ColorSync                          560K       28 
CoreAnimation                     3616K       63 
CoreGraphics                        32K        2 
CoreUI image data                 3632K       29 
Foundation                          48K        2 
Kernel Alloc Once                   32K        1 
MALLOC                            20.9G      301 
MALLOC guard page                  192K       10 
MALLOC_MEDIUM (reserved)         568.0M        8         reserved VM address space (unallocated)
MALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)
STACK GUARD                       56.1M        7 
Stack                             11.2M        7 
VM_ALLOCATE                       3216K       10 
__AUTH                            2234K      385 
__AUTH_CONST                      25.9M      617 
__CTF                               756        1 
__DATA                            13.4M      605 
__DATA_CONST                      28.5M      622 
__DATA_DIRTY                      2035K      234 
__FONT_DATA                        2352        1 
__LINKEDIT                       767.3M        4 
__OBJC_CONST                      4685K      343 
__OBJC_RO                         65.4M        1 
__OBJC_RW                         1986K        1 
__TEXT                           620.0M      644 
dyld private memory                256K        1 
mapped file                        2.1G       47 
shared memory                     2944K       17 
===========                     =======  ======= 
TOTAL                             25.5G     4013 
TOTAL, minus reserved VM space    24.6G     4013 



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

{"app_name":"Mochi Diffusion","timestamp":"2023-01-23 13:16:57.00 +0100","app_version":"2.1.3","slice_uuid":"93b1d17c-c5c1-3194-8989-0fdc728b2f13","build_version":"2.1.3","platform":1,"bundleID":"com.joshua-park.Mochi-Diffusion","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"macOS 13.1 (22C65)","roots_installed":0,"name":"Mochi Diffusion","incident_id":"8FB75CCE-825D-4C23-81CB-E6A8808C29BC"}
{
  "uptime" : 2200,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "iMac21,1",
  "coalitionID" : 1097,
  "osVersion" : {
    "train" : "macOS 13.1",
    "build" : "22C65",
    "releaseType" : "User"
  },
  "captureTime" : "2023-01-23 13:16:55.4978 +0100",
  "incident" : "8FB75CCE-825D-4C23-81CB-E6A8808C29BC",
  "pid" : 2591,
  "translated" : false,
  "cpuType" : "ARM-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2023-01-23 12:51:19.2625 +0100",
  "procStartAbsTime" : 17521886588,
  "procExitAbsTime" : 54388946269,
  "procName" : "Mochi Diffusion",
  "procPath" : "\/Applications\/Mochi Diffusion.app\/Contents\/MacOS\/Mochi Diffusion",
  "bundleInfo" : {"CFBundleShortVersionString":"2.1.3","CFBundleVersion":"2.1.3","CFBundleIdentifier":"com.joshua-park.Mochi-Diffusion"},
  "storeInfo" : {"deviceIdentifierForVendor":"84D45134-A615-5B54-B72C-5257C2E55897","thirdParty":true},
  "parentProc" : "launchd",
  "parentPid" : 1,
  "coalitionName" : "com.joshua-park.Mochi-Diffusion",
  "crashReporterKey" : "D677F2DF-D399-2319-6357-6C887C1C1AFF",
  "throttleTimeout" : 2147483647,
  "sip" : "enabled",
  "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"},
  "asi" : {"libsystem_c.dylib":["abort() called"]},
  "asiBacktraces" : ["0   CoreFoundation                      0x00000001b13033f8 __exceptionPreprocess + 176\n1   libobjc.A.dylib                     0x00000001b0e4eea8 objc_exception_throw + 60\n2   CoreFoundation                      0x00000001b13a5c1c -[NSObject(NSObject) __retain_OA] + 0\n3   CoreFoundation                      0x00000001b1269670 ___forwarding___ + 1600\n4   CoreFoundation                      0x00000001b1268f70 _CF_forwarding_prep_0 + 96\n5   Mochi Diffusion                     0x0000000102ea86f4 Mochi Diffusion + 329460\n6   Mochi Diffusion                     0x0000000102ea75e0 Mochi Diffusion + 325088\n7   Mochi Diffusion                     0x0000000102eb6884 Mochi Diffusion + 387204\n8   Mochi Diffusion                     0x0000000102eb636c Mochi Diffusion + 385900\n9   Mochi Diffusion                     0x0000000102e8c4f0 Mochi Diffusion + 214256\n10  Mochi Diffusion                     0x0000000102e7cd0c Mochi Diffusion + 150796\n11  Mochi Diffusion                     0x0000000102e7c468 Mochi Diffusion + 148584\n12  libdispatch.dylib                   0x00000001b10209dc _dispatch_call_block_and_release + 32\n13  libdispatch.dylib                   0x00000001b1022504 _dispatch_client_callout + 20\n14  libdispatch.dylib                   0x00000001b10255f0 _dispatch_queue_override_invoke + 788\n15  libdispatch.dylib                   0x00000001b1033f94 _dispatch_root_queue_drain + 396\n16  libdispatch.dylib                   0x00000001b10347c0 _dispatch_worker_thread2 + 164\n17  libsystem_pthread.dylib             0x00000001b11a50c4 _pthread_wqthread + 228\n18  libsystem_pthread.dylib             0x00000001b11a3e20 start_wqthread + 8"],
  "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},
  "lastExceptionBacktrace" : [{"imageOffset":1033196,"symbol":"__exceptionPreprocess","symbolLocation":164,"imageIndex":1},{"imageOffset":110248,"symbol":"objc_exception_throw","symbolLocation":60,"imageIndex":10},{"imageOffset":1698844,"symbol":"-[NSObject(NSObject) __retain_OA]","symbolLocation":0,"imageIndex":1},{"imageOffset":403056,"symbol":"___forwarding___","symbolLocation":1600,"imageIndex":1},{"imageOffset":401264,"symbol":"_CF_forwarding_prep_0","symbolLocation":96,"imageIndex":1},{"imageOffset":329460,"imageIndex":5},{"imageOffset":325088,"imageIndex":5},{"imageOffset":387204,"imageIndex":5},{"imageOffset":385900,"imageIndex":5},{"imageOffset":214256,"imageIndex":5},{"imageOffset":150796,"imageIndex":5},{"imageOffset":148584,"imageIndex":5},{"imageOffset":10716,"symbol":"_dispatch_call_block_and_release","symbolLocation":32,"imageIndex":11},{"imageOffset":17668,"symbol":"_dispatch_client_callout","symbolLocation":20,"imageIndex":11},{"imageOffset":30192,"symbol":"_dispatch_queue_override_invoke","symbolLocation":788,"imageIndex":11},{"imageOffset":90004,"symbol":"_dispatch_root_queue_drain","symbolLocation":396,"imageIndex":11},{"imageOffset":92096,"symbol":"_dispatch_worker_thread2","symbolLocation":164,"imageIndex":11},{"imageOffset":12484,"symbol":"_pthread_wqthread","symbolLocation":228,"imageIndex":7},{"imageOffset":7712,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":7}],
  "faultingThread" : 1,
  "threads" : [{"id":23001,"queue":"com.apple.main-thread","frames":[{"imageOffset":3440,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":75940,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":0},{"imageOffset":38340,"symbol":"mach_msg_overwrite","symbolLocation":540,"imageIndex":0},{"imageOffset":4332,"symbol":"mach_msg","symbolLocation":24,"imageIndex":0},{"imageOffset":531392,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":1},{"imageOffset":525484,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":1},{"imageOffset":522376,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":1},{"imageOffset":204704,"symbol":"RunCurrentEventLoopInMode","symbolLocation":292,"imageIndex":2},{"imageOffset":204260,"symbol":"ReceiveNextEventCommon","symbolLocation":672,"imageIndex":2},{"imageOffset":203564,"symbol":"_BlockUntilNextEventMatchingListInModeWithFilter","symbolLocation":72,"imageIndex":2},{"imageOffset":234532,"symbol":"_DPSNextEvent","symbolLocation":632,"imageIndex":3},{"imageOffset":230836,"symbol":"-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]","symbolLocation":728,"imageIndex":3},{"imageOffset":182756,"symbol":"-[NSApplication run]","symbolLocation":464,"imageIndex":3},{"imageOffset":15912,"symbol":"NSApplicationMain","symbolLocation":880,"imageIndex":3},{"imageOffset":710824,"imageIndex":4},{"imageOffset":19277760,"imageIndex":4},{"imageOffset":11036732,"imageIndex":4},{"imageOffset":13764,"imageIndex":5},{"imageOffset":24144,"symbol":"start","symbolLocation":2544,"imageIndex":6}]},{"triggered":true,"id":23023,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":7266001141},{"value":6125595072},{"value":110},{"value":1},{"value":10482696176565809234},{"value":10482696182555590738},{"value":512},{"value":11},{"value":11},{"value":2095104},{"value":2043},{"value":3242407965},{"value":328},{"value":8878622704},{"value":0},{"value":6},{"value":6125596672},{"value":30467},{"value":6125596896},{"value":0},{"value":6125596896},{"value":8796584960,"symbolLocation":1536,"symbol":"_dispatch_root_queues"},{"value":1535},{"value":8801894660,"symbolLocation":0,"symbol":"_dispatch_continuation_cache_limit"},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":7266274540},"cpsr":{"value":1073745920},"fp":{"value":6125594928},"sp":{"value":6125594896},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7266050480,"matchesCrashFrame":1},"far":{"value":8757643248}},"queue":"com.apple.root.default-qos","frames":[{"imageOffset":37296,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":27884,"symbol":"pthread_kill","symbolLocation":288,"imageIndex":7},{"imageOffset":496328,"symbol":"abort","symbolLocation":180,"imageIndex":8},{"imageOffset":72472,"symbol":"abort_message","symbolLocation":132,"imageIndex":9},{"imageOffset":6668,"symbol":"demangling_terminate_handler()","symbolLocation":336,"imageIndex":9},{"imageOffset":145252,"symbol":"_objc_terminate()","symbolLocation":144,"imageIndex":10},{"imageOffset":69300,"symbol":"std::__terminate(void (*)())","symbolLocation":20,"imageIndex":9},{"imageOffset":69200,"symbol":"std::terminate()","symbolLocation":56,"imageIndex":9},{"imageOffset":17688,"symbol":"_dispatch_client_callout","symbolLocation":40,"imageIndex":11},{"imageOffset":30192,"symbol":"_dispatch_queue_override_invoke","symbolLocation":788,"imageIndex":11},{"imageOffset":90004,"symbol":"_dispatch_root_queue_drain","symbolLocation":396,"imageIndex":11},{"imageOffset":92096,"symbol":"_dispatch_worker_thread2","symbolLocation":164,"imageIndex":11},{"imageOffset":12484,"symbol":"_pthread_wqthread","symbolLocation":228,"imageIndex":7},{"imageOffset":7712,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":7}]},{"id":23035,"name":"com.apple.NSEventThread","frames":[{"imageOffset":3440,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":75940,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":0},{"imageOffset":38340,"symbol":"mach_msg_overwrite","symbolLocation":540,"imageIndex":0},{"imageOffset":4332,"symbol":"mach_msg","symbolLocation":24,"imageIndex":0},{"imageOffset":531392,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":1},{"imageOffset":525484,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":1},{"imageOffset":522376,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":1},{"imageOffset":1455120,"symbol":"_NSEventThread","symbolLocation":172,"imageIndex":3},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":7},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":23241,"name":"H11ANEServicesThread","frames":[{"imageOffset":3440,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":75940,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":0},{"imageOffset":38340,"symbol":"mach_msg_overwrite","symbolLocation":540,"imageIndex":0},{"imageOffset":4332,"symbol":"mach_msg","symbolLocation":24,"imageIndex":0},{"imageOffset":531392,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":1},{"imageOffset":525484,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":1},{"imageOffset":522376,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":1},{"imageOffset":1075192,"symbol":"CFRunLoopRun","symbolLocation":64,"imageIndex":1},{"imageOffset":69236,"symbol":"H11ANE::H11ANEServicesThreadStart(H11ANE::H11ANEServicesThreadParams*)","symbolLocation":132,"imageIndex":12},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":7},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]},{"id":49840,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":53605,"frames":[{"imageOffset":7704,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":7}]},{"id":53608,"name":"H11ANEServicesThread","frames":[{"imageOffset":3440,"symbol":"mach_msg2_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":75940,"symbol":"mach_msg2_internal","symbolLocation":80,"imageIndex":0},{"imageOffset":38340,"symbol":"mach_msg_overwrite","symbolLocation":540,"imageIndex":0},{"imageOffset":4332,"symbol":"mach_msg","symbolLocation":24,"imageIndex":0},{"imageOffset":531392,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":160,"imageIndex":1},{"imageOffset":525484,"symbol":"__CFRunLoopRun","symbolLocation":1232,"imageIndex":1},{"imageOffset":522376,"symbol":"CFRunLoopRunSpecific","symbolLocation":612,"imageIndex":1},{"imageOffset":1075192,"symbol":"CFRunLoopRun","symbolLocation":64,"imageIndex":1},{"imageOffset":69236,"symbol":"H11ANE::H11ANEServicesThreadStart(H11ANE::H11ANEServicesThreadParams*)","symbolLocation":132,"imageIndex":12},{"imageOffset":28780,"symbol":"_pthread_start","symbolLocation":148,"imageIndex":7},{"imageOffset":7724,"symbol":"thread_start","symbolLocation":8,"imageIndex":7}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7266013184,
    "size" : 233460,
    "uuid" : "aebf397e-e2ef-3a49-be58-23d4558511f6",
    "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib",
    "name" : "libsystem_kernel.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7266660352,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.CoreFoundation",
    "size" : 5079040,
    "uuid" : "fd16d6d9-10c0-323b-b43b-9781c4a4d268",
    "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/Versions\/A\/CoreFoundation",
    "name" : "CoreFoundation",
    "CFBundleVersion" : "1953.300"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7425138688,
    "CFBundleShortVersionString" : "2.1.1",
    "CFBundleIdentifier" : "com.apple.HIToolbox",
    "size" : 3358720,
    "uuid" : "f1e0f4f6-dd7b-3d16-a622-5ee94a20fcaa",
    "path" : "\/System\/Library\/Frameworks\/Carbon.framework\/Versions\/A\/Frameworks\/HIToolbox.framework\/Versions\/A\/HIToolbox",
    "name" : "HIToolbox"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7319908352,
    "CFBundleShortVersionString" : "6.9",
    "CFBundleIdentifier" : "com.apple.AppKit",
    "size" : 15773696,
    "uuid" : "dbbd4dea-6c68-3200-a81b-79b6a62f4669",
    "path" : "\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit",
    "name" : "AppKit",
    "CFBundleVersion" : "2299.30.116"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7916138496,
    "CFBundleShortVersionString" : "4.2.11.400",
    "CFBundleIdentifier" : "com.apple.SwiftUI",
    "size" : 25706496,
    "uuid" : "ec516c7c-a622-3030-abe2-72e824c47bd0",
    "path" : "\/System\/Library\/Frameworks\/SwiftUI.framework\/Versions\/A\/SwiftUI",
    "name" : "SwiftUI",
    "CFBundleVersion" : "4.2.11.400"
  },
  {
    "source" : "P",
    "arch" : "arm64",
    "base" : 4343562240,
    "CFBundleShortVersionString" : "2.1.3",
    "CFBundleIdentifier" : "com.joshua-park.Mochi-Diffusion",
    "size" : 802816,
    "uuid" : "93b1d17c-c5c1-3194-8989-0fdc728b2f13",
    "path" : "\/Applications\/Mochi Diffusion.app\/Contents\/MacOS\/Mochi Diffusion",
    "name" : "Mochi Diffusion",
    "CFBundleVersion" : "2.1.3"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7262937088,
    "size" : 568164,
    "uuid" : "487cfdeb-9b07-39bf-bfb9-970b61aea2d1",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7266246656,
    "size" : 53244,
    "uuid" : "132084c6-c347-3489-9ac2-fcaad21cdb73",
    "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib",
    "name" : "libsystem_pthread.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7264964608,
    "size" : 528372,
    "uuid" : "756cd0d2-3241-3a74-8c59-02632dcee221",
    "path" : "\/usr\/lib\/system\/libsystem_c.dylib",
    "name" : "libsystem_c.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7265914880,
    "size" : 98300,
    "uuid" : "20a1d2a7-4c7c-36d4-ade6-c65d68317bca",
    "path" : "\/usr\/lib\/libc++abi.dylib",
    "name" : "libc++abi.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7262650368,
    "size" : 286112,
    "uuid" : "fc6d1c4f-2e83-37cc-b972-c5529f1c0e40",
    "path" : "\/usr\/lib\/libobjc.A.dylib",
    "name" : "libobjc.A.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7264657408,
    "size" : 294912,
    "uuid" : "191028d2-0477-3ebc-9eef-a85acafc7193",
    "path" : "\/usr\/lib\/system\/libdispatch.dylib",
    "name" : "libdispatch.dylib"
  },
  {
    "source" : "P",
    "arch" : "arm64e",
    "base" : 7639367680,
    "CFBundleShortVersionString" : "6.201",
    "CFBundleIdentifier" : "com.apple.ANEServices",
    "size" : 131072,
    "uuid" : "1e4b2cc3-3380-3b09-8827-76f33595ec3d",
    "path" : "\/System\/Library\/PrivateFrameworks\/ANEServices.framework\/Versions\/A\/ANEServices",
    "name" : "ANEServices",
    "CFBundleVersion" : "6.201"
  }
],
  "sharedCache" : {
  "base" : 7262289920,
  "size" : 3434283008,
  "uuid" : "00a1fbb6-43e1-3c11-8483-faf0db659249"
},
  "vmSummary" : "ReadOnly portion of Libraries: Total=1.4G resident=0K(0%) swapped_out_or_unallocated=1.4G(100%)\nWritable regions: Total=21.8G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=21.8G(100%)\n\n                                VIRTUAL   REGION \nREGION TYPE                        SIZE    COUNT (non-coalesced) \n===========                     =======  ======= \nAccelerate framework               128K        1 \nActivity Tracing                   256K        1 \nCG backing stores                 3392K        4 \nCG image                           304K       15 \nColorSync                          560K       28 \nCoreAnimation                     3616K       63 \nCoreGraphics                        32K        2 \nCoreUI image data                 3632K       29 \nFoundation                          48K        2 \nKernel Alloc Once                   32K        1 \nMALLOC                            20.9G      301 \nMALLOC guard page                  192K       10 \nMALLOC_MEDIUM (reserved)         568.0M        8         reserved VM address space (unallocated)\nMALLOC_NANO (reserved)           384.0M        1         reserved VM address space (unallocated)\nSTACK GUARD                       56.1M        7 \nStack                             11.2M        7 \nVM_ALLOCATE                       3216K       10 \n__AUTH                            2234K      385 \n__AUTH_CONST                      25.9M      617 \n__CTF                               756        1 \n__DATA                            13.4M      605 \n__DATA_CONST                      28.5M      622 \n__DATA_DIRTY                      2035K      234 \n__FONT_DATA                        2352        1 \n__LINKEDIT                       767.3M        4 \n__OBJC_CONST                      4685K      343 \n__OBJC_RO                         65.4M        1 \n__OBJC_RW                         1986K        1 \n__TEXT                           620.0M      644 \ndyld private memory                256K        1 \nmapped file                        2.1G       47 \nshared memory                     2944K       17 \n===========                     =======  ======= \nTOTAL                             25.5G     4013 \nTOTAL, minus reserved VM space    24.6G     4013 \n",
  "legacyInfo" : {
  "threadTriggered" : {
    "queue" : "com.apple.root.default-qos"
  }
},
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "6112d17137f5d11121dcd4e2",
      "factorPackIds" : {

      },
      "deploymentId" : 240000181
    },
    {
      "rolloutId" : "60da5e84ab0ca017dace9abf",
      "factorPackIds" : {

      },
      "deploymentId" : 240000008
    }
  ],
  "experiments" : [

  ]
}
}

Model: iMac21,1, BootROM 8419.60.44, proc 8:4:4 processors, 16 GB, SMC 
Graphics: Apple M1, Apple M1, Built-In
Display: iMac, Retina 4.5K (4480 x 2520), Main, MirrorOff, Online
Memory Module: LPDDR4, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4378), wl0: Sep  3 2022 02:57:22 version 18.20.379.4.7.8.143 FWID 01-30db25ae
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
Thunderbolt Bus: iMac, Apple Inc.
Thunderbolt Bus: iMac, Apple Inc.

How do I run it, please?

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

How do I run it, please? I'm sorry guys, I'm not particularly familiar with programming. I have downloaded the project, but I don't know how to run it.

Why do you think this should be added?

It would be great if you could add a sentence in the description file on how to run the application, especially for someone like me who doesn't know anything about programming. Thank you all very much.

[Bug]: No models found under model directory

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Memory

64GB (or higher)

What happened?

Can’t set the model directory

It keeps adding /MochiDiffusion/models to whichever folder I choose

Doesn’t work with symlinks or with actual files

Crash Log

No response

[Bug]: Duplicates list items for models on each refresh

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

V 2.1 (just updated)

Getting duplicate names on each refresh of models on UI, see the image below:

Might be important:
I set the new model folder and refreshed it, however, it also happens without changing the folder.

image

Crash Log

no crashes.

`Include in image` copies all the fields

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

8GB

What happened?

When Include in image on the right sidebar is pressed, it copies all the fields instead of copying just the selected field.

includebug.mov

Crash Log

No response

Token count

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

having a token count for prompts. either a counter, a hard limit in field or some color coding when over the limit

Why do you think this should be added?

Core ML model prompts are limited to 75 tokens.

Whether Lora can be used in this software

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Use lora to improve the quality of pictures

Why do you think this should be added?

Lora is necessary

Visual bug when selecting `Apply` from settings panel

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

8GB

What happened?

A visual bug happens when you click Apply from the settings panel (also with no changes made).
It doesn't happen when you deactivate one or more options in the General tab.

visual-bug.mov

Crash Log

No response

[Feat]: Add GFPGAN

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Like in many webUIs, I'd love to find a "GFP-GAN" Face restoration option (with a % of strength), with the possibility of keeping both pictures (before and after fix).

Why do you think this should be added?

Keep both because sometimes, the fix alters a "random good eyes" face.
00166-2019306198-face  portrait of jcon-subject, masterpiece, best quality, highly detailed, model shoot style, f1 8, RAW, canon press photograph
00165-2019306198-face  portrait of jcon-subject, masterpiece, best quality, highly detailed, model shoot style, f1 8, RAW, canon press photograph-before-face-restoration
00164-2019306198-face  portrait of jcon-subject, masterpiece, best quality, highly detailed, model shoot style, f1 8, RAW, canon press photograph-before-highres-fix

Text alignment on info panel

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

8GB

What happened?

The text on info panel is is center-aligned instead of left-aligned

textalignment.mov

Crash Log

No response

Auto-save images to specific folder

Running Latest Version

  • I am running the latest version

What do you want Mochi Diffusion to do?

Hi,

Do you thing it would be possible to enable image auto-save to a specific folder? As soon as an image is generated, it is saved as a file to a folder set in the app preferences.

Why do you think this should be added?

I love the tool and I'm trying to remember to hit File > Save all after I'm done with a session. But I still forget from time to time and lose some great images.

Thanks in advance!

Importing: empty negative prompt gets replaced with key

Running Latest Version

  • I am running the latest version

Processor

M1 (or later)

Intel processor

No response

Memory

16GB

What happened?

  1. Generate an image with an empty negative prompt.
  2. Save that image to a file.
  3. Import it back to the gallery.
  4. Observe that the negative prompt now says "Exclude from Image".
Original After import
image image

The description metadata of the image did not contain this string, so the bug must be lurking when the metadata is parsed back.

Include in Image: girl with long red hair and green eyes, holding a tabby cat, streets, white scarf; Exclude from Image: ; Model: anything-v4.5_split-einsum_compiled; Steps: 50; Guidance Scale: 4.0; Seed: 3483372203; Size: 512x512; Scheduler: DPM-Solver++; Generator: Mochi Diffusion 2.2

Crash Log

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.