discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnura


From: Eleftherios(Lef) Kampianakis
Subject: Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio
Date: Wed, 5 Nov 2014 13:53:28 -0800

Sylvain thank you for your reply,

Ok, what about the python script in my previous message? How can I write my code in order to prevent the LIB_USB_ERROR_PIPE message. No matter how I stop the gnuradio script (e.g. catch keyboard interrupt and issue stop() and wait as in my original post), I always get the same message. My intuition due to that is that something is not cleaned up properly in UHD level. Any suggestions on that?

Best regards
Lefteris

On Wed, Nov 5, 2014 at 12:52 PM, Sylvain Munaut <address@hidden> wrote:
> After this point the only thing that I can do is remove and re-insert the
> USB from the computer in order for my script to work. I assume this is not
> normal behavior (and also not a programming error) because this is a minimum
> working example, and its not working.

There is literally nothing GNURadio can do about this.

When you press the 'red cross' button, it _kills_ the whole process
(SIGKILL), a process cannot catch this signal, nor do anything about
it (i.e. not a single instruction of gnuradio will execute after this)

At this point, it's up to the operating system to clean up any state
of the process ...


Cheers,

   Sylvain



--
Eleftherios(Lefteris) Kampianakis
Electronics and Computer Engineer
PHD Candidate and Researcher at Sensing Computing Communications Group (SGCC)
Department of Electrical Engineering
University of Washington
3927 Adams Lane, NE, Mercer Court D805B, 98105

reply via email to

[Prev in Thread] Current Thread [Next in Thread]