LabeoTech / Umit

universal mesoscale Imaging Toolbox
GNU General Public License v3.0
9 stars 3 forks source link

[BUG] Merge recordings #55

Closed G-Laliberte closed 1 year ago

G-Laliberte commented 1 year ago

Describe the bug Hi, I'm trying to merge some recording with the merge recordings utility tool from the app. When I try the start the add on with a loaded project the UmitToolbox windows close and I receive an error.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'UmitToolbox'
  2. Click on 'Utilities'
  3. Scroll down to 'Merge recordings'
  4. See error

error

> In MergeRecs/startupFcn (line 90)
In MergeRecs>@(app)startupFcn(app,varargin{:}) (line 617)
In appdesigner.internal.service/AppManagementService/tryCallback (line 184)
In appdesigner.internal.service/AppManagementService/runStartupFcn (line 157)
In matlab.apps/AppBase/runStartupFcn (line 43)
In MergeRecs (line 617)
In umIToolbox/MergerecordingsMenuSelected (line 2317)
In appdesigner.internal.service/AppManagementService/tryCallback (line 181)
In matlab.apps.AppBase>@(source,event)tryCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 37)
In matlab.ui.internal.controller/WebMenuController/fireActionEvent (line 67)
In matlab.ui.internal.controller/WebMenuController/handleEvent (line 55)
In matlab.ui.internal.controller.WebMenuController>@(varargin)obj.handleEvent(varargin{:}) (line 36)
In viewmodel.internal.factory.ManagerFactoryProducer>@(src,event)callback(src,viewmodel.internal.factory.ManagerFactoryProducer.convertStructToEventData(event)) (line 105) 
Error using matlab.ui.container.internal.model.TreeNodeManager/handleNodeEvent (line 89)
Unrecognized method, property, or field 'BeingDeleted' for class 'matlab.graphics.GraphicsPlaceholder'.

Error in matlab.ui.container.internal.model.TreeComponent/handleNodeEvent (line 559)
            obj.TreeNodeManager.handleNodeEvent(eventData);

Error in matlab.ui.container.internal.model.TreeComponent/handleDescendentRemoved (line 617)
            handleNodeEvent(obj, eventData);

Error in matlab.ui.container.TreeNode/validateParentAndState (line 358)
                oldTree.handleDescendentRemoved(obj);

Error in MergeRecs/startupFcn (line 90)
            copyobj(app.MainApp.Tree.Children, app.Tree, 'legacy')

Error in MergeRecs (line 617)
            runStartupFcn(app, @(app)startupFcn(app, varargin{:}))

Error in umIToolbox/MergerecordingsMenuSelected (line 2317)
            w = MergeRecs(app);

Error using matlab.ui.internal.controller.WebMenuController/fireActionEvent (line 67)
Error while evaluating Menu Callback.

thank you

BrunoOFSouza commented 1 year ago

@G-Laliberte, Unfortunately, I couldn't replicate the bug. I tried something in the commit c833331b8cdc18f2576fbcfad507ddead08f8c49. Can you give it a try and tell us if it failed/worked?

Also, what is the matlab release that you are currently running umIT?

Thanks,

G-Laliberte commented 1 year ago

I downloaded the new Matlab2022b, tried with the new files and it works, thank you!

I was using Matlab2021b.

BrunoOFSouza commented 1 year ago

Good! Thanks!