invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.77k stars 2.44k forks source link

[system crash]: startup crashes windows #4373

Closed dynatron832 closed 7 months ago

dynatron832 commented 1 year ago

Is there an existing issue for this?

OS

Windows

GPU

cuda

VRAM

24

What version did you experience this issue on?

3.0.2 Post1

What happened?

installed with the installer package. after that is the configuration/downloads. if i start invoke via the bat and chose the web option the script came to "Starting the InvokeAI browser-based UI.." then the the window froze. after a few seconds the whole system freezes completly. and a few seconds after that windows produces a blue screen. "DPC_Watchdog_Violation"

edit: an older version of invoke v2.3.5P2 still works. have tryed v3.0.2 same crash result

anybody any idea where this came from ? everything other works fine so far. A1111/Comfy

Screenshots

No response

Additional context

No response

Contact Details

No response

psychedelicious commented 1 year ago

From my searching, this error is typically related to corrupted or outdated drivers. Please update your GPU drivers, restart, and try again.

dynatron832 commented 1 year ago

interesting idea ...the driver´s ...problem is ...theyre not to old. had confirmed that on a other system. same driver version and it´s running. after that i asumed some hardware incompatibility with my main system. so i installed a full fresh windows on a secondary disk. installed the minimalist stuff to run invoke. drivers, (still old one) chipset driver, python, win runtime stuff and then invoke. and it works. there was a slightly issue with a missing packet. invoke wont download at startup. telling me something about certificates. turns out "certifi" has to be updated. done that and after that invoke get it´s last files and runs. no crash nothing. on the same hardware where it crashes with the other windows.

then on the "faulty" windows i cleaned the nvidia drivers. Display Driver Uninstaller DDU tool. then installed the same drivers again ...and tested invoke ...still crashing with the same behavior. so ...it´s still windows. thinking of it i deinstalled another tool which may be could have something todo with that. it´s an multi monitor manager. but this thing has ton´s of stuff inside which i dont need. it´s not starting with windows ...but it can potentially change a lot of stuff. all nearly related to gpu stuff. the only reason i have this is to change the monitor configuration (one off or on). but it turn´s out this was also not the problem candidate. and at the moment i have no other idea.

the only way seems to be install windows new. maybe i do that in a while. but if i do so ...and installed all the stuff again iam using ...maybe i reinstall some problem candidate again. and i dont know which one it is.

b.t.w. invoke 3.1.0 crashes also

psychedelicious commented 1 year ago

It's related to some configuration or whatever is installed with the affected install of windows. I know you said the drivers are not old, but a driver update and/or reinstall is as much help as we can give you.

dynatron832 commented 1 year ago

okay ...i give it a try. installed the newest ...and that is v537.13 ...make a reboot and try invoke ...aaaaaaaaanddd ...no. it still crashes happily. and if i already wasting my time with this annoying issue i got into the cleaner windows and try´ed to install a few "things" which might cause this issue because on my working windows i use them. aaaaaaaand ....no. nothing brings the same crash. invoke starts and it runs as it should be. it´s not everything i could install if i fully reinstall windows and everything i want to use.

is there no log function which i can activate and maybe see what exactly invoke try´s todo at the crash moment ?

was the question i would like to ask ...but google was a little bit faster ...even if this seems not to work. if found https://invoke-ai.github.io/InvokeAI/features/LOGGING/ this one. sounds nice ...but dont work ...or iam not able to bring it to work.

if i try this on my working windows (the crashy one) ...putting "--log_handlers console syslog=/dev/log file=C:\temp\invokeai.log" to the start parameters ...i got ...a crash ...like all the other too. but thats interesting. sooooo ....i asking myself. what would a written log look like if invoke startup and dont crashes ? so i go to my testing windows (the working one) and try´ed that again. this time it vomit a bunch of errors an getting back to the startup choise. but theres some line that say´s syslog is not aviable on my system. yeah ...whatever. would be toooooo easy hmm ? but ...if invoke exited AND telling me theres an problem ...and not crashing to bluescreen ...why did the working pc version of invoke dont tells me that syslog is not aviable ? this one crashes and say nothing ? what did he even doing to crash "before" he is able to tell me syslog is not an option and exiting without crashing ?

so ...logging seems to be no help ? what now ? ...now. if invoke startup´s it tells me some "patchmatch" is loaded. one the crashing windows i never saw this message. so ...did it fail at loading patchmacht ? ahh ...okay ...and ...hey google ...what is patchmatch ?

https://invoke-ai.github.io/InvokeAI/installation/060_INSTALL_PATCHMATCH/

interesting ...so ...what would invoke do if i delete the folder calles patchmatch ? vomit a bunch of errors again ? yeah ...ok. that was not nice. but ...on the invoke doku it say´s "It is not needed to run InvokeAI" ...ohh okay. and why it exitet happily with a bunch of errors ? now ...whatever.

i try´ed this on my crashing windows. delete that folder and hoping invoke would produce the same. exiting with a bunch of errors. but not crashing because it cant load it. but noooo ...invoke crashes as if nothing happened. but that tells me two thing. one ...it´s not the load of patchmatch which caused the crash. two ...it´s not the state where the invoke exe is able to exit correctly because it´s finaly noticed that it cant go on because syslog is not aviable.

so ...what try´es invoke todo before the loading of patchmatch ? and before the syslog fail exiting ?

psychedelicious commented 1 year ago

I'm sorry, that's a lot of text and it's not clear what is being asked. Can you please sum it up in a sentence or two?

dynatron832 commented 1 year ago

at the startup of invoke web mode. what is the exe doing before the console is typing that he loads patchmatch ?

psychedelicious commented 1 year ago

If I understand your question, the application is attempting to compile the PatchMatch library, which is used for outpainting. There is no exe, it's a python script.

You've mentioned some errors. Please copy and paste any errors here so we can review them.

dynatron832 commented 1 year ago

these errors occur when i try to start invoke with a syslog parameter. but these errors happen on the "not" crashing windows. so they have no sense for me to know what they are for. remember invoke on the other windows still crashes even without the try to activate syslog.

There is no exe, it's a python script.

i say yes. there is an .exe involved. in the invoke root folder is the "invoke.bat" ...if i start it the bat script requestet a choice. 1-10 or Q. if i chose 1 and hit enter then the bat script runs these three lines:

IF /I "%choice%" == "1" ( echo Starting the InvokeAI browser-based UI.. python .venv\Scripts\invokeai-web.exe %*

and that invokeai-web.exe exists. and it´s not an script code file ....its machine code.

it "maybe" runs some script file ...like patchmatch. which is confirming it is installed ...and if not going to download that. but my problem is ...i dont know where the crash happens. because of that iam asking what is the exe doing ? it is calling other script like the patchmatch stuff and the script crashing ? or is it the exe earlier which itself is crashing while doing totaly other stuff. maybe checking the gpu drivers ? asking the gpu hardware ? ....i dont know ...and thats why i asking.

psychedelicious commented 7 months ago

Sorry for the late reply. The exe simply runs the python application. If you still have this same problem on the latest release (v4.1.0), please copy the terminal output including error messages and comment on this issue. We can investigate further with more information.