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

Infinite Loop While Opening Photo #28

Closed
GinkgoBil opened this issue Nov 23, 2024 · 6 comments
Closed

Infinite Loop While Opening Photo #28

GinkgoBil opened this issue Nov 23, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@GinkgoBil
Copy link

I’ve encountered an issue when trying to process an image. Specifically, the wrapper gets stuck in a loop where the Gigapixel window repeatedly opens the dialog to choose the image location, but it never successfully processes the file.

Here’s an excerpt from the debug logs:
2024-11-23 11:23:49.641 | DEBUG | gigapixel.gigapixel:open_photo:85 - Trying to open photo 2024-11-23 11:23:51.212 | DEBUG | gigapixel.gigapixel:open_photo:85 - Trying to open photo 2024-11-23 11:23:52.351 | DEBUG | gigapixel.gigapixel:open_photo:85 - Trying to open photo ...
This repeats indefinitely. The input image path is valid and accessible.

Windows 11 22H2
Python 3.13
Gigapixel 7.1.4
GigapixelWrapper 1.4.2

@TimNekk TimNekk self-assigned this Nov 23, 2024
@TimNekk TimNekk added the bug Something isn't working label Nov 23, 2024
@TimNekk
Copy link
Owner

TimNekk commented Nov 23, 2024

Fixed by #29

Update package to 1.5.0 version pip install -U gigapixel

@TimNekk TimNekk closed this as completed Nov 23, 2024
@TimNekk
Copy link
Owner

TimNekk commented Nov 23, 2024

@GinkgoBil Thanks for reporting this bug ❤️

@GinkgoBil
Copy link
Author

Ok I will try thanks
Your wrapper work with gigapixel 8 ?

@TimNekk
Copy link
Owner

TimNekk commented Nov 23, 2024

I did not test it on Gigapixel 8

@GinkgoBil
Copy link
Author

It works, but the script needs to try several times. I think it would work better on PCs that aren’t super fast by adding a wait(1)

2024-11-23 17:34:55.334 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:34:57.164 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:34:58.377 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:34:59.953 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:01.587 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:03.224 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:04.786 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:06.456 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:07.785 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:09.386 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:10.728 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:12.287 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:13.561 | DEBUG | gigapixel.gigapixel:open_photo:75 - Trying to open photo
2024-11-23 17:35:16.058 | DEBUG | gigapixel.logging:wrapper:37 - Photo opened
2024-11-23 17:35:16.059 | DEBUG | gigapixel.logging:wrapper:31 - Setting processing options
2024-11-23 17:35:16.895 | DEBUG | gigapixel.gigapixel:_set_scale:137 - Scale set to 2x
2024-11-23 17:35:17.707 | DEBUG | gigapixel.gigapixel:_set_mode:150 - Mode set to Standard
2024-11-23 17:35:17.707 | DEBUG | gigapixel.logging:wrapper:37 - Processing options set
2024-11-23 17:35:17.707 | DEBUG | gigapixel.logging:wrapper:31 - Saving photo
2024-11-23 17:35:17.707 | DEBUG | gigapixel.logging:wrapper:31 - Opening export dialog
Retry decorator catch error in wrapper: TimeoutError('timed out')
2024-11-23 17:35:18.491 | DEBUG | gigapixel.logging:wrapper:31 - Opening export dialog
Retry decorator catch error in wrapper: TimeoutError('timed out')
2024-11-23 17:35:19.359 | DEBUG | gigapixel.logging:wrapper:31 - Opening export dialog
Retry decorator catch error in wrapper: TimeoutError('timed out')
2024-11-23 17:35:20.448 | DEBUG | gigapixel.logging:wrapper:31 - Opening export dialog
Retry decorator catch error in wrapper: TimeoutError('timed out')
2024-11-23 17:35:21.987 | DEBUG | gigapixel.logging:wrapper:31 - Opening export dialog
2024-11-23 17:35:23.100 | DEBUG | gigapixel.logging:wrapper:37 - Export dialog opened
2024-11-23 17:35:59.690 | DEBUG | gigapixel.logging:wrapper:31 - Closing export dialog
Retry decorator catch error in wrapper: TimeoutError('timed out')
2024-11-23 17:36:00.278 | DEBUG | gigapixel.logging:wrapper:31 - Closing export dialog

@TimNekk TimNekk reopened this Nov 24, 2024
@TimNekk
Copy link
Owner

TimNekk commented Nov 24, 2024

If you are referring to retries messages, then don't worry, this is normal behavior. This is just debug logs. If your script does not fulfill its function or does not work correctly, then create a new PR and describe the problem.

@TimNekk TimNekk closed this as completed Nov 24, 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