cortex-lab / Rigbox

A MATLAB toolbox for running behavioral neuroscience experiments and managing data
GNU General Public License v3.0
33 stars 16 forks source link

Installation issue #307

Open moraogando opened 3 years ago

moraogando commented 3 years ago

Describe the bug A clear and concise description of what the bug is. Feel free to paste in the error that was printed to the MATLAB command window.

Hi there, this toolboox seems super cool! I'm having some issues trying to set it up though. It's possible that there's nothing wrong with the code but in stead I'm missing something, as I'm not a programmer. I wonder if you could help me out! I already installed Rigbox in my future SC, but when I try to do the same for the master computer I have problems. I installed all the dependencies and I didn't get warnings when I did addRigboxPaths().

I type "eui.SignalsTest' and the gui opens as expected, but I get the following error upon trying to start pong experiment:

eui.SignalsTest PTB-INFO: Using modified PortAudio V19.6.0-devel, revision unknown

ans =

SignalsTest with properties:

      Hardware: [1×1 struct]
           Ref: '2020-10-11_1_test'
LoggingDisplay: [1×1 UIControl]
      LivePlot: off
  ShowExpPanel: on
  SingleScreen: off
    Experiment: [0×0 exp.test.Signals]
   ParamEditor: [1×1 eui.ParamEditor]
   LivePlotFig: [0×0 Figure]
      ExpPanel: [0×0 eui.ExpPanel]
     IsRunning: 0

Warning: No gamma calibration available Compiling all shaders matching C:\Users\UserName\Documents\MATLAB\Github\Rigbox\signals+vis\slimshady * into a GLSL program. Building a fragment shader:Reading shader from file C:\Users\UserName\Documents\MATLAB\Github\Rigbox\signals+vis\slimshady.frag ... Building a vertex shader:Reading shader from file C:\Users\UserName\Documents\MATLAB\Github\Rigbox\signals+vis\slimshady.vert ... ExpPanel destructor called Warning: The following error was caught while executing 'eui.ExpPanel' class destructor: Dot indexing is not supported for variables of this type.

Error in eui.ExpPanel/delete (line 199) if obj.Root.isvalid

Error in eui.ExpPanel.live (line 149) p = eui.SignalsExpPanel(parent, ref, params, logEntry);

Error in eui.SignalsTest/init (line 547) obj.ExpPanel = eui.ExpPanel.live(obj.ExpPanelBox, obj.Ref, obj.DummyRemote, p, 0);

Error in eui.SignalsTest/startStopExp (line 352) obj.init

Error in eui.SignalsTest>@(~,~)obj.startStopExp(obj.Ref) (line 461) 'Callback', @(~,~)obj.startStopExp(obj.Ref));

In eui/ExpPanel/live (line 149) In eui/SignalsTest/init (line 547) In eui/SignalsTest/startStopExp (line 352) In eui.SignalsTest>@(~,~)obj.startStopExp(obj.Ref) (line 461) Error using uiextras.BoxPanel Cannot define property 'Enable' in class 'BoxPanel' because the property has already been defined in the superclass 'Panel'.

Error in eui.ExpPanel/build (line 525) obj.Root = uiextras.BoxPanel('Parent', parent,...

Error in eui.ExpPanel (line 188) obj.build(parent);

Error in eui.SignalsExpPanel (line 40) obj = obj@eui.ExpPanel(parent, ref, params, logEntry);

Error in eui.ExpPanel.live (line 149) p = eui.SignalsExpPanel(parent, ref, params, logEntry);

Error in eui.SignalsTest/init (line 547) obj.ExpPanel = eui.ExpPanel.live(obj.ExpPanelBox, obj.Ref, obj.DummyRemote, p, 0);

Error in eui.SignalsTest/startStopExp (line 352) obj.init

Error in eui.SignalsTest>@(~,~)obj.startStopExp(obj.Ref) (line 461) 'Callback', @(~,~)obj.startStopExp(obj.Ref));

Error while evaluating UIControl Callback.

To Reproduce Steps to reproduce the behavior. Be as specific as possible. Does the error always occur? Are there similar steps that don't produce the error, or is it specific to a particular experiment?

Every time unfortunately

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If GUI related, add screenshots to help explain your problem.

Desktop (please complete the following information):

version 2.4.0 (https://github.com/cortex-lab/Rigbox/releases/tag/2.4.0)

MATLAB 2020b

moraogando commented 3 years ago

I think it's a Matlab version issue, I switched to MATLAB 2020a and now it works just fine!

k1o0 commented 3 years ago

Great, thanks for letting me know. I'll look into adding support for MATLAB 2020b in the next release. If you encounter other issues consider moving to the v2.6 branch.

k1o0 commented 3 years ago

Just to let you know I've discovered an issue (#312) with the new version of Rigbox (2.6.0) on MATLAB 2020. I'm working on a fix but for now please make sure you don't update if you're on 2020a.

moraogando commented 3 years ago

Thanks for the update! Will do