Closed ghost closed 9 years ago
Ok it's only when it's frozen
I hope it's fixed, we will see
Testing with Nightly 2015-05-06 (V1.3.3dev2):
The original procedure is now OK, but when I then quit GNS3 without saving, I get 2 more BrokenPipeErrors. It looks as if this time the GUI is affected:
May 6 09:58:25 imac.lan GNS3[585] <Notice>: 2015-05-06 09:58:25.479 GNS3[585:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
May 6 09:58:26 imac.lan GNS3[585] <Notice>: --- Logging error ---
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Traceback (most recent call last):
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "gns3/logger.pyo", line 76, in emit
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 962, in flush
May 6 09:58:26 imac.lan GNS3[585] <Notice>: BrokenPipeError: [Errno 32] Broken pipe
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Call stack:
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/__boot__.py", line 351, in <module>
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/__boot__.py", line 336, in _run
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/main.py", line 232, in <module>
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/main.py", line 225, in main
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "gns3/http_client.pyo", line 370, in _processResponse
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1262, in debug
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1409, in _log
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1419, in handle
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1481, in callHandlers
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 853, in handle
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "gns3/logger.pyo", line 78, in emit
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Message: 'Decoding response from http://192.168.1.10:8000/v1/projects/f27aa573-00ae-4f00-b9b8-e0bca2262a56/dynamips/vms response 201'
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Arguments: ()
May 6 09:58:26 imac.lan GNS3[585] <Notice>: --- Logging error ---
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Traceback (most recent call last):
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "gns3/logger.pyo", line 76, in emit
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 962, in flush
May 6 09:58:26 imac.lan GNS3[585] <Notice>: BrokenPipeError: [Errno 32] Broken pipe
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Call stack:
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/__boot__.py", line 351, in <module>
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/__boot__.py", line 336, in _run
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/main.py", line 232, in <module>
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "/Applications/Lokal/GNS3.app/Contents/Resources/main.py", line 225, in main
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "gns3/http_client.pyo", line 373, in _processResponse
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1262, in debug
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1409, in _log
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1419, in handle
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 1481, in callHandlers
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "logging/__init__.pyo", line 853, in handle
May 6 09:58:26 imac.lan GNS3[585] <Notice>: File "gns3/logger.pyo", line 78, in emit
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Message: '{\n "aux": null,\n "clock_divisor": 8,\n "console": 2001,\n "disk0": 0,\n "disk1": 0,\n "dynamips_id": 1,\n "exec_area": 64,\n "idlemax": 500,\n "idlepc": "0x602467a4",\n "idlesleep": 30,\n "image": "c3725-adventerprisek9-mz.124-25d.image",\n "iomem": 5,\n "mac_addr": "c201.024d.0000",\n "mmap": true,\n "name": "R1",\n "nvram": 256,\n "platform": "c3725",\n "private_config": "configs/i1_private-config.cfg",\n "project_id": "f27aa573-00ae-4f
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Message: '{\n "aux": null,\n "clock_divisor": 8,\n "console": 2001,\n "disk0": 0,\n "disk1": 0,\n "dynamips_id": 1,\n "exec_area": 64,\n "idlemax": 500,\n "idlepc": "0x602467a4",\n "idlesleep": 30,\n "image": "c3725-adventerprisek9-mz.124-25d.image",\n "iomem": 5,\n "mac_addr": "c201.024d.0000",\n "mmap": true,\n "name": "R1",\n "nvram": 256,\n "platform": "c3725",\n "private_config": "configs/i1_private-config.cfg",\n "project_id": "f27aa573-00ae-4f
May 6 09:58:26 imac.lan GNS3[585] <Notice>: Message: '{\n "aux": null,\n "clock_divisor": 8,\n "console": 2001,\n "disk0": 0,\n "disk1": 0,\n "dynamips_id": 1,\n "exec_area": 64,\n "idlemax": 500,\n "idlepc": "0x602467a4",\n "idlesleep": 30,\n "image": "c3725-adventerprisek9-mz.124-25d.image",\n "iomem": 5,\n "mac_addr": "c201.024d.0000",\n "mmap": true,\n "name": "R1",\n "nvram": 256,\n "platform": "c3725",\n "private_config": "configs/i1_private-config.cfg",\n "project_id": "f27aa573-00ae-4f
So now the error is in the client...
Tested with nightly 2015-05-07 I'm almost happy, but not completely.
When I use the above procedure then quit GNS3 I got the following messages during GNS3 shutdown without debug:
May 7 10:54:58 imac.lan GNS3[718] <Notice>: QPixmap::scaled: Pixmap is a null pixmap
May 7 10:55:00 imac.lan GNS3[718] <Notice>: 2015-05-07 10:55:00.571 GNS3[718:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
May 7 10:55:00 imac.lan GNS3[718] <Notice>: 2015-05-07 10:55:00 INFO hypervisor.pyc:133 Stopping Dynamips process PID=722
May 7 10:55:01 imac.lan GNS3[718] <Notice>: 2015-05-07 10:55:01 INFO project.pyc:368 Project 0acf6218-0b73-4ef6-b257-198206816650 with path '/Users/behlers/GNS3/projects/0acf6218-0b73-4ef6-b257-198206816650' deleted
May 7 10:55:01 imac.lan GNS3[718] <Notice>: 2015-05-07 10:55:01 INFO server.pyc:169 127.0.0.1 - - Thu, 07 May 2015 08:55:01 GMT "POST /v1/server/shutdown HTTP/1.1" 201 169 "-" "GNS3 QT Client v1.3.3dev2"
May 7 10:55:01 imac.lan GNS3[718] <Notice>: 2015-05-07 10:55:01 INFO project.pyo:330 Project 0acf6218-0b73-4ef6-b257-198206816650 closed
May 7 10:55:01 imac.lan GNS3[718] <Notice>: 2015-05-07 10:55:01 INFO servers.pyo:260 Stopping local server (PID=721)
May 7 10:55:01 imac.lan GNS3[718] <Notice>: QThreadStorage: Thread 0x10018a100 exited after QThreadStorage 7 destroyed
May 7 10:55:01 imac.lan GNS3[718] <Notice>: QThreadStorage: Thread 0x10c05e780 exited after QThreadStorage 7 destroyed
May 7 10:55:01 imac.lan GNS3[718] <Notice>: QThreadStorage: Thread 0x1003a71e0 exited after QThreadStorage 7 destroyed
May 7 10:55:01 imac.lan GNS3[718] <Notice>: QThreadStorage: Thread 0x10bed3d90 exited after QThreadStorage 7 destroyed
May 7 10:55:01 imac.lan GNS3[718] <Notice>: QThreadStorage: Thread 0x10059da50 exited after QThreadStorage 7 destroyed
With --debug I get the following:
May 7 10:56:30 imac.lan GNS3[736] <Notice>: QPixmap::scaled: Pixmap is a null pixmap
May 7 10:56:31 imac.lan GNS3[736] <Notice>: 2015-05-07 10:56:31.622 GNS3[736:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
May 7 10:56:32 imac.lan GNS3[736] <Notice>: Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
May 7 10:56:32 imac.lan GNS3[736] <Notice>: BrokenPipeError: [Errno 32] Broken pipe
May 7 10:56:32 imac.lan GNS3[736] <Notice>: Exception ignored in: <gns3.pycutext.MultipleRedirection object at 0x10e16a198>
May 7 10:56:32 imac.lan GNS3[736] <Notice>: Traceback (most recent call last):
May 7 10:56:32 imac.lan GNS3[736] <Notice>: File "gns3/pycutext.pyo", line 46, in flush
May 7 10:56:32 imac.lan GNS3[736] <Notice>: BrokenPipeError: [Errno 32] Broken pipe
May 7 10:56:32 imac.lan GNS3[736] <Notice>: QThreadStorage: Thread 0x1003cacc0 exited after QThreadStorage 7 destroyed
May 7 10:56:32 imac.lan GNS3[736] <Notice>: QThreadStorage: Thread 0x1002df4b0 exited after QThreadStorage 7 destroyed
May 7 10:56:32 imac.lan GNS3[736] <Notice>: QThreadStorage: Thread 0x1003d3970 exited after QThreadStorage 7 destroyed
May 7 10:56:32 imac.lan GNS3[736] <Notice>: QThreadStorage: Thread 0x10632fc60 exited after QThreadStorage 7 destroyed
These 5 INFO messages are missing, instead some messages about ignored BrokenPipeError. It's not that important, maybe something for 1.4.
Another fix pushed :P
Re-tested with 1.3.3rc1: Still the same issue, when closing GNS3.
With --debug:
May 8 09:27:30 imac.lan GNS3[474] <Notice>: QPixmap::scaled: Pixmap is a null pixmap
May 8 09:27:32 imac.lan GNS3[474] <Notice>: 2015-05-08 09:27:32.930 GNS3[474:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
May 8 09:27:33 imac.lan GNS3[474] <Notice>: QPixmap::scaled: Pixmap is a null pixmap
May 8 09:27:34 imac.lan GNS3[474] <Notice>: Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
May 8 09:27:34 imac.lan GNS3[474] <Notice>: BrokenPipeError: [Errno 32] Broken pipe
May 8 09:27:34 imac.lan GNS3[474] <Notice>: 2015-05-08 09:27:34.374 GNS3[474:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
Without --debug:
May 8 09:29:45 imac.lan GNS3[490] <Notice>: QPixmap::scaled: Pixmap is a null pixmap
May 8 09:29:47 imac.lan GNS3[490] <Notice>: 2015-05-08 09:29:47.312 GNS3[490:507] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
May 8 09:29:47 imac.lan GNS3[490] <Notice>: 2015-05-08 09:29:47 INFO hypervisor.pyc:133 Stopping Dynamips process PID=494
May 8 09:29:47 imac.lan GNS3[490] <Notice>: 2015-05-08 09:29:47 INFO project.pyc:368 Project 9ebed463-cab8-4d3c-a3b6-f4e8f34e2ce9 with path '/Users/behlers/GNS3/projects/9ebed463-cab8-4d3c-a3b6-f4e8f34e2ce9' deleted
May 8 09:29:47 imac.lan GNS3[490] <Notice>: 2015-05-08 09:29:47 INFO server.pyc:169 127.0.0.1 - - Fri, 08 May 2015 07:29:47 GMT "POST /v1/server/shutdown HTTP/1.1" 201 168 "-" "GNS3 QT Client v1.3.3rc1"
May 8 09:29:47 imac.lan GNS3[490] <Notice>: 2015-05-08 09:29:47 INFO project.pyo:330 Project 9ebed463-cab8-4d3c-a3b6-f4e8f34e2ce9 closed
May 8 09:29:47 imac.lan GNS3[490] <Notice>: 2015-05-08 09:29:47 INFO servers.pyo:260 Stopping local server (PID=493)
Sadly we don't have the path of where the error is located. Perhaps it's inside a thirdparty lib.
GNS3 V1.3.2, OS X V10.9.5
When starting GNS3 with --debug, then the logger shows a lot of errors.
Scenario:
Exact the same sequence works flawless on linux, debian 8 (jessie).
Here the log output: