** Description changed:

+ [ Impact ]
+ 
+ xdot is totally unusable with graphviz >= 2.31, due to xdot format
+ changes http://www.graphviz.org/doc/info/output.html#d:xdot
+ 
+ [ Test case ]
+ 
+ $ cat > test.dot << EOF
+  digraph {
+  caesar [label = "caesar"];
+  lizard [label = "lizard"];
+  newton [label = "newton"];
+  lizard -> newton;
+  newton -> lizard;
+  caesar -> lizard;
+  lizard -> caesar;
+ }
+ EOF
+ $ xdot test.dot
+ 
+ If it crashes on startup, it's broken.
+ 
+ [ Regression Potential ]
+ 
+ ~Nil, considering the level of brokennes.
+ 
+ === Original report ===
+ 
  Traceback (most recent call last):
-   File "/usr/bin/xdot", line 4, in <module>
-     xdot.main()
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1947, in main
-     win.open_file(args[0])
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1881, in open_file
-     self.set_dotcode(fp.read(), filename)
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1863, in set_dotcode
-     if self.widget.set_dotcode(dotcode, filename):
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1477, in set_dotcode
-     self.set_xdotcode(xdotcode)
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1497, in set_xdotcode
-     self.graph = parser.parse()
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1167, in parse
-     DotParser.parse(self)
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 977, in parse
-     self.parse_graph()
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 986, in parse_graph
-     self.parse_stmt()
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1032, in parse_stmt
-     self.handle_node(id, attrs)
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1142, in handle_node
-     shapes.extend(parser.parse())
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 625, in parse
-     points = self.read_polygon()
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 517, in read_polygon
-     x, y = self.read_point()
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 500, in read_point
-     x = self.read_number()
-   File "/usr/lib/python2.7/dist-packages/xdot.py", line 494, in read_number
-     return int(self.read_code())
+   File "/usr/bin/xdot", line 4, in <module>
+     xdot.main()
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1947, in main
+     win.open_file(args[0])
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1881, in open_file
+     self.set_dotcode(fp.read(), filename)
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1863, in set_dotcode
+     if self.widget.set_dotcode(dotcode, filename):
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1477, in set_dotcode
+     self.set_xdotcode(xdotcode)
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1497, in set_xdotcode
+     self.graph = parser.parse()
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1167, in parse
+     DotParser.parse(self)
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 977, in parse
+     self.parse_graph()
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 986, in parse_graph
+     self.parse_stmt()
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1032, in parse_stmt
+     self.handle_node(id, attrs)
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 1142, in handle_node
+     shapes.extend(parser.parse())
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 625, in parse
+     points = self.read_polygon()
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 517, in read_polygon
+     x, y = self.read_point()
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 500, in read_point
+     x = self.read_number()
+   File "/usr/lib/python2.7/dist-packages/xdot.py", line 494, in read_number
+     return int(self.read_code())
  ValueError: invalid literal for int() with base 10: '360.25'
  
  This has been corrected in more recent versions of the software.
  
  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: xdot 0.5-2
  ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
  Uname: Linux 3.13.0-24-generic x86_64
  NonfreeKernelModules: nvidia
  ApportVersion: 2.14.1-0ubuntu3
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Thu May  8 18:47:25 2014
  InstallationDate: Installed on 2014-04-08 (29 days ago)
  InstallationMedia: Ubuntu-GNOME 14.04 LTS "Trusty Tahr" - Daily amd64 
(20140408)
  PackageArchitecture: all
  ProcEnviron:
-  TERM=xterm
-  PATH=(custom, no user)
-  XDG_RUNTIME_DIR=<set>
-  LANG=en_US.UTF-8
-  SHELL=/bin/bash
+  TERM=xterm
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=<set>
+  LANG=en_US.UTF-8
+  SHELL=/bin/bash
  SourcePackage: xdot
  UpgradeStatus: No upgrade log present (probably fresh install)

** Also affects: xdot (Ubuntu Trusty)
   Importance: Undecided
       Status: New

** Changed in: xdot (Ubuntu Trusty)
   Importance: Undecided => Medium

** Patch added: "xdot_0.5-2ubuntu0.1.debdiff"
   
https://bugs.launchpad.net/ubuntu/+source/xdot/+bug/1317688/+attachment/4119379/+files/xdot_0.5-2ubuntu0.1.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1317688

Title:
  xdot crashes on floats in the .dot file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdot/+bug/1317688/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to