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: Marcus Müller
Subject: Re: [Discuss-gnuradio] LIBUSB_ERROR_PIPE and "improperly" stopping gnuradio
Date: Thu, 06 Nov 2014 11:14:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0

Hi Lefteris,

I still don't know why you *kill* the process. GNU Radio waits for *any* key, and pressing anything but ctrl-C should let the flow graph shut down correctly, in turn deallocating the UHD sources/sinks, which should free the libusb device handles.

Greetings,
Marcus

On 05.11.2014 22:53, Eleftherios(Lef) Kampianakis wrote:
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





_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

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