diffusionbee-stable-diffusion-ui icon indicating copy to clipboard operation
diffusionbee-stable-diffusion-ui copied to clipboard

Ask for help: Backend quit unexpectedly

Open rickyyin98 opened this issue 2 years ago • 15 comments

截屏2022-09-13 12 48 26

More info: Version: Ventura 13.0 (22A5295i)

rickyyin98 avatar Sep 13 '22 04:09 rickyyin98

Happened to me, just quit and restarted and all was fine

ee0pdt avatar Sep 13 '22 08:09 ee0pdt

Happened to me, just quit and restarted and all was fine

I quit and restart for many times, but still not work. So I try to find a way.

rickyyin98 avatar Sep 13 '22 09:09 rickyyin98

I'm having the same issue on M1 Pro MacOS 12.6, with this error.

Uncaught Exception:
TypeError: Object has been destroyed
at IpcMainImpl.<anonymous> (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:240289)
at IpcMainImpl.emit (events.js:315:20)
at Object.<anonymous> (electron/js2c/browser_init.js:161:10307)
at Object.emit (events.js:315:20)
at ChildProcess.<anonymous> (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:244979)
at ChildProcess.emit (events.js:315:20)
at maybeClose (internal/child_process.js:1048:16)
at Socket.<anonymous> (internal/child_process.js:439:11)
at Socket.emit (events.js:315:20)
at Pipe.<anonymous> (net.js:673:12)

ctparton avatar Sep 13 '22 11:09 ctparton

I'm seeing the same on 12.6 Uncaught Exception: TypeError: Object has been destroyed at IpcMainImpl.<anonymous> (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:240352) at IpcMainImpl.emit (events.js:315:20) at Object.<anonymous> (electron/js2c/browser_init.js:161:10307) at Object.emit (events.js:315:20) at ChildProcess.<anonymous> (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:244979) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Socket.<anonymous> (internal/child_process.js:439:11) at Socket.emit (events.js:315:20) at Pipe.<anonymous> (net.js:673:12) I'm on an M1 Pro with 32GB RAM. Let me know if you need anything for debugging.

schoeM avatar Sep 13 '22 13:09 schoeM

Also saw the same issue and same error. Mac Mini M1. Fresh install of 12.6, restarted and reinstalled DiffusionBee several times. Same message. Resolved by deleting current install of DiffusionBee, restarting, reinstalling DiffusionBee without opening it, full restart, then opening. Appears to run well now. : )

mindfu23 avatar Sep 13 '22 18:09 mindfu23

I am seeing the same issue and the same error. Attempted the same restart options noted above including deleting, restarting, reinstalling, not opening, then restarting again. I still see "Backend quit unexpectedly" in addition to the following:

A JavaScript error occurred in the main process

Uncaught Exception: TypeError: Object has been destroyed at IpcMainImpl. (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:240289) at IpcMainImpl.emit (events.js:315:20) at Object. (electron/js2c/browser_init.js:161:10307) at Object.emit (events.js:315:20) at ChildProcess. (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:244979) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Socket. (internal/child_process.js:439:11) at Socket.emit (events.js:315:20) at Pipe. (net.js:673:12)

This is all occurring on a Macbook Pro M1, 16GB RAM, recently updated to Monterey 12.6 (updated in order to run this specific program). Happy to pass on any other helpful information.

EDIT This problem resolved itself spontaneously after 24 hours without restart.

christiansstevens avatar Sep 13 '22 20:09 christiansstevens

Same issue here.

MacBook Pro 16inch 2021 Apple M1 Max 64Gb RAM, most other apps closed macOS 12.6

greatoe avatar Sep 17 '22 03:09 greatoe

Had the exact same error. I realized my internet connection filter (TripMode) blocked traffic of this unknown app. After enabling internet access for DiffusionBee it started downloading the model.

holygrolli avatar Sep 17 '22 21:09 holygrolli

I can confirm the blocked internet access is the solution.

Sowiedu avatar Sep 26 '22 19:09 Sowiedu

How did you "unblock" the app? I have allowed in the firewall and even tried turning the firewall off; neither worked

mattq2022 avatar Oct 30 '22 23:10 mattq2022

Download the 1.4.3 version, that should fix this issue.

allanjackson avatar Oct 31 '22 13:10 allanjackson

Yeah, I have a intel Mac, so the newer versions do not work

mattq2022 avatar Nov 01 '22 02:11 mattq2022

Hey! I just installed the latest version of Diffusion Bee 1.5.1 and this is the exact error that's happening to me. The models just refuse to download. I tried all of the steps that you guys said and it still isn't working. Anyone have an updated solution? Specs: M1 Pro, 16gb ram, MacOS 13.0.1

anshuzy avatar Nov 24 '22 14:11 anshuzy

I keep getting this error

Backend quit unexpectedly. call last): File "diffusionbee_backend.py", line 256, in File "diffusionbee_backend.py", line 216, in main File "diffusionbee_backend.py", line 113, in get_sd_model NameError: name 'p2' is not defined [1059] Failed to execute script 'diffusionbee_backend' due to unhandled exception!

anshuzy avatar Nov 24 '22 14:11 anshuzy

I am seeing the same issue and the same error. Attempted the same restart options noted above including deleting, restarting, reinstalling, not opening, then restarting again. I still see "Backend quit unexpectedly" in addition to the following:

A JavaScript error occurred in the main process

Uncaught Exception: TypeError: Object has been destroyed at IpcMainImpl. (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:240289) at IpcMainImpl.emit (events.js:315:20) at Object. (electron/js2c/browser_init.js:161:10307) at Object.emit (events.js:315:20) at ChildProcess. (/Applications/DiffusionBee.app/Contents/Resources/app.asar/background.js:2:244979) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1048:16) at Socket. (internal/child_process.js:439:11) at Socket.emit (events.js:315:20) at Pipe. (net.js:673:12)

This is all occurring on a Macbook Pro M1, 16GB RAM, recently updated to Monterey 12.6 (updated in order to run this specific program). Happy to pass on any other helpful information.

EDIT This problem resolved itself spontaneously after 24 hours without restart.

Hey! do you know any other possible fixes? I just updated to Monteray just for this too and it's still not working for me even after all the restarts and redownloads.

anshuzy avatar Nov 24 '22 14:11 anshuzy