tito/kivy — Issue #277: scrollview Example doesn't scroll
Author: akshayaurora
Created: 2011-10-18 21:22:06+00:00
State: open

a). ScrollView.py example in the examples directory doesn't scroll.

b.)scrollview itself seems to work in my app but when on_touch up
is called berkelium(inside the scrollview) seems to crash

Here is the console output:

python main.py
[INFO ] Kivy v1.0.8-dev
[INFO ] [Logger ] Record log in /home/qua-non/.kivy/logs/kivy_11-10-19_10.txt
[INFO ] [Factory ] 98 symbols loaded
[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 ] [Text ] using as text provider
[DEBUG ] [Cache ] register with limit=500, timeout=60s
[INFO ] [Loader ] using as thread loader
[DEBUG ] Searching for new extension in ['/mnt/Data2/multitouch/MT__code/kivy/kivy/extensions', '/home/qua-non/.kivy/extensions']
[DEBUG ] [Extension found for 'berkelium']
None
/home/qua-non/.kivy/extensions/berkelium_1.1/berkelium
('', '', 5)
[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 ] [Image ] Load
[DEBUG ] [Image ] Load <./data/images/background/background_overlay_top.png>
[DEBUG ] [Image ] Load <./data/images/background/background_overlay_down.png>
[DEBUG ] [Image ] Load
[DEBUG ] [Image ] Load <./data/images/upper_left_corner/info.png>
[DEBUG ] [Image ] Load <./data/images/upper_left_corner/ticket.png>
[DEBUG ] [Image ] Load <./data/images/button_white.png>
[DEBUG ] [Image ] Load <./data/images/upper_left_corner/contactus.png>
[6951:6951:1925744926:ERROR:chrome/browser/process_singleton_linux.cc(276)] Failed to create /home/qua-non/.kivy/extensions/berkelium_1.1/berkelium/data/SingletonLock: File exists
[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
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'

[DEBUG ] [Window ] Resize window to (1866, 1065)
[DEBUG ] [Image ] Load <./data/images/particle.png>
[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 186, in
mainFrameWorkApp().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 424, in runTouchApp
EventLoop.window.mainloop()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/core/window/window_pygame.py", line 269, 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 273, in idle
Clock.tick()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/clock.py", line 271, in tick
self._process_events()
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/clock.py", line 377, in _process_events
if event.tick(self._last_tick) is False:
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/clock.py", line 190, in tick
ret = callback(self._dt)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/scrollview.py", line 212, in _do_touch_up
super(ScrollView, self).on_touch_up(touch)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 284, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 132, in kivy.event.EventDispatcher.dispatch (kivy/event.c:1590)
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/scatter.py", line 426, in on_touch_up
if super(Scatter, self).on_touch_up(touch):
File "/mnt/Data2/multitouch/MT__code/kivy/kivy/uix/widget.py", line 284, in on_touch_up
if child.dispatch('on_touch_up', touch):
File "event.pyx", line 132, in kivy.event.EventDispatcher.dispatch (kivy/event.c:1590)
File "/home/qua-non/.kivy/extensions/berkelium_1.1/berkelium/__init__.py", line 538, in on_touch_up
self._touches.remove(touch)
ValueError: list.remove(x): x not in list