Test and Measurement Forum

Running->Stopped bug

Discussion forum for the new Picoscope Linux software

Re: Running->Stopped bug

Postby Hitesh » Mon Sep 05, 2016 4:14 pm

Hi Daniel,

I have responded via your e-mail support ticket. We have previously been able to reproduce the problem here and the Development team have already been notified about the issue.

I hope to provide an update once we have any further information.

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Running->Stopped bug

Postby element » Thu Sep 15, 2016 3:35 am

After trying a bunch of things it seems to be working again. I'm not sure what fixed it or if it is fixed permanently, time will tell. Here is what I did:
- Uninstalled picoscope with "sudo apt remove picoscope"
- Uninstalled dependencies with "sudo apt autoremove"
- Installed older version of Picoscope by downloading individual packages (libpicoipp, libpl1000, libps2000, libps2000a, libps3000, libps3000a, libps4000, libps4000a, libps5000, libps5000a, libps6000, libusbdrdaq, and picoscope) from https://labs.picotech.com/debian/pool/main/ from around January 2015 and installing with "sudo dpkg -i *.deb"
- Marked picoscope to hold at older version: "sudo apt-mark hold picoscope"
- Installed older picoscope dependencies: "sudo apt -f install"
- Discovered that older picoscope would not detect my PicoScope 2205MSO hardware for some reason
- Uninstalled older picoscope: "sudo apt remove picoscope" and "sudo apt autoremove"
- Found that picoscope package configurations were still installed
- Performed a purge on all picoscope related packages: "sudo apt purge libpl1000 libps2000 libps2000a libps3000 libps3000a libps4000 libps4000a libps5000 libps5000a libps6000 libusbdrdaq picoscope"
- Reinstalled latest picoscope packages: "sudo apt install picoscope"

I suspect the purge operation may have actually been what fixed it, but I'm unable to confirm this. Perhaps someone else who is having this issue can try just the last 2 steps (purge and reinstall) and see if it fixes the issue for them.

In the process I also changed the USB cable to the original blue one that came with it. But I changed it back to the previous cable and it is also working fine, so I don't think that was it.

At any rate, I'm very happy that it is working again, since it was severely impacting my ability to troubleshoot. I'll be sure to post any updates if I have any more information. Keeping my fingers crossed that it continues to work..

Best regards,

Element Green
element
Newbie
 
Posts: 0
Joined: Sat Jan 31, 2015 9:13 pm

Re: Running->Stopped bug

Postby element » Fri Sep 23, 2016 5:52 pm

My PicoScope was working great for over a week without issue. This morning unfortunately, the issue has returned. I tried purging the PicoScope related packages again and re-installed them, without success. Every time I enable triggers, the scope LED goes out and I'm forced to go to File->Connect Device or restart the PicoScope application.

This is very very unfortunate, since it stops me dead in my tracks with my work. Wish I knew how to resolve this permanently.

Is there a way to enable debugging output for the PicoScope application? It's obvious it is having communication issues with the scope (for example, clicking the Run does nothing after the scope LED goes out, so I'm sure there is some application error associated with this).

Out of curiosity I checked what kernel module is being used for the PicoScope. It looks like it is using usbfs. Not sure if that is the proper module or not or if something changed in this regard.

Element Green
element
Newbie
 
Posts: 0
Joined: Sat Jan 31, 2015 9:13 pm

Re: Running->Stopped bug

Postby Hitesh » Tue Sep 27, 2016 3:42 pm

Hi Element Green,

Are you running the PicoScope application as a super user or with a user account with non-administrator privileges?

Regards,
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: Running->Stopped bug

Postby element » Tue Sep 27, 2016 4:50 pm

I've done both. After it broke again, I attempted to use "strace" to see if there was any sort of I/O errors happening which would cause the scope to disconnect. The application quit immediately unless I ran it as root, when using strace. When I did this, it started working again and has worked ever since (whether running as root or not). It seems like a moving target and I'm not yet sure what the cause is. I'm glad it is working again though at least. I'll be sure to post more information if and when I discover it.

Best regards,

Element Green
element
Newbie
 
Posts: 0
Joined: Sat Jan 31, 2015 9:13 pm

Re: Running->Stopped bug

Postby element » Fri Sep 30, 2016 3:47 pm

It seems like running picoscope as root (using sudo) does indeed fix the issue, from what I have seen so far. I have not tested this enough yet to know for sure, but the times where I started up picoscope and it stopped working after enabling triggers, if I quit the application and started it with sudo it would continue to work as it should after enabling digital triggering.

Best regards,

Element Green
element
Newbie
 
Posts: 0
Joined: Sat Jan 31, 2015 9:13 pm

Re: Running->Stopped bug

Postby VincenzoV » Sat Oct 15, 2016 4:28 pm

Hi all
I installed mono from official repository and all seem to work. Can you confirm?
(Debian stable amd64)
VincenzoV
Newbie
 
Posts: 0
Joined: Tue Sep 10, 2013 6:04 pm

Previous

Return to PicoScope for Linux

Who is online

Users browsing this forum: No registered users and 0 guests