KivyMD icon indicating copy to clipboard operation
KivyMD copied to clipboard

kivymd filemanager error

Open Sahil-pixel opened this issue 3 years ago • 15 comments

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

image see above image no icon in floating action button then i enter the folder after 1 second picture shown below image

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)

    ...

Sahil-pixel avatar Sep 17 '20 13:09 Sahil-pixel

this happened to me too, in both list and previous verison

podraco avatar Sep 18 '20 00:09 podraco

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

podraco avatar Sep 18 '20 01:09 podraco

and what about button icon ? button icons are not appearing.

Sahil-pixel avatar Sep 18 '20 05:09 Sahil-pixel

please fix these problems ...as soon as possible

Sahil-pixel avatar Sep 18 '20 05:09 Sahil-pixel

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"

podraco avatar Sep 18 '20 06:09 podraco

Facing the same error when preview=True. Otherwise, working great.

MS-Jahan avatar Oct 02 '20 17:10 MS-Jahan

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 avatar Jan 12 '21 18:01 aidingh

@aidingh Not yet fixed.

HeaTTheatR avatar Jan 12 '21 19:01 HeaTTheatR

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)

runette avatar Jan 26 '21 21:01 runette

Can you update kivy to 2.0.0? @Sahil-pixel

romybompart avatar Apr 13 '21 13:04 romybompart

Can you update kivy to 2.0.0? @Sahil-pixel

I have not tested ..have you test it with Kivy==2.0.0 ???

Sahil-pixel avatar Apr 13 '21 21:04 Sahil-pixel

Yes you need to

pip install Kivy==2.0.0

romybompart avatar Apr 14 '21 02:04 romybompart

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 avatar Mar 28 '22 18:03 Neizvestnyj

@Neizvestnyj There are bugs on mobile devices.

HeaTTheatR avatar Mar 29 '22 06:03 HeaTTheatR

@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

Neizvestnyj avatar Mar 29 '22 11:03 Neizvestnyj