{"action":"created","issue":{"url":"https://api.github.com/repos/netzob/netzob/issues/27","repository_url":"https://api.github.com/repos/netzob/netzob","labels_url":"https://api.github.com/repos/netzob/netzob/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/netzob/netzob/issues/27/comments","events_url":"https://api.github.com/repos/netzob/netzob/issues/27/events","html_url":"https://github.com/netzob/netzob/issues/27","id":142254429,"number":27,"title":"Netzob crashes while importing PCAP files","user":{"login":"GauthamGoli","id":10331512,"avatar_url":"https://avatars.githubusercontent.com/u/10331512?v=3","gravatar_id":"","url":"https://api.github.com/users/GauthamGoli","html_url":"https://github.com/GauthamGoli","followers_url":"https://api.github.com/users/GauthamGoli/followers","following_url":"https://api.github.com/users/GauthamGoli/following{/other_user}","gists_url":"https://api.github.com/users/GauthamGoli/gists{/gist_id}","starred_url":"https://api.github.com/users/GauthamGoli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GauthamGoli/subscriptions","organizations_url":"https://api.github.com/users/GauthamGoli/orgs","repos_url":"https://api.github.com/users/GauthamGoli/repos","events_url":"https://api.github.com/users/GauthamGoli/events{/privacy}","received_events_url":"https://api.github.com/users/GauthamGoli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-21T04:38:56Z","updated_at":"2016-03-31T07:49:19Z","closed_at":null,"body":"I tried to import a PCAP file of size 8 mb while following the tutorial on the main website. Netzob has crashed multiple times. The following is the traceback for that exception. Not being able to import PCAPs is a huge inconvenience. \r\n`DEBUG:root:  Local configuration file used: /root/.netzob\r\nDEBUG:root:  Workspace path declared in configuration file: /root/workspace/netzob\r\nDEBUG:root:  Workspace R/W access is valid: /root/workspace/netzob\r\nDEBUG:root:+ Load workspace...\r\nDEBUG:root:  Workspace configuration file found: /root/workspace/netzob/workspace.xml\r\nDEBUG:root:  Workspace configuration file /root/workspace/netzob/workspace.xml is valid against XSD scheme /usr/share/netzob/xsds/0.1/Workspace.xsd\r\nDEBUG:root:Bug reporter disabled.\r\nDEBUG:root:Logging config file: /root/workspace/netzob/logging/logging.conf\r\n[MainThread]2016-03-21 09:52:00,756 - NetzobMainController - INFO - Starting netzob UI\r\n[MainThread]2016-03-21 09:52:22,745 - Project - INFO - Save the config file of project monday 21st in /root/workspace/netzob/projects/751429ce-fa7e-4403-93ef-f96322ed7cc1/config.xml\r\n[MainThread]2016-03-21 09:52:22,746 - Project - INFO - Creation of the directory: /root/workspace/netzob/projects/751429ce-fa7e-4403-93ef-f96322ed7cc1\r\n[MainThread]2016-03-21 09:52:22,746 - Workspace - INFO - Save the config file of the workspace New Workspace in /root/workspace/netzob/workspace.xml\r\n[MainThread]2016-03-21 09:52:23,432 - Project - INFO - Loading project 'monday 21st' from workspace.\r\n\r\n(netzob:3361): Gtk-WARNING **: Content added to the action area of a dialog using header bars\r\n\r\n(netzob:3361): Gtk-WARNING **: Content added to the action area of a dialog using header bars\r\nGtk-Message: GtkDialog mapped without a transient parent. This is discouraged.\r\nGtk-Message: GtkDialog mapped without a transient parent. This is discouraged.\r\n[MainThread]2016-03-21 09:52:37,057 - PCAPImporter - INFO - Starting import from /root/Desktop/captures/3tickets.pcap (linktype:/root/Desktop/captures/3tickets.pcap)\r\n[MainThread]2016-03-21 09:52:37,255 - PCAPImporter - WARNING - Cannot import one of the provided packets since its layer 3 is unsupported (Only IP is currently supported, packet ethernet type = 2054)\r\nGtk-Message: GtkDialog mapped without a transient parent. This is discouraged.\r\n[MainThread]2016-03-21 09:52:44,969 - Workspace - INFO - Save the config file of the workspace New Workspace in /root/workspace/netzob/workspace.xml\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/UI/Vocabulary/Controllers/VocabularyController.py\", line 261, in symbolListTreeViewSelection_changed_cb\r\n    self._view.updateSymbolProperties()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/UI/Vocabulary/Views/VocabularyView.py\", line 623, in updateSymbolProperties\r\n    self.updateSymbolVariableDefinition()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/UI/Vocabulary/Views/VocabularyView.py\", line 629, in updateSymbolVariableDefinition\r\n    variableDisplayerController.run(self.messagesDistributionSymbolViewport)\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/UI/Vocabulary/Controllers/VariableDisplayerController.py\", line 72, in run\r\n    self._view.run(panel)\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/UI/Vocabulary/Views/VariableDisplayerView.py\", line 81, in run\r\n    xdotWidget.drawDotCode('\\n'.join(dotCode))\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/Simulator/XDotWidget.py\", line 64, in drawDotCode\r\n    self.set_dotcode(dotCode)\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 1475, in set_dotcode\r\n    self.set_xdotcode(xdotcode)\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 1490, in set_xdotcode\r\n    self.graph = parser.parse()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 1169, in parse\r\n    DotParser.parse(self)\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 979, in parse\r\n    self.parse_graph()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 988, in parse_graph\r\n    self.parse_stmt()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 1018, in parse_stmt\r\n    self.parse_subgraph()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 1001, in parse_subgraph\r\n    self.parse_stmt()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 1034, in parse_stmt\r\n    self.handle_node(id, attrs)\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 1144, in handle_node\r\n    shapes.extend(parser.parse())\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 609, in parse\r\n    w = s.read_number()\r\n  File \"/usr/lib/python2.7/dist-packages/netzob/ExternalLibs/xdot.py\", line 496, in read_number\r\n    return int(self.read_code())\r\nValueError: invalid literal for int() with base 10: '136.48'\r\n\r\n(netzob:3361): Gdk-ERROR **: The program 'netzob' received an X Window System error.\r\nThis probably reflects a bug in the program.\r\nThe error was 'BadAlloc (insufficient resources for operation)'.\r\n  (Details: serial 26600 error_code 11 request_code 130 (MIT-SHM) minor_code 5)\r\n  (Note to programmers: normally, X errors are reported asynchronously;\r\n   that is, you will receive the error a while after causing it.\r\n   To debug your program, run it with the GDK_SYNCHRONIZE environment\r\n   variable to change this behavior. You can then get a meaningful\r\n   backtrace from your debugger if you break on the gdk_x_error() function.)\r\nTrace/breakpoint trap`\r\n"},"comment":{"url":"https://api.github.com/repos/netzob/netzob/issues/comments/203803089","html_url":"https://github.com/netzob/netzob/issues/27#issuecomment-203803089","issue_url":"https://api.github.com/repos/netzob/netzob/issues/27","id":203803089,"user":{"login":"gbossert","id":1853778,"avatar_url":"https://avatars.githubusercontent.com/u/1853778?v=3","gravatar_id":"","url":"https://api.github.com/users/gbossert","html_url":"https://github.com/gbossert","followers_url":"https://api.github.com/users/gbossert/followers","following_url":"https://api.github.com/users/gbossert/following{/other_user}","gists_url":"https://api.github.com/users/gbossert/gists{/gist_id}","starred_url":"https://api.github.com/users/gbossert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbossert/subscriptions","organizations_url":"https://api.github.com/users/gbossert/orgs","repos_url":"https://api.github.com/users/gbossert/repos","events_url":"https://api.github.com/users/gbossert/events{/privacy}","received_events_url":"https://api.github.com/users/gbossert/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T07:49:19Z","updated_at":"2016-03-31T07:49:19Z","body":"Can you provide the PCAP you used so that we can check if this issue applies on the latest version of Netzob ?"}}