ngscopeclient / scopehal-apps

ngscopeclient and other client applications for libscopehal.
https://www.ngscopeclient.org/
BSD 3-Clause "New" or "Revised" License
608 stars 100 forks source link

Windows recentfiles.yml YAML::ParserException at startup #460

Closed bvernoux closed 1 year ago

bvernoux commented 2 years ago

Windows recentfiles.yml YAML::ParserException at startup (even with latest build) Return error terminate called after throwing an instance of 'YAML::ParserException' what(): yaml-cpp: error at line 2, column 42: bad character found while scanning hex number

Path C:\Users\xxx\AppData\Roaming\glscopeclient\recentfiles.yml is not formatted correctly See content of the file

file0:
    path: "D:\_proj\__Lab_Tools\USB3_USB2HS_Gigabit\CH569\wch-ch569-serdes\CH1_TXSTATE_Ch2_RXIRQ_UART_CH4_SerDes_180Mbps\CH1_TXSTATE_Ch2_RXIRQ_UART_CH4_SerDes_180Mbps.bin.scopesession"
    timestamp: 1659296109

Solution until it is fixed is to remove that recentfiles.yml before to launch glscopeclient

azonenberg commented 2 years ago

Can you take a look at OscilloscopeWindow.cpp:4768 and see if escpath is properly escaped? The code looks fine to me but I don't have a Windows box to test on.

bvernoux commented 2 years ago

The issue seems related to length of path+file It is not really clear so far as with shorter path it works

bvernoux commented 1 year ago

Issue closed as it cannot be reproduced and was not related to scopehal-apps