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

Viewer Freeze on Extraction of Static Objects #8

Closed
ClintonButler opened this issue Mar 7, 2018 · 3 comments
Closed

Viewer Freeze on Extraction of Static Objects #8

ClintonButler opened this issue Mar 7, 2018 · 3 comments
Assignees

Comments

@ClintonButler
Copy link

I was just testing out your great little tool and found that the client completely hung about 1300 items in or so.

@ClintonButler
Copy link
Author

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users*name*\AppData\Local\Programs\Python\Python36\lib\tkinter_init_.py", line 1699, in call
return self.func(args)
File "tk_viewer.py", line 113, in export_sobjs
os.path.join(export_dir, 'sobj-{0:05d}.bmp'.format(i)))
File "C:\Users*name
\AppData\Local\Programs\Python\Python36\lib\site-packages\PIL\Image.py", line 1930, in save
save_handler(self, fp, filename)
File "C:\Users*name*\AppData\Local\Programs\Python\Python36\lib\site-packages\PIL\BmpImagePlugin.py", line 276, in _save
(rawmode, stride, -1))])
File "C:\Users*name*\AppData\Local\Programs\Python\Python36\lib\site-packages\PIL\ImageFile.py", line 509, in _save
e.setimage(im.im, b)
SystemError: tile cannot extend outside image

@DizzyThermal DizzyThermal self-assigned this Mar 7, 2018
@DizzyThermal
Copy link
Owner

Thanks for the issue and trace.. Should be simple enough to fix up, I render static_objects with the client, so this was probably a porting bug.

@DizzyThermal
Copy link
Owner

@Wizbaggd give this another try. It turns out that the static objects trying to be rendered had 0 height (48 pixel width and 0 pixel height).

I check the static object height before saving now. This means that some objects may not export, but the viewer won't hang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants