Skip to content
Jack Brookes edited this page Oct 19, 2020 · 14 revisions

Bugs

If you find a bug or something you think is not supposed to happen please check the Issues page for info, if it isn't listed, create a new issue!

NoSuchTrialException - There is no next trial

This error usually occurs in a few circumstances:

  1. Perhaps you are trying to run the first trial before generating your blocks and trials. Make sure you have written a method which generates your blocks and trials, and then add it to the On Session Start event. It is important to note the items listed in these events run in order, so it is important to make sure that you are not trying to run a trial before they have been generated. You can reorder the items by dragging. See this issue for more info.
  2. Perhaps you have some logic which tries to start the next trial immediately after ending one. This is problematic because when you are at the end of the trial list, there is no further trial to start. To avoid this, you can use session.BeginNextTrialSafe(), which only starts the next trial if one exists, otherwise does nothing.

API / Scripting compatibility

If you are having compiler errors, make sure you are using the following settings in Project Settings > Player.

Unity 2018.3 or newer:

  • Scripting Runtime Version .NET 4.x equivalent.
  • API Compatibility Level .NET 4.x.

Older than Unity 2018.3:

  • Scripting Runtime Version: Stable (.NET 3.5 equivalent).
  • API Compatibility Level .NET 2.0 (NOT subset).

Disabling the bottom bar in the UI (Info bar)

If you are not making a VR experiment you may want to disable the bottom bar that persists throughout. You are safe to do this by disabling the [UXF_Rig] > [UXF_UI] > InfoBar GameObject.

I am getting errors when selecting participants with the UI

Try to manually open the participant list and check if there are any duplicates or other errors. Or, delete and create a new participant list.

Verifying the settings of your trials & blocks

You can use the UXF Session Debugger to verify that your trial, blocks and settings are being generated correctly. To access it, use click the UXF menu at the top, and select UXF Session Debugger. It only works after you have started the session.

UXF Session Debugger

๐Ÿง  Core topics

โ“ More help


๐Ÿ‘ฉโ€๐Ÿ’ป Programming reference

Unit tests

Clone this wiki locally