Closed Hboni closed 1 year ago
I think this is fixed. The problem was in opening gzipped .bvproc
files (using the minf reader), which did not open files in text mode with the correct encoding.
I have also catched exceptions in a few GUI callbacks so that the whole brainvisa application does not crash if an error (like missing or unreadable .bvproc
file) occurs.
History files were correct all the time, so they are not lost.
@Hboni cann you tell if it's fixed for you too ?
Thanks! I can see some history, but I have also some history that crash my brainvisa with this error :
Traceback (most recent call last):
File "/casa/host/build/python/brainvisa/processing/qt4gui/neuroProcessesGUI.py", line 3443, in executionNodeChanged
if item._node._selected != item.isOn() \
File "/casa/host/build/python/brainvisa/processing/qt4gui/neuroProcessesGUI.py", line 1533, in isOn
return int(Qt.ItemIsEnabled & self.flags()) > 0
TypeError: unsupported operand type(s) for &: 'ItemFlag' and 'ItemFlags'
Fatal Python error: Aborted
In this example I wanted to look at the history of file from the database_browser, or when trying to open .bvproc from history_book.
Can you test with the last modif please ?
It works! It's awesome, I can dig into old history, thanks a lot! :+1:
I was maybe too enthusiast, it worked for multiple bvproc history files, but it appears that some make my brainvisa crash with this error:
Traceback (most recent call last):
File "/casa/host/build/python/brainvisa/processing/qt4gui/neuroProcessesGUI.py", line 3443, in executionNodeChanged
if item._node._selected != item.isOn() \
AttributeError: 'QTreeWidgetItem' object has no attribute '_node'
Fatal Python error: Aborted
I sent you by mail a bvproc which generate this error, in case it helps.
Well, I can't reproduce this error, it seems to happen in some kinds of dynamic pipelines which I don't have at hand, but I have tried a little fix. Can you try again please ?
Yeah, it was for example a morphologist pipeline. With your lasts modifications, the bvproc open correctly! Thanks again!
Describe the bug I wanted to see what process was run in a brainvisa database, with the history book activated, going through the database browser to look ad bv_proc in history_book folder. When I right-click on the bvproc to see it, brainvisa die with error:
To Reproduce Steps to reproduce the behavior:
Data Management
>Database browser
Expected behavior Already run process open.
Environment: