Scopehal

From John's wiki
Jump to navigation Jump to search
-------------------
Mon Dec 29 17:08:17 [bash:5.2.15 jobs:0 error:0 time:12]
jj5@proviso:/home/jj5/repo/git/github/ngscopeclient
$ ls
scopehal  scopehal-apps
-------------------
[Monday, 15 December 2025] [7:56:22 AM AEDT] <jj5>      I have installed v0.1 on Debian 12 from the deb file. when I run ngscopeclient I get this printed three times:
[Monday, 15 December 2025] [7:56:24 AM AEDT] <jj5>      libpng warning: iCCP: known incorrect sRGB profile
[Monday, 15 December 2025] [7:56:33 AM AEDT] <jj5>      then I get this printed perpetually:
[Monday, 15 December 2025] [7:56:41 AM AEDT] <jj5>      ERROR: RigolOscilloscope::GetInterleaveConflicts not implemented for this model
[Monday, 15 December 2025] [7:57:01 AM AEDT] <jj5>      my scope is Rigol MSO5074 connected by IP address and port (5555)
[Monday, 15 December 2025] [7:57:22 AM AEDT] <jj5>      is there any move I can make to get my equipment to work with ngscopeclient?
[Monday, 15 December 2025] [8:00:03 AM AEDT] <jj5>      also it would be helpful if ngscopeclient supported --version and --help command-line options
[Monday, 15 December 2025] [9:10:24 AM AEDT] <azonenberg>       jj5: So, v0.1 is pretty out of date now. It's the latest release but 0.1.1 will be coming out very soon (I'm probably tagging a RC today or tomorrow)
[Monday, 15 December 2025] [9:10:47 AM AEDT] <azonenberg>       The libpng warnings are safe to ignore, one of the icons has bad sRGB config and i havent had time to track down which one it is and re-encode the file 
[Monday, 15 December 2025] [9:11:33 AM AEDT] <azonenberg>       There is a big upgrade to the Rigol stack in https://github.com/ngscopeclient/scopehal/pull/1017 that is probably going to be getting merged soon, not yet sure if it will make it into 0.1.1 or if it'll wait for 0.2
[Monday, 15 December 2025] [9:11:54 AM AEDT] <jj5>      azonenberg: good to know. thanks!
[Monday, 15 December 2025] [4:59:36 PM AEDT] <jj5>      I compiled and installed master and now I get:
[Monday, 15 December 2025] [4:59:50 PM AEDT] <jj5>      ERROR: Invalid memory depth for channel: 1397170226
[Monday, 15 December 2025] [4:59:50 PM AEDT] <jj5>      ERROR: RigolOscilloscope::GetSampleDepthsInterleaved not implemented for this model
[Monday, 15 December 2025] [4:59:50 PM AEDT] <jj5>      Segmentation fault (core dumped)
[Monday, 15 December 2025] [5:01:24 PM AEDT] <azonenberg>       ok yeah that doesnt sound good. Can you try with the version in PR 1017 and see if that's any better? If not, please open a new bug ticket
[Monday, 15 December 2025] [5:02:09 PM AEDT] <jj5>      sure thing
[Monday, 15 December 2025] [5:06:48 PM AEDT] <jj5>      I can't find PR 1017, is that number correct?
[Monday, 15 December 2025] [5:09:40 PM AEDT] <azonenberg>       yeah it's against scopehal not scopehal-apps since it's a driver update https://github.com/ngscopeclient/scopehal/pull/1017
[Monday, 15 December 2025] [5:10:25 PM AEDT] <azonenberg>       if that doesn't fix your problem, please file a bug against scopehal (not -apps, this is clearly a driver/backend issue and not the gui)
[Monday, 15 December 2025] [5:11:20 PM AEDT] <jj5>      after I compile scopehal how do I get scopehal-apps to use the new driver version?
[Monday, 15 December 2025] [5:14:36 PM AEDT] <azonenberg>       scopehal-apps pulls in scopehal as a submodule
[Monday, 15 December 2025] [5:14:56 PM AEDT] <azonenberg>       so you'll want to check out scopehal-apps then go to the lib directory and pull the updated version into there
[Monday, 15 December 2025] [5:15:01 PM AEDT] <azonenberg>       and then recompile
[Monday, 15 December 2025] [5:20:48 PM AEDT] <jj5>      got it. thanks. I will let you know how I go.
[Monday, 15 December 2025] [6:38:08 PM AEDT] <jj5>      yeah same problem. I opened a ticket. please let me know if I can assist.
[Monday, 15 December 2025] [6:42:10 PM AEDT] <azonenberg>       Can you add a stack trace? Core dumps from a self-compiled build are of limited use because i don't think it will easily map to debug symbols
[Monday, 15 December 2025] [6:43:30 PM AEDT] <jj5>      I don't know how to add a stack trace. but if you point me in the right direction I can try to get it done.
[Monday, 15 December 2025] [6:43:42 PM AEDT] <azonenberg>       open the core dump in gdb and run "bt"
[Monday, 15 December 2025] [6:43:54 PM AEDT] <jj5>      ok
[Monday, 15 December 2025] [6:53:35 PM AEDT] <azonenberg>       interesting the actual crash path is in ngscopeclient. So maybe the driver is doing something confusing the GUI. I'll gid into it and see what i can find
[Monday, 15 December 2025] [6:53:41 PM AEDT] <azonenberg>       dig*
[Monday, 15 December 2025] [6:54:09 PM AEDT] <jj5>      azonenberg: good luck! I am off to bed now so I will check back tomorrow.
[Monday, 15 December 2025] [6:59:05 PM AEDT] <azonenberg>       I'm getting ready for bed soon too. I'm pretty confident i can at least add a fix for whatever edge case in the gui the driver is triggering to avoid the crash
[Monday, 15 December 2025] [6:59:14 PM AEDT] <azonenberg>       but that won't fix the root cause of the driver sending bad data