Giter Site home page Giter Site logo

Comments (3)

ClintonButler avatar ClintonButler commented on August 28, 2024

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

from tkviewer.

DizzyThermal avatar DizzyThermal commented on August 28, 2024

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.

from tkviewer.

DizzyThermal avatar DizzyThermal commented on August 28, 2024

@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

from tkviewer.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.