This commit is contained in:
yumoqing 2020-11-23 20:46:06 +08:00
parent cb4c5f25ec
commit d67bc227b4

View File

@ -55,36 +55,8 @@ class NewVideo(BGColorBehavior, Video):
# try to fix up the error # try to fix up the error
def unload(self,try_cnt=0): def unload(self,try_cnt=0):
""" """
Traceback (most recent call last): File "C:\Python37\lib\threading.py", line 1039, in join
File "main.py", line 288, in <module> RuntimeError: cannot join thread before it is started
myapp.run()
File "C:\Python37\lib\site-packages\kivy\app.py", line 855, in run
runTouchApp()
File "C:\Python37\lib\site-packages\kivy\base.py", line 504, in runTouchApp
EventLoop.window.mainloop()
File "C:\Python37\lib\site-packages\kivy\core\window\window_sdl2.py", line 747, in mainloop
self._mainloop()
File "C:\Python37\lib\site-packages\kivy\core\window\window_sdl2.py", line 479, in _mainloop
EventLoop.idle()
File "C:\Python37\lib\site-packages\kivy\base.py", line 348, in idle
Clock.tick_draw()
File "C:\Python37\lib\site-packages\kivy\clock.py", line 598, in tick_draw
self._process_events_before_frame()
File "kivy\_clock.pyx", line 427, in kivy._clock.CyClockBase._process_events_before_frame
File "kivy\_clock.pyx", line 467, in kivy._clock.CyClockBase._process_events_before_frame
File "kivy\_clock.pyx", line 465, in kivy._clock.CyClockBase._process_events_before_frame
File "kivy\_clock.pyx", line 167, in kivy._clock.ClockEvent.tick
File "C:\Python37\lib\site-packages\kivy\uix\video.py", line 174, in _do_video_load
self.unload()
File "C:\Python37\lib\site-packages\kivy\uix\video.py", line 240, in unload
self._video.stop()
File "C:\Python37\lib\site-packages\kivy\core\video\video_ffpyplayer.py", line 325, in stop
self.unload()
File "C:\Python37\lib\site-packages\kivy\core\video\video_ffpyplayer.py", line 366, in unload
self._thread.join()
File "C:\Python37\lib\threading.py", line 1039, in join
raise RuntimeError("cannot join thread before it is started")
RuntimeError: cannot join thread before it is started
""" """
try: try:
super().unload() super().unload()