Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] Openseasme crash when font size is a variable

edited April 2015 in OpenSesame

Hi

I'm using the new version on Windows 8.1.
I tried to define font size as a variable in a sketchpad like that:

image

Right after clicking OK I get the following msg:
image

and then the software crashes...

I tried using another variable name
and also to change the back-end to legacy,
but it didn't work

I'll really appreciate any help

Thanks

Tali

Comments

  • edited 4:10AM

    Hi Tali,

    I seems like you want to set the fontsize based on the experimental condition, is that right? (Rather than having the same font size all the time; because in that case you could simply change it in the upper item ('general properties') of the overview window).

    So, it seems that "[Size_p1]" doesn't provide the font_size parameter with a normal numerical value. What you could try (if Size_p1 is in fact a variable with a numerical value) is font_size = self.get('Size_p1'), or fontsize = exp.get('Size_p1'). Also, I don't know what's stored in this variable but just [Size_p1] without the " "'s might work as well.

    Be aware that your text input "[Num_p1]" might cause the same problem.

    Hope this helps, let me know if this is not the case!

    Cheers,

    Josh

  • edited March 2015

    Hi Josh
    Thank you so much for your response!

    Yes- I want the font size to change throughout the experiment.
    Size_p1 is indeed a numerical value.

    I tried all the options and still I get the same msg and the experiment crashes.
    Num_p1 works without any problems, and so does playing with the color of the font.
    This looks specific to font size.

    Here is a link to the experiment if that help:
    (The different font is in the sketchpad called "target")

    https://www.dropbox.com/s/5wc69pma7can98o/Ordinality_Symbolic_numerical.opensesame?dl=0

    Thanks again!

    Tali

  • edited 4:10AM

    Hi Tali,

    This type of error (without a Python stacktrace) indicates a crash somewhere 'deep down' in the libraries that OpenSesame uses. It's not something that you're doing wrong--it should never happen.

    Is this a problem that is easily reproducible, also on other systems? If so, could you provide some basic steps that allow us to reproduce the issue? That way we can find out what's going on and possibly work around it.

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • edited March 2015

    Hi Sebastiaan

    It worked on Mac (2.9.3 while I'm using windows 8 with 2.9.4).
    I tried 2.9.3 on windows 8 and got the same results...

    On windows, it is easily reproducible:

    • define font size as a variable in a loop
    • create a "text box" in sketchpad from a sequence the loop is running
    • in "edit" replace the font size with the name of the variable.
      after pressing "ok" the experiment will crash...

    here is the most basic way to do it:
    https://www.dropbox.com/s/48w9cs2n2dnxfpf/crash example.opensesame?dl=0

    Thanks!

    Tali

  • edited 4:10AM

    Hi Tali,

    Thanks for the clear description. Turns out it was a combination of a bug in OpenSesame, which would normally give a useful error message, and a panic attack of one of the underlying libraries. It should be fixed as of the next prerelease of 2.9.5 (>= pre9), which I may upload later today.

    Thanks again!

    Cheers,
    Sebastiaan

    There's much bigger issues in the world, I know. But I first have to take care of the world I know.
    cogsci.nl/smathot

  • edited 4:10AM

    Thank you so much Sebastiaan!!
    I started to think I might have to run this experiment with e-prime :-S

  • edited 4:10AM

    It's working perfectly with the new version! =D>

Sign In or Register to comment.