cirorandazzo / evsonganaly

Audio segmentation & labeling software developed in Brainard Lab at UCSF.
0 stars 0 forks source link

labels from last file are maintained when moving to next file #3

Open cirorandazzo opened 1 month ago

cirorandazzo commented 1 month ago

have not been able to replicate

cirorandazzo commented 1 month ago

"weird visual bug again with the labels" -thad

cirorandazzo commented 20 hours ago

encountered this issue. happened with following steps:

  1. Start ESA
  2. Skip2File, select file ~ 1/2way down list
  3. use back file button (potentially while file still loading?)

Bug image: image

Console output (note: I don't know if these errors are related):

>> evsonganaly
Warning: Error updating Text.

 String scalar or character vector must have valid interpreter syntax:
\\macaw.ucsf.edu\users\public\callback experiments\HVC\_pharmacology\pk44rd13\20240930-d2-saline-3h\pk44rd13-d2-3h later2024930141057-Block5.wav

> In defaulterrorcallback (line 12)
In replotSegments (line 13)
In PlotDataFile (line 181)
In evsonganaly>evsonganaly_OpeningFcn (line 120)
In gui_mainfcn (line 221)
In evsonganaly (line 45) 
Warning: Error updating Text.

 String scalar or character vector must have valid interpreter syntax:
\\macaw.ucsf.edu\users\public\callback experiments\HVC\_pharmacology\pk44rd13\20240930-d2-saline-3h\pk44rd13-d2-3h later202493014641-Block1.wav

> In defaulterrorcallback (line 12)
In replotSegments (line 13)
In PlotDataFile (line 181)
In evsonganaly>SkipToFileBtn_Callback (line 933)
In gui_mainfcn (line 96)
In evsonganaly (line 45)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)evsonganaly('SkipToFileBtn_Callback',hObject,eventdata,guidata(hObject))
In PlotDataFile (line 231)
In evsonganaly>evsonganaly_OpeningFcn (line 120)
In gui_mainfcn (line 221)
In evsonganaly (line 45) 
Warning: Error updating Text.

 String scalar or character vector must have valid interpreter syntax:
\\macaw.ucsf.edu\users\public\callback experiments\HVC\_pharmacology\pk44rd13\20240930-d2-saline-3h\pk44rd13-d2-3h later2024930141057-Block5.wav

> In defaulterrorcallback (line 12)
In replotSegments (line 13)
In PlotDataFile (line 181)
In evsonganaly>PrevFileBtn_Callback (line 239)
In gui_mainfcn (line 96)
In evsonganaly (line 45)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)evsonganaly('PrevFileBtn_Callback',hObject,eventdata,guidata(hObject))
In uiwait (line 81)
In evsonganaly>evsonganaly_OpeningFcn (line 133)
In gui_mainfcn (line 221)
In evsonganaly (line 45) 
Warning: Error updating Text.

 String scalar or character vector must have valid interpreter syntax:
\\macaw.ucsf.edu\users\public\callback experiments\HVC\_pharmacology\pk44rd13\20240930-d2-saline-3h\pk44rd13-d2-3h later2024930141057-Block5.wav

> In defaulterrorcallback (line 12)
In replotSegments (line 13)
In PlotDataFile (line 181)
In evsonganaly>PrevFileBtn_Callback (line 239)
In gui_mainfcn (line 96)
In evsonganaly (line 45)
In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)evsonganaly('PrevFileBtn_Callback',hObject,eventdata,guidata(hObject))
In uiwait (line 81)
In evsonganaly>evsonganaly_OpeningFcn (line 133)
In gui_mainfcn (line 221)
In evsonganaly (line 45) 
cirorandazzo commented 19 hours ago

Further information: when i spam back file button & turn on pause on errors, breaks at point shown in the image.

Maybe one thread is running into this point when another thread has deleted handles.LABELTAGS?

If that's the case, some resolutions could be:

  1. add try statement here, to pass when handles.LABELTAGS doesnt exist
  2. block buttons while replotting labels (would make switching between files slow when hitting >> button several times.)
  3. delay before actually plotting labels

image

cirorandazzo commented 19 hours ago

further update: file switch buttons do in fact grey out when switching files, but i think there's a delay.