Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - Exception after updating ComfyUI #37

Closed
mwo72 opened this issue Jan 2, 2024 · 15 comments
Closed

[BUG] - Exception after updating ComfyUI #37

mwo72 opened this issue Jan 2, 2024 · 15 comments
Labels
bug Something isn't working

Comments

@mwo72
Copy link

mwo72 commented Jan 2, 2024

Description

There is an exception message "'NoneType' object has no attribute 'endswith'" after updating ComfyUI

Reproduction steps

  1. Go into the ComfyUI Manager Menu
  2. Click 'Update All'
  3. Wait and restart
  4. Create a simple workflow with 'SD Batch Loader' and 'SD Prompt Reader'
  5. Press 'Queue Prompt'

Image file

Exception

@mwo72 mwo72 added the bug Something isn't working label Jan 2, 2024
@receyuki
Copy link
Owner

receyuki commented Jan 2, 2024

Can you post the original image (ComfyUI_144103.jpg) here?

@receyuki
Copy link
Owner

receyuki commented Jan 2, 2024

That's strange, everything is working fine on my end. Have you tried reloading the browser tab? What is the error message displayed on your server terminal?

@mwo72
Copy link
Author

mwo72 commented Jan 2, 2024

I have made several tests, including rebooting. At first I thought it was an incompatibility with another package, so I have completely reinstall from scratch ComfyUI. It turned out the problem occurs after the update.

Console

@receyuki
Copy link
Owner

receyuki commented Jan 2, 2024

I've finally found the bug, and I should be able to fix it within a few hours.

@receyuki
Copy link
Owner

receyuki commented Jan 2, 2024

Done!

@mwo72
Copy link
Author

mwo72 commented Jan 2, 2024

Thank you for the fix, but something else might have been broken in the process. The preview image in the 'SD prompt reader' is no longer updated.

PreviewNotUpdated

@receyuki
Copy link
Owner

receyuki commented Jan 2, 2024

This is not a bug. The preview image won't work when you use the batch loader. Currently, I haven't found a good solution, so I suggest using a preview image node as an alternative.

@mwo72
Copy link
Author

mwo72 commented Jan 2, 2024

Another issue, the 'single file' mode seems to be broken

SingleFileMode

@receyuki
Copy link
Owner

receyuki commented Jan 2, 2024

I've made some attempts, but the only scenario this error message is triggered is when the image does not exist. So, could you do more testing and let me know the results?

@mwo72
Copy link
Author

mwo72 commented Jan 2, 2024

Thank you for your time and sorry for all the troubles.

I am using your package with a more complex workflow than the examples that I have posted here.

After seeing your last message, I was unable to reproduce the problem with the previous example ???, but it seems to occur when the 'path' is provided by another node (WAS Suite: Text Multiline)

SingleFileMode2

After some digging, I was able to bypass this problem with the following hack (I am not a expert of Python/ComfyUI)

fix

@receyuki
Copy link
Owner

receyuki commented Jan 5, 2024

The primitive node can work, but anyway, I will fix this.
截屏2024-01-05 下午10 05 19

@receyuki
Copy link
Owner

Please try the latest version.

@mwo72
Copy link
Author

mwo72 commented Jan 22, 2024

Hello, thank you for your work.

The good news, the SD batch loader is working.

The not so good news, loading a old workflow seems to be broken, but if we edit it (delete, recreate node and link), then it works again. I have no idea how ComfyUI is supposed to work with updated nodes having new inputs/outputs.

image

Old workflow:
workflow.json

@receyuki
Copy link
Owner

Same here. TinyterraNodes provides a function to reload nodes, but sometimes this feature doesn't work, and I still have to delete and recreate nodes. So, I also wish there was a better way.

https://github.com/TinyTerra/ComfyUI_tinyterraNodes

@receyuki
Copy link
Owner

BTW, 768x768 is the optimal resolution for SDv2 so you can set the model version to SDv2 and choose 1:1.

@mwo72 mwo72 closed this as completed Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants