maagic6 / SDIMV

Standalone program for viewing metadata of Stable Diffusion generated images
GNU General Public License v3.0
17 stars 1 forks source link

Cannot launch since 1.20 #37

Open MNeMoNiCuZ opened 6 months ago

MNeMoNiCuZ commented 6 months ago

Since v1.2.0 I cannot launch the application. It just closes. It's the same with v1.21. Can't give you much more info to debug as nothing is logged as far as I can see.

Any ideas?

maagic6 commented 6 months ago

I'm 100% sure it has something to do with the settings when the application loads. Could you download and run this which should display a console and log the error, then copy and paste it here? https://file.io/DiZ8ECyyyerK

MNeMoNiCuZ commented 6 months ago

Here's the output:

PyInstaller\loader\pyimod02_importers.py:419: PythonQtWarning: Selected binding 'pyqt5' could not be found; falling back to 'pyqt6' Traceback (most recent call last): File "SDIMV.py", line 357, in handleItemSelectionChanged File "SDIMV.py", line 215, in viewMetadata File "pathlib.py", line 1407, in exists File "pathlib.py", line 1221, in stat File "pathlib.py", line 742, in fspath File "pathlib.py", line 735, in str RecursionError: maximum recursion depth exceeded while calling a Python object

maagic6 commented 6 months ago

It seems that some filepath loaded from the settings is causing the recursion error. You could remove the values of selectedFiles from 'Computer\HKEY_CURRENT_USER\SOFTWARE\maagic6\SDIMV' in Registry Editor for a quick fix, but if it's not too much trouble could you run this which should log the filepath that's causing the recursion and see if there's anything odd about it? https://file.io/gtu8zGj4bRvQ

MNeMoNiCuZ commented 6 months ago

I removed the regedit before running the debug, sorry if it was the wrong order! Removing the regedit fixed it.

Here's the output of the debug after: PyInstaller\loader\pyimod02_importers.py:419: PythonQtWarning: Selected binding 'pyqt5' could not be found; falling back to 'pyqt6' C:/AI/stable-diffusion-webui/outputs/txt2img-images/2023-12-18/2023-12-18 - 01.10.21.png C:/AI/stable-diffusion-webui/outputs/txt2img-images/2023-12-18/2023-12-18 - 01.10.21.png

I took a screenshot of the regedit before removing the keys & folders: Clipboard Image

Here's an example file that was in that registry data. It's a ComfyUI-generated piece. 2023-12-04 - 01 21 58

maagic6 commented 6 months ago

No worries! I won't be able to tell exactly what caused the error but I'll set the follow_symlinks argument in exists() to false just in case it was caused by passing a symlink that points to itself. I'll close this for now until this can be reproduced.

MNeMoNiCuZ commented 6 months ago

The issue keeps coming back. It works for a few days, and then it breaks again.

maagic6 commented 5 months ago

Same exact issue? If you still have the debug exe I sent (or alternatively download it again from https://file.io/4SztJR2xpnvn), could you run it and paste the console output here before you clear the registry this time?

MNeMoNiCuZ commented 5 months ago

I think it's the same issue. I cleared it again. I'll do this next time it gets messed up. Is regedit necessary? Wouldn't a settings.ini-file that you save to work just as well and also make it portable and non-obtrusive? Who wants more shit in their regedit? :)

maagic6 commented 5 months ago

True. It's not necessary really, all I'd have to do is change a single line to use an .ini file instead of the registry. I'll change that in the next release, though I'd still really like to know what's causing the bug

MNeMoNiCuZ commented 5 months ago

That would be great! Now the program will be portable as well so that's another benefit! I'll keep it like this to try and figure it out.

On Mon, Jan 8, 2024 at 3:41 PM maagic6 @.***> wrote:

True. It's not necessary really, all I'd have to do is change a single line to use an .ini file instead of the registry. I'll change that in the next release, though I'd still really like to know what's causing the bug

— Reply to this email directly, view it on GitHub https://github.com/maagic6/SDIMV/issues/37#issuecomment-1881140915, or unsubscribe https://github.com/notifications/unsubscribe-auth/AON4WDA2RPZKOYB7CNGOIM3YNQASBAVCNFSM6AAAAABAXZDJ7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGE2DAOJRGU . You are receiving this because you authored the thread.Message ID: @.***>

soyatlas commented 5 months ago

Hi. I had get this same error. I erased the indicated before in Registry, and now runing ok.

My problem was that My computer hang with the program running.

Fantastic program !

I take this opportunity to suggest the following. The degree files in COMFYUI have a plug-in that allows you to view the "node program" with which the image has been created. It would be interesting to be able to open the viewer and from that window be able to study and copy some data together.

Congratulations on the program.

THANK YOU

PD.: In this web You can see the plugin of nodes diagram: https://openart.ai/workflows/openart/-/S6PuWxBpXPB9PxSMhgUb

MNeMoNiCuZ commented 5 months ago

Can you please upload the debugger again? It's broken again for me now :)

maagic6 commented 5 months ago

Apologies for the late reply, uploaded to drive: https://drive.google.com/file/d/1tp4uAbqu-AFjhFJI1OTC8Rm70A_OmLCZ/view?usp=sharing

maagic6 commented 5 months ago

@soyatlas Could you give me some more details on your suggestion? Are you suggesting a node viewer?

MNeMoNiCuZ commented 5 months ago

The debug closes immediately, but I think I managed to get the errors to be: PyInstaller\loader\pyimod02_importers.py:419: PythonQtWarning: Selected binding 'pyqt5' could not be found; falling back to 'pyqt6'

and

Clipboard Image

maagic6 commented 5 months ago

Before the traceback the filepath causing the error should be printed out. Could you see how the filepath is formatted? (forward slash, backward slash, double forward slashes etc.)

MNeMoNiCuZ commented 5 months ago

Ah, I didn't notice, will check next time...

MNeMoNiCuZ commented 5 months ago

image

It seems to repeat these 2 lines over and over: image

It's really hard to be able to pause the debugger before it closes, but I manage to get this from the top: PyInstaller\loader\pyimod02_importers.py:419: PythonQtWarning: Selected binding 'pyqt5' could not be found; falling back to 'pyqt6'