How to reproduce:
Start PulseView, acquire samples via some LA, click "Save As", use foo.sr as filename. There will be a "Failed to save session. Error while saving." popup window.
In the xterm:
sr: session-file: Couldn't stat /home/uwe/foo.sr: No such file or directory
This seems to work file with sigrok-cli:
$ sigrok-cli -d fx2lafw -c samplerate=1mhz --samples 1m -o foo.sr
(PulseView can open that foo.sr fine)
The same "cannot save" problem also happens if you open an existing *.sr file in PulseView and try to (re-)save it under a different name, for example.
seems to be a bug sigrok::Session::begin_save and sigrok::Session::append . append finds no file to append to
Now the save dialog just locks up indefinitely. No crash any more.
Fixed in 7223eb629eb8eb3b03fa26b9f22770dd7f98c4d1 (implement file save via "srzip" output module) and e0e560a5b61ce41b1907d699911cae86a793d5d7.