SDIMV icon indicating copy to clipboard operation
SDIMV copied to clipboard

Cannot launch since 1.20

Open MNeMoNiCuZ opened this issue 1 year ago • 18 comments

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?

MNeMoNiCuZ avatar Dec 16 '23 19:12 MNeMoNiCuZ

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

maagic6 avatar Dec 17 '23 07:12 maagic6

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

MNeMoNiCuZ avatar Dec 17 '23 12:12 MNeMoNiCuZ

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

maagic6 avatar Dec 17 '23 15:12 maagic6

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

MNeMoNiCuZ avatar Dec 18 '23 22:12 MNeMoNiCuZ

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.

maagic6 avatar Dec 18 '23 23:12 maagic6

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

MNeMoNiCuZ avatar Jan 06 '24 20:01 MNeMoNiCuZ

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?

maagic6 avatar Jan 08 '24 14:01 maagic6

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? :)

MNeMoNiCuZ avatar Jan 08 '24 14:01 MNeMoNiCuZ

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

maagic6 avatar Jan 08 '24 14:01 maagic6

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: @.***>

MNeMoNiCuZ avatar Jan 08 '24 14:01 MNeMoNiCuZ

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

soyatlas avatar Jan 25 '24 19:01 soyatlas

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

MNeMoNiCuZ avatar Jan 25 '24 23:01 MNeMoNiCuZ

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

maagic6 avatar Jan 27 '24 10:01 maagic6

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

maagic6 avatar Jan 27 '24 10:01 maagic6

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

MNeMoNiCuZ avatar Jan 27 '24 11:01 MNeMoNiCuZ

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.)

maagic6 avatar Jan 28 '24 11:01 maagic6

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

MNeMoNiCuZ avatar Jan 28 '24 12:01 MNeMoNiCuZ

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'

MNeMoNiCuZ avatar Feb 02 '24 16:02 MNeMoNiCuZ