OpenVisualizer doesn't stop when entering 'q' on Ubuntu

Description

by email:

I'm using Ubuntu 14.04.
In these screenshots you can see that while I'm facing the mentioned
error, the program terminates successfully but the related thread
still exists.

On 7/20/14, Thomas Watteyne <watteyne@eecs.berkeley.edu> wrote:
> Mostafa,
> Using Ctrl+C That makes sense. Do you want to take a stab at implementing
> this? I guess it's a matter of putting in a handle for that signal, and
> killing the process from there. Maybe we could use both solutions in
> parallel.
> I'm surprised the current solution doesn't work for you. What OS are you
> running this on?
> Thomas
>
> On Friday, July 18, 2014, Mostafa Shahverdy <shahverdy.m@gmail.com> wrote:
>
>> In my opinion, its better to exit the server using CTRL+C, because
>> different threads have some outputs. Those outputs are printed after "> "
>> string, and users wont understand that there is going to be an input line
>> there.
>>
>> Regards,
>> Mostafa Shahverdy <http://www.mostafa.info>
>>
>>
>> On Fri, Jul 18, 2014 at 3:48 PM, Mostafa Shahverdy <shahverdy.m@gmail.com
>> <javascript:_e(%7B%7D,'cvml','shahverdy.m@gmail.com');>> wrote:
>>
>>> Thomas, are you sure that those modifications are letting the program to
>>> exit? I think because of using Scons to run the application, it will
>>> read
>>> all input at once, and then run the program. At least in my side it wont
>>> exit. I faced the following error:
>>>
>>> OpenVisualizer
>>> web interface started at 0.0.0.0: 8080
>>> enter 'q' to exit
>>> > Traceback (most recent call last):
>>> File "bin/openVisualizerApp/openVisualizerWeb.py", line 397, in
>>> <module>
>>> input = raw_input('> ')
>>> EOFError
>>>
>>> I have to mention that I don't have too much experience in OpenWSN. I
>>> use
>>> the following command to run the web interface:
>>>
>>> sudo scons runweb --sim --simCount 4
>>>
>>> Regards,
>>> Mostafa Shahverdy <http://www.mostafa.info>
>>>
>>>
>>> On Fri, Jul 18, 2014 at 12:29 PM, Thomas Watteyne <
>>> watteyne@eecs.berkeley.edu
>>> <javascript:_e(%7B%7D,'cvml','watteyne@eecs.berkeley.edu');>> wrote:
>>>
>>>> OpenWSNers,
>>>>
>>>> Until now, you had to kill the python process to close the
>>>> OpenVisualizer. Not very elegant, indeed.
>>>>
>>>> I added a tiny command line interface to the OpenVisualizer. Type 'q'
>>>> to
>>>> close it.
>>>>
>>>> Thanks to Mostafa Shahverdy for creating the fix in
>>>> https://github.com/openwsn-berkeley/openwsn-sw/pull/74!
>>>>
>>>> Thomas
>>>>
>>>> http://openwsn.org/
>>>>

Environment

None

Status

Assignee

Ken Bannister

Reporter

Mostafa Shahverdy

Labels

None

Story Points

None

Fix versions

Affects versions

1.6.0

Priority

Normal