Bug report OS 0.27~pre15
Bug: When running an experiment with the xpyriment backend, the experiment frequently aborts with the following error message and stack trace:
Traceback (most recent call last): File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libqtopensesame/qtopensesame.py", line 1343, in run_experiment exp.run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/experiment.py", line 303, in run self.items[self.start].run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/sequence.py", line 60, in run self.experiment.items[item].run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/loop.py", line 160, in run _item.run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/sequence.py", line 60, in run self.experiment.items[item].run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/loop.py", line 159, in run if _item.prepare(): File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/sequence.py", line 120, in prepare if not self.experiment.items[_item].prepare(): File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/plTraceback (most recent call last): File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libqtopensesame/qtopensesame.py", line 1343, in run_experiment exp.run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/experiment.py", line 303, in run self.items[self.start].run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/sequence.py", line 60, in run self.experiment.items[item].run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/loop.py", line 160, in run _item.run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/sequence.py", line 60, in run self.experiment.items[item].run() File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/loop.py", line 159, in run if _item.prepare(): File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/libopensesame/sequence.py", line 120, in prepare if not self.experiment.items[_item].prepare(): File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/plugins/fixation_dot/fixation_dot.py", line 77, in prepare self.c.fixdot(self._x, self._y) File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/openexp/_canvas/xpyriment.py", line 155, in fixdot stim = stimuli.Circle(16, colour=color, position=c2p((x,y))) AttributeError: 'module' object has no attribute 'Circle'ugins/fixation_dot/fixation_dot.py", line 77, in prepare self.c.fixdot(self._x, self._y) File "/home/daniel/Ubuntu One/opensesame-0.27~pre15/openexp/_canvas/xpyriment.py", line 155, in fixdot stim = stimuli.Circle(16, colour=color, position=c2p((x,y))) AttributeError: 'module' object has no attribute 'Circle'
(Platform: Ubuntu 12.04; but it also occurs under Windows 7)
Comments
Thanks for your report! The crash is likely due to the fact that you use an older version of Expyriment, in which there was no Circle stimulus. You're probably running from source on Windows 7, right?
On Ubuntu, you can get the latest version of Expyriment and OpenSesame from the smathot/cogscinl ppa:
On Windows it's probably easiest to use the pre-release package or get the latest Expyriment source from the Ubuntu PPA (trough View package details).
Cheers!
Check out SigmundAI.eu for our OpenSesame AI assistant!
I'm running on Ubuntu at the moment and your suggestion fixed the problem. Thanks!
I'll see how this fares on Windows a bit later.
Is the code of expyriment on code.google.com not the latest?
Platform: Ubuntu 12.04
Bug: Sometimes when an experiment is started in windowed mode and you switch to another window (outside OS) after which you switch back to the experiment window again, it does not register any key presses anymore (including ESC). You have to force quit OpenSesame or kill the experiment window with xkill
EDIT: It even happens at random at the start-up of the experiment. Without switching windows (or releasing the focus from the experiment window) the experiment simply does not register responses and gets stuck at the instructions screen. You can only exit by killing the window the hard way in this situation.
Bug: OpenSesame occasionally hangs when opening an experiment. At the moment you select a file and click on the Load button, OpenSesame freezes for a minute and then exits, after which the "send error feedback" window of Ubuntu appears
Not the 0.5.2 released version, no. OpenSesame relies on some new functionality. You can checkout the latest source, though, (if you have mercurial installed) with:
Regarding the bugs: That doesn't sound too good. Thanks I'll check it out!
Check out SigmundAI.eu for our OpenSesame AI assistant!
I haven't experienced this myself. Can you maybe trace it down further? I.e. does it happen with all backends? Is there a specific experiment that triggers the problem. Did this also happen with 0.26? I'm thinking it may have something to do with compiz, the effects layer used by Ubuntu. If you replace compiz by a non-compositing window manager, by running
does it still happen?
Hmm, I've never seen this either. If you start OpenSesame in a terminal, do you get any useful output? And, again. does it happen with a specific experiment, or does it appear to be completely random?
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks for you reply
>
>
I will try that. Will that however interfere with other Ubuntu windows too? As in, will it disable the compiz effects for desktop switching and such? As far as I noticed, this didn't happen with 0.26 (and the hang-ups on load did neither). Last grading session I loaded many experiments and that all went fine. In OS 0.27, it happens with legacy and expyriment backends (haven't tried psychopy)
I have been grading assignments all day, so I think about 90 files (21 students x 4 different experiments) "passed the revue". In 1 out of 10-15 file loads I got this hang-up and I haven't noticed a pattern yet. It hence appears to be completely random. I'll try to see what output I can get in a terminal; until now this has only been "Segmentation fault"
Yes, it will. But temporarily, just to find out if compiz causes the trouble. You can always switch back to compiz by logging out/in or by running
I'm not sure what the cause of these issues could be, and it's difficult to pin down if they don't occur on my system... Please let me know if you can get your hands on some potentially useful debugging output!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Platform: Win XP
Bug (sort of): The form_consent item works now, but at a resolution of 1024x768, the "I have read and understood the information above" checkbox label overlaps with the main text (the word uncomfortable). Additionally, when you run the experiment in full screen, you don't get to see the consent form at all; you only get a black screen with a mouse cursor. Once you click anywhere in that black screen with your mouse, you get to see the consent form for a couple of frames, after which the screen goes black again.
Bug: The not listening to responses from the very start of the experiment (earlier described for Ubuntu) also occurs on Windows XP. I am stuck in the first instructions screen and it doesn't continue when pressing space. I have to kill OpenSesame in the task manager to stop the experiment (or close the command line box from which I am running). I therefore don't think this problem is caused by compiz in Ubuntu. I also do not get to see any useful debugging output in the console (running with --debug) when this lock out happens. The next couple of times the experiment is rerun, it works fine from beginning to end, so it is unlikely an infinite loop in my code.
Bug: This is kind of a major one: when an experiment successfully finishes or you press ESC to exit during the experiment, the experiment window closes, after which your mouse cursor gets 'stuck' in the middle of the screen. You are unable to move your mouse cursor and have to press CTRL-ALT-DEL to get control back (and just press 'cancel' in the windows security dialog). Clicking still seems to be registered while the mouse can't be moved. So far, this has happened after every run of various experiments (so no random occurences here)
Edit: Does not seem to occur on Windows 7; only Windows XP
Edit 2: Seems only to occur after experiments that were run in windowed mode. After a fullscreen experiment is finished the problem does not occur.
Thanks again! I'm going to look into it. Just one quick question: Are you running from source (and, if so, which versions of the relevant modules are you using), or do you use the pre-release binary?
Check out SigmundAI.eu for our OpenSesame AI assistant!
I'm running from source. modules() gives the following output:
I see that my version of PyQt4 is hopelessly outdated. I updated it to 4.9.5, but the problem still occurs... The strange thing is that it only occurs after an experiment exits that was run with the testrun button. Normal windowed or fullscreen experiments show no problems of this kind.
Edit: It does also occur after an experiment that was run in normal windowed mode exits. So with all windowed modes the problem occurs, but with the fullscreen mode it doesn't
The problem of the frozen mouse cursor also occurs when I run OpenSesame 0.26 from source (the distributed version runs fine). I therefore think the problem is specific to the configuration of my machine and not a bug in OpenSesame 0.27.
Platform: Win XP
Bug: Trying to run (any) experiment with the psychopy backend results in the following error as soon as the experiment starts (you do not get to see the window):
Thanks, again!
My guess is, though, that (as you mentioned yourself) that most of these problems result from your configuration, which has a few older versions of the various packages installed. Perhaps you could check if the problems occur as well with the pre-release as packaged?
And/ or you could update all the relevant packages. In the environment that I use to build the pre-release, the packages are as follows (also note NumPy, which is not listed by modules() but may be relevant).
Cheers!
Check out SigmundAI.eu for our OpenSesame AI assistant!
My numpy version is 1.6.1.
I can confirm that the problem is caused by my source environment. I had another installation of Python 2.6 that I forgot about, and ran OS 0.27-pre15 with that version. The problem of the frozen mouse cursor did not occur.
The thing is that my python 2.7 environment (which I also use for OpenSesame) was installed by Python(x,y) and I don't dare to make that many changes to it as this might damage the 'ecology' of the suite. Updating the PyQt packages already caused some weird error messages in spyder's console (although everything still worked fine). Python(x,y) (peculiarly) does not allow a separate python 2.7 installation beside its own. Luckily there will be an update of Python(x,y) soon, in which they bump all the packages to its latest versions. I will install it after its release and test again for this problem. For now, you can mark this one down as not a bug of OpenSesame (one down, a only a few to go...)
The keyboard lockout on start-up however does occur in different installations (Ubuntu, Win 7, Win XP) so probably is not caused by my specific python environment..
Cheers!