KivyMD icon indicating copy to clipboard operation
KivyMD copied to clipboard

SystemError: tile cannot extend outside image

Open Neizvestnyj opened this issue 2 years ago • 9 comments

When you set kivy window state before importing kivymd occur error:

fh = fp.fileno()
 AttributeError: '_idat' object has no attribute 'fileno'
 ...
 During handling of the above exception, another exception occurred:
e.setimage(im.im, b)
 SystemError: tile cannot extend outside image
from kivy.config import Config
Config.set('graphics', 'window_state', 'hidden')

from kivy.lang import Builder

from kivymd.app import MDApp
from kivy.core.window import Window

KV = """
MDBoxLayout:
    orientation: "vertical"
    MDToolbar:
        title: "App"
"""


class Test(MDApp):
    def build(self):
        return Builder.load_string(KV)

    def on_start(self):
        Config.set('graphics', 'window_state', 'visible')
        Window.show()


Test().run()

kivy: 2.1.0 kivymd: master OS: WIndows PIL: 9.0.1

Neizvestnyj avatar Mar 26 '22 09:03 Neizvestnyj

@Neizvestnyj

https://user-images.githubusercontent.com/16930280/160234009-e63d6e26-e42f-4ce5-aed7-03e779b953cd.mov

HeaTTheatR avatar Mar 26 '22 09:03 HeaTTheatR

@Neizvestnyj

2022-03-26.12.43.50.mov

Hmm, I reinstall all libs, and bug remains. Do you use kivy==2.1.0? Maybe it is Windows bug...

Neizvestnyj avatar Mar 26 '22 10:03 Neizvestnyj

@Neizvestnyj Yes, I am using the latest version of Kivy.

HeaTTheatR avatar Mar 26 '22 11:03 HeaTTheatR

@Neizvestnyj Yes, I am using the latest version of Kivy.

I think its Windows bug (maybe)

Neizvestnyj avatar Mar 26 '22 12:03 Neizvestnyj

On Linux/MacOS work fine, its Windows bug. In elevation.py

Neizvestnyj avatar Mar 26 '22 12:03 Neizvestnyj

https://user-images.githubusercontent.com/40869738/160346483-4212581b-63cb-460e-9cb6-999cce957147.mp4

Neizvestnyj avatar Mar 28 '22 07:03 Neizvestnyj

On windows 10, pycharm, I get the same error.

el3 avatar Mar 28 '22 08:03 el3

from kivy.core.window._window_sdl2 import _WindowSDL2Storage

[←[1;31mCRITICAL←[0m] [App ] Unable to get a Window, abort.

moayman24 avatar May 29 '22 18:05 moayman24

any help i got this

moayman24 avatar May 29 '22 18:05 moayman24