media player error message
Hi all,
I guess I'm missing something. I have two problems:
I opened an older experiment in the new OpenSesame. The new one didn't show my media player vlc icon, so I put in the new icon (which is not the vlc). But it still wanted to find the VLC, although it was nowhere in the sequence already. It doesn't want to run with the new icon.
To solve this problem I deleted the VLC icon in the old experiment in the old OS version and I opened it in the new version without any video icon. After that I've put the new icon in the new version but it still sends me the error message. I copy it here:
Unexpected error
item-stack: TomFocus[run].practice[run].gyak[run].pract_loop_2[run].pract_sequence_6[run].new_media_player_mpy_1[run]
exception message: exception: access violation reading 0x0D0ED000
time: Mon Sep 26 16:59:00 2016
exception type: WindowsError
Traceback:
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\misc\process.py", line 140, in run
exp.run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 414, in run
self.items.execute(self.var.start)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 89, in execute
self.run(name)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 104, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 51, in run
self.experiment.items.run(_item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 104, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\loop.py", line 318, in run
self.experiment.items.execute(self._item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 89, in execute
self.run(name)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 104, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 51, in run
self.experiment.items.run(_item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 104, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\loop.py", line 318, in run
self.experiment.items.execute(self._item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 89, in execute
self.run(name)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 104, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 51, in run
self.experiment.items.run(_item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 104, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\media_player_mpy\media_player_mpy.py", line 204, in run
self.handler.prepare_for_playback()
File "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\media_player_mpy\handlers\opengl_renderer.py", line 48, in prepare_for_playback
0, GL.GL_RGB, GL.GL_UNSIGNED_BYTE, img.tostring())
File "latebind.pyx", line 32, in OpenGL_accelerate.latebind.LateBind.__call__ (src\latebind.c:989)
File "wrapper.pyx", line 311, in OpenGL_accelerate.wrapper.Wrapper.__call__ (src\wrapper.c:6439)
WindowsError: exception: access violation reading 0x0D0ED000
Thanks a lot for your help!
Viola
Comments
Hi Viola,
The quick answer is that you can install the
opensesame-plugin-media_player_vlc
package in OpenSesame 3.1 by entering the following in the debug window:See also:
Other than that, there seems to be a problem with the
media_player_mpy
. @dschreij, any idea?Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Looks like a low-level OpenGL error which we can't do much about. I've had those, and as silly as it sounds, restarting your computer might help. If it doesn't, this might be a videocard/-driver related issue, so updating drivers may help.
Thanks, guys, for the advices. After all I tried it on a different computer, running Win 10. I still got different error messages (eg. WindowsError: exception: access violation reading 0x13245000). In the practice trials I had mp4 videos and, in the test trial I had avi-s. I killed the mp4-s and now it runs. I don't know which advise helped but I'm satisfied either way. Thanks for your great programme!
I tried to install the media player using the debug window (Lubuntu 16, 64 bits), but I get the following error message:
_ Downloading mediadecoder-0.1.5-py2-none-any.whl
Collecting moviepy (from mediadecoder->opensesame-plugin-media_player_mpy)
Downloading moviepy-0.2.2.11.tar.gz (107kB)
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 328, in run
wb.build(autobuilding=True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 577, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 810, in unpack_url
hashes=hashes
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 649, in unpack_http_url
hashes)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 871, in _download_http_url
_download_url(resp, link, content_file, hashes)
File "/usr/lib/python2.7/dist-packages/pip/download.py", line 577, in _download_url
progress_indicator = DownloadProgressBar(max=total_length).iter
File "/usr/lib/python2.7/dist-packages/pip/utils/ui.py", line 158, in init
super(WindowsMixin, self).init(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/utils/ui.py", line 82, in __init__
super(InterruptibleMixin, self).__init__(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/utils/ui.py", line 118, in __init__
super(DownloadProgressMixin, self).__init__(*args, **kwargs)
File "/usr/share/python-wheels/progress-1.2-py2.py3-none-any.whl/progress/helpers.py", line 58, in __init__
if self.file.isatty() and self.hide_cursor:
AttributeError: 'fallback_console' object has no attribute 'isatty'
_
I have also tried to install the media player manually and place it in the plugin folder. While the plugin shows up in the plugin manager, no icons appear in the main window. I have tried all three media players and I got none to work. Would there be anything else I could try (except for using Windows?).
Thanks!
This error seems to be related to the python packaging system itself. Have you tried updating those? You probably want to stick to the versions provided by your distro's repository, but if you don't really mind you could also see if you could upgrade them using pip
(yes it is weird to upgrade pip with pip, but this is the way to do it).
After this, try to execute the command again, and let us know if it works.