tito/kivy — Issue #305: Inspector Module crash while selecting id of any object
Author: akshayaurora
Created: 2011-11-06 21:24:05+00:00
State: open

I know that the Inspector Module is experimental but it's really addictive.:)

Please let me know if bug reports for this module aren't yet welcome.

Just as the title Explains.
This is the console output :

python main.py -m inspector
[INFO ] Kivy v1.0.9-dev
[INFO ] [Logger ] Record log in /home/qua-non/.kivy/logs/kivy_11-11-07_58.txt
[DEBUG ] [Cache ] register with limit=None, timeout=60s
[DEBUG ] [Cache ] register with limit=1000, timeout=60s
[DEBUG ] [Cache ] register with limit=1000, timeout=60s
[INFO ] [Factory ] 99 symbols loaded
[DEBUG ] [Cache ] register with limit=None, timeout=Nones
[INFO ] [Text ] using as text provider
[DEBUG ] [Cache ] register with limit=None, timeout=60.0s
[INFO ] [Window ] using as window provider
[WARNING] [WinPygame ] Video: failed (multisamples=2)
[WARNING] [WinPygame ] trying without antialiasing
[INFO ] [GL ] OpenGL version <2.1 Mesa 7.11>
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] Shading version <1.20>
[INFO ] [GL ] Texture max size <8192>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Shader ] fragment compiled successfully
[INFO ] [Shader ] vertex compiled successfully
[DEBUG ] [ImagePygame ] Load
[DEBUG ] [Cache ] register with limit=500, timeout=60s
[INFO ] [Loader ] using as thread loader
[DEBUG ] [Modules ] Start with config {}
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[DEBUG ] [ImagePygame ] Load
[DEBUG ] [ImagePygame ] Load
[INFO ] [GL ] NPOT texture support is available
[INFO ] [OSC ] using for socket
[ERROR ] [Input ] MTDev is not supported by your version of linux
Traceback (most recent call last):
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/input/providers/__init__.py", line 36, in
from kivy.input.providers.mtdev import *
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/input/providers/mtdev.py", line 74, in
from kivy.lib.mtdev import Device, \
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/lib/mtdev.py", line 17, in
libmtdev = cdll.LoadLibrary('libmtdev.so.1')
File "/usr/lib64/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libmtdev.so.1: cannot open shared object file: No such file or directory
[DEBUG ] [Base ] Create provider from tuio,0.0.0.0:3333
[DEBUG ] [Base ] Create provider from mouse
[DEBUG ] [Base ] Create provider from probesysfs
[DEBUG ] [ProbeSysfs ] found device: Microsoft Microsoft® 2.4GHz Transceiver v8.0 at /dev/input/event4
[INFO ] [ProbeSysfs ] device match: /dev/input/event4
[INFO ] [ProbeSysfs ] unable to found provider mtdev
[INFO ] [ProbeSysfs ] fallback on hidinput
[INFO ] [HIDInput ] Read event from
[INFO ] [Base ] Start application main loop
[DEBUG ] [OSC ] Start thread <0.0.0.0:3333>
[INFO ] [OSC ] listening for Tuio on 0.0.0.0:3333
[DEBUG ] [ImagePygame ] Load
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/input/providers/hidinput.py", line 254, in _thread_run
fd = open(input_fn, 'rb')
IOError: [Errno 13] Permission denied: '/dev/input/event4'

Exception ValueError: 'list.remove(x): x not in list' in 'kivy.graphics.instructions.Instruction.rremove' ignored
[INFO ] [Inspector ] inspector activated
[DEBUG ] [ImagePygame ] Load
[DEBUG ] [ImagePygame ] Load
[INFO ] [Base ] Leaving application in progress...
[DEBUG ] [OSC ] Stop thread <0.0.0.0:3333>
[DEBUG ] [OSC ] Stop thread <0.0.0.0:3333> finished
Traceback (most recent call last):
File "main.py", line 95, in
kv_maker().run()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/app.py", line 430, in run
runTouchApp()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 428, in runTouchApp
EventLoop.window.mainloop()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/window_pygame.py", line 273, in mainloop
self._mainloop()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/window_pygame.py", line 188, in _mainloop
EventLoop.idle()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 280, in idle
self.dispatch_input()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 265, in dispatch_input
self.post_dispatch_input(etype, me)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 192, in post_dispatch_input
listener.dispatch('on_motion', etype, me)
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/__init__.py", line 572, in on_motion
self.dispatch('on_touch_up', me)
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/__init__.py", line 598, in on_touch_up
if w.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/modules/inspector.py", line 199, in on_touch_up
ret = super(Inspector, self).on_touch_up(touch)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 203, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 203, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 203, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/scrollview.py", line 358, in on_touch_up
super(ScrollView, self).on_touch_down(touch)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 185, in on_touch_down
if child.dispatch('on_touch_down', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/treeview.py", line 434, in on_touch_down
self.select_node(node)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/treeview.py", line 296, in select_node
node.is_selected = True
File "properties.pyx", line 145, in kivy.properties.Property.__set__ (kivy/properties.c:2181)
File "properties.pyx", line 165, in kivy.properties.Property.set (kivy/properties.c:2456)
File "properties.pyx", line 203, in kivy.properties.Property.dispatch (kivy/properties.c:2935)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/modules/inspector.py", line 358, in show_property
content = TextInput(text=value, multiline=True)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/textinput.py", line 168, in __init__
super(TextInput, self).__init__(**kwargs)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 104, in __init__
super(Widget, self).__init__(**kwargs)
File "event.pyx", line 91, in kivy.event.EventDispatcher.__init__ (kivy/event.c:1278)
File "properties.pyx", line 145, in kivy.properties.Property.__set__ (kivy/properties.c:2181)
File "properties.pyx", line 667, in kivy.properties.AliasProperty.set (kivy/properties.c:10743)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/textinput.py", line 1066, in _set_text
self._refresh_text(text)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/textinput.py", line 504, in _refresh_text
line_label = self._lines_labels[0]
IndexError: list index out of range

In addition,
when selecting the source of a Image, I get the following error:

python main.py -m inspector
[INFO ] Kivy v1.0.9-dev
[INFO ] [Logger ] Record log in /home/qua-non/.kivy/logs/kivy_11-11-07_59.txt
[DEBUG ] [Cache ] register with limit=None, timeout=60s
[DEBUG ] [Cache ] register with limit=1000, timeout=60s
[DEBUG ] [Cache ] register with limit=1000, timeout=60s
[INFO ] [Factory ] 99 symbols loaded
[DEBUG ] [Cache ] register with limit=None, timeout=Nones
[INFO ] [Text ] using as text provider
[DEBUG ] [Cache ] register with limit=None, timeout=60.0s
[INFO ] [Window ] using as window provider
[WARNING] [WinPygame ] Video: failed (multisamples=2)
[WARNING] [WinPygame ] trying without antialiasing
[INFO ] [GL ] OpenGL version <2.1 Mesa 7.11>
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] Shading version <1.20>
[INFO ] [GL ] Texture max size <8192>
[INFO ] [GL ] Texture max units <16>
[INFO ] [Shader ] fragment compiled successfully
[INFO ] [Shader ] vertex compiled successfully
[DEBUG ] [ImagePygame ] Load
[DEBUG ] [Cache ] register with limit=500, timeout=60s
[INFO ] [Loader ] using as thread loader
[DEBUG ] [Modules ] Start with config {}
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
[DEBUG ] [ImagePygame ] Load
[DEBUG ] [ImagePygame ] Load
[INFO ] [GL ] NPOT texture support is available
[INFO ] [OSC ] using for socket
[ERROR ] [Input ] MTDev is not supported by your version of linux
Traceback (most recent call last):
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/input/providers/__init__.py", line 36, in
from kivy.input.providers.mtdev import *
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/input/providers/mtdev.py", line 74, in
from kivy.lib.mtdev import Device, \
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/lib/mtdev.py", line 17, in
libmtdev = cdll.LoadLibrary('libmtdev.so.1')
File "/usr/lib64/python2.7/ctypes/__init__.py", line 431, in LoadLibrary
return self._dlltype(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 353, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libmtdev.so.1: cannot open shared object file: No such file or directory
[DEBUG ] [Base ] Create provider from tuio,0.0.0.0:3333
[DEBUG ] [Base ] Create provider from mouse
[DEBUG ] [Base ] Create provider from probesysfs
[DEBUG ] [ProbeSysfs ] found device: Microsoft Microsoft® 2.4GHz Transceiver v8.0 at /dev/input/event4
[INFO ] [ProbeSysfs ] device match: /dev/input/event4
[INFO ] [ProbeSysfs ] unable to found provider mtdev
[INFO ] [ProbeSysfs ] fallback on hidinput
[INFO ] [HIDInput ] Read event from
[INFO ] [Base ] Start application main loop
[DEBUG ] [OSC ] Start thread <0.0.0.0:3333>
[INFO ] [OSC ] listening for Tuio on 0.0.0.0:3333
[DEBUG ] [ImagePygame ] Load
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib64/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/input/providers/hidinput.py", line 254, in _thread_run
fd = open(input_fn, 'rb')
IOError: [Errno 13] Permission denied: '/dev/input/event4'

Exception ValueError: 'list.remove(x): x not in list' in 'kivy.graphics.instructions.Instruction.rremove' ignored
[INFO ] [Inspector ] inspector activated
[DEBUG ] [ImagePygame ] Load
[DEBUG ] [ImagePygame ] Load
[INFO ] [Base ] Leaving application in progress...
[DEBUG ] [OSC ] Stop thread <0.0.0.0:3333>
[DEBUG ] [OSC ] Stop thread <0.0.0.0:3333> finished
Traceback (most recent call last):
File "main.py", line 95, in
kv_maker().run()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/app.py", line 430, in run
runTouchApp()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 428, in runTouchApp
EventLoop.window.mainloop()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/window_pygame.py", line 273, in mainloop
self._mainloop()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/window_pygame.py", line 188, in _mainloop
EventLoop.idle()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 280, in idle
self.dispatch_input()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 265, in dispatch_input
self.post_dispatch_input(etype, me)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/base.py", line 192, in post_dispatch_input
listener.dispatch('on_motion', etype, me)
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/__init__.py", line 572, in on_motion
self.dispatch('on_touch_up', me)
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/__init__.py", line 598, in on_touch_up
if w.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/modules/inspector.py", line 199, in on_touch_up
ret = super(Inspector, self).on_touch_up(touch)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 203, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 203, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 203, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/scrollview.py", line 358, in on_touch_up
super(ScrollView, self).on_touch_down(touch)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 185, in on_touch_down
if child.dispatch('on_touch_down', touch):
File "event.pyx", line 204, in kivy.event.EventDispatcher.dispatch (kivy/event.c:2375)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/treeview.py", line 434, in on_touch_down
self.select_node(node)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/treeview.py", line 296, in select_node
node.is_selected = True
File "properties.pyx", line 145, in kivy.properties.Property.__set__ (kivy/properties.c:2181)
File "properties.pyx", line 165, in kivy.properties.Property.set (kivy/properties.c:2456)
File "properties.pyx", line 203, in kivy.properties.Property.dispatch (kivy/properties.c:2935)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/modules/inspector.py", line 358, in show_property
content = TextInput(text=value, multiline=True)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/textinput.py", line 168, in __init__
super(TextInput, self).__init__(**kwargs)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 104, in __init__
super(Widget, self).__init__(**kwargs)
File "event.pyx", line 91, in kivy.event.EventDispatcher.__init__ (kivy/event.c:1278)
File "properties.pyx", line 145, in kivy.properties.Property.__set__ (kivy/properties.c:2181)
File "properties.pyx", line 667, in kivy.properties.AliasProperty.set (kivy/properties.c:10743)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/textinput.py", line 1066, in _set_text
self._refresh_text(text)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/textinput.py", line 504, in _refresh_text
line_label = self._lines_labels[0]
IndexError: list index out of range