KivyMD
KivyMD copied to clipboard
kivymd filemanager error
Description of the Bug
when i click one folder first it showing all folder after 1(approx) second all are folder are disappearing ..
##code
from kivymd.app import MDApp
from kivymd.uix.button import*
from kivymd.uix.card import*
from kivymd.uix.boxlayout import*
from kivymd.uix.screen import*
from kivy.lang import*
from kivy.properties import*
from kivy.uix.boxlayout import*
from kivymd.uix.filemanager import MDFileManager
class Main(BoxLayout):
def __init__(self,**k):
super().__init__(**k)
path='/home'
file_manager = MDFileManager(preview=True)
file_manager.show(path)
class MyApp(MDApp):
def build(self):
return Main()
MyApp().run()
Screenshots
see above image no icon in floating action button
then i enter the folder after 1 second picture shown below
Add images to explain us this bug. Paste urls here.
Remove this section if no images here
Versions
- OS: kubuntu 18.04
- Python: 3.6.9
- Kivy: 1.11.1
- KivyMD: 0.104.2.dev0 ########## log
[INFO ] [Logger ] Record log in /home/sahil/.kivy/logs/kivy_20-09-17_11.txt
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "/usr/lib/python3/dist-packages/kivy/__init__.py"
[INFO ] [Python ] v3.6.9 (default, Jul 17 2020, 12:50:27)
[GCC 8.4.0]
[INFO ] [Python ] Interpreter at "/usr/bin/python3"
[INFO ] [KivyMD ] 0.104.2.dev0, git-Unknown, 2020-09-17 (installed at "/home/sahil/.local/lib/python3.6/site-packages/kivymd/__init__.py")
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [ImageLoaderFFPy] Using ffpyplayer 4.3.1
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_ffpyplayer, img_gif
[INFO ] [Text ] Provider: sdl2
[INFO ] [Window ] Provider: sdl2(['window_egl_rpi'] ignored)
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] Backend used <sdl2>
[INFO ] [GL ] OpenGL version <b'4.6.0 NVIDIA 440.95.01'>
[INFO ] [GL ] OpenGL vendor <b'NVIDIA Corporation'>
[INFO ] [GL ] OpenGL renderer <b'GeForce GT 710/PCIe/SSE2'>
[INFO ] [GL ] OpenGL parsed version: 4, 6
[INFO ] [GL ] Shading version <b'4.60 NVIDIA'>
[INFO ] [GL ] Texture max size <16384>
[INFO ] [GL ] Texture max units <32>
[INFO ] [Window ] auto add sdl2 input provider
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[INFO ] [GL ] NPOT texture support is available
[INFO ] [Base ] Start application main loop
[INFO ] [Loader ] using a thread pool of 2 workers
...
Exception: Cannot push more than 128 level of stencil. (stack overflow)
...
this happened to me too, in both list and previous verison
i believe that the preview should size up the images before showing them, do not load anything over 5 MB would help and also, use an item list (that recycles the widgets) to avoid that canvas over load
and what about button icon ? button icons are not appearing.
please fix these problems ...as soon as possible
There's a pull request that modify a all the button.py script, it hopefully include the fix for a missing icon, mostly of it's not inside the icon definitions it will be assigned as icon = "help"
Facing the same error when preview=True
. Otherwise, working great.
Is this problem fixed? Iam having the same issue? Would be great to solve soon? I could help out if needed. Because the preview mode is a nice feature for the mobile app we are creating
@aidingh Not yet fixed.
Having these problems but NOT in preview mode - and importing MDFileManager into my project seems to have polluted other non-related instances of ModalView to have the same problem. Very confusing. - but all related to White Screen and Exception: Cannot push more than 128 level of stencil. (stack overflow)
Can you update kivy to 2.0.0? @Sahil-pixel
Can you update kivy to 2.0.0? @Sahil-pixel
I have not tested ..have you test it with Kivy==2.0.0 ???
Yes you need to
pip install Kivy==2.0.0
I suggest closing the issue, there are no errors/bugs now
https://user-images.githubusercontent.com/40869738/160465578-b8cb06f1-4c42-4639-99f0-e5bbb201efac.mp4
@Neizvestnyj There are bugs on mobile devices.
@Neizvestnyj There are bugs on mobile devices.
I see only folder size issue.
https://user-images.githubusercontent.com/40869738/160602564-87f3adb3-bfab-4933-9d71-b447eb78ea3a.mp4