{"action":"created","issue":{"url":"https://api.github.com/repos/enthought/chaco/issues/315","repository_url":"https://api.github.com/repos/enthought/chaco","labels_url":"https://api.github.com/repos/enthought/chaco/issues/315/labels{/name}","comments_url":"https://api.github.com/repos/enthought/chaco/issues/315/comments","events_url":"https://api.github.com/repos/enthought/chaco/issues/315/events","html_url":"https://github.com/enthought/chaco/issues/315","id":182595530,"number":315,"title":"Kiva segfaulting on an img_plot on OSX (not Windows)","user":{"login":"jonathanrocher","id":593945,"avatar_url":"https://avatars.githubusercontent.com/u/593945?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanrocher","html_url":"https://github.com/jonathanrocher","followers_url":"https://api.github.com/users/jonathanrocher/followers","following_url":"https://api.github.com/users/jonathanrocher/following{/other_user}","gists_url":"https://api.github.com/users/jonathanrocher/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanrocher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanrocher/subscriptions","organizations_url":"https://api.github.com/users/jonathanrocher/orgs","repos_url":"https://api.github.com/users/jonathanrocher/repos","events_url":"https://api.github.com/users/jonathanrocher/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanrocher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-12T18:14:44Z","updated_at":"2016-10-17T09:39:36Z","closed_at":null,"body":"I am occasionally getting a segfault 11 of the form:\r\n\r\nProcess:               Python [15499]\r\nPath:                  /Users/USER/*/Python.app/Contents/MacOS/Python\r\nIdentifier:            org.python.python\r\nVersion:               2.7.6 (2.7.6)\r\nCode Type:             X86-64 (Native)\r\nParent Process:        bash [88535]\r\nResponsible:           Terminal [310]\r\nUser ID:               501\r\n\r\nDate/Time:             2016-10-11 22:25:13.634 -0600\r\nOS Version:            Mac OS X 10.11.6 (15G1004)\r\nReport Version:        11\r\nAnonymous UUID:        6A5D759C-6553-8C85-EF5F-9A50C6539B5E\r\n\r\nSleep/Wake UUID:       09B3EE01-592B-4DDF-BAAC-04CE1BE086CD\r\n\r\nTime Awake Since Boot: 830000 seconds\r\nTime Since Wake:       11000 seconds\r\n\r\nSystem Integrity Protection: enabled\r\n\r\nCrashed Thread:        0  Dispatch queue: com.apple.main-thread\r\n\r\nException Type:        EXC_BAD_ACCESS (SIGSEGV)\r\nException Codes:       KERN_INVALID_ADDRESS at 0x0000000200000794\r\n\r\nVM Regions Near 0x200000794:\r\n    CoreUI image data      000000011f237000-000000011f298000 [  388K] rw-/rwx SM=PRV  \r\n--> \r\n    STACK GUARD            0000700000000000-0000700000001000 [    4K] ---/rwx SM=NUL  stack guard for thread 1\r\n\r\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\r\n0   _agg.so                       \t0x000000011bcafef0 void kiva::graphics_context<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8, agg24::order_bgra>, agg24::row_ptr_cache<unsigned char>, unsigned int> >::transform_image_interpolate<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8, agg24::order_rgba>, agg24::row_ptr_cache<unsigned char>, unsigned int> >(kiva::graphics_context<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8, agg24::order_rgba>, agg24::row_ptr_cache<unsigned char>, unsigned int> >&, agg24::trans_affine&) + 2000 (agg_pixfmt_rgba.h:1671)\r\n1   _agg.so                       \t0x000000011bcb8685 kiva::graphics_context<agg24::pixfmt_alpha_blend_rgba<agg24::blender_rgba<agg24::rgba8, agg24::order_bgra>, agg24::row_ptr_cache<unsigned char>, unsigned int> >::transform_image(kiva::graphics_context_base*, agg24::trans_affine&) + 165 (kiva_graphics_context.h:1651)\r\n2   ???                           \t0x00007fff5fbf4fa0 0 + 140734799761312\r\n3   ???                           \t0x3fe0000000000000 0 + 4602678819172646912\r\n\r\nwhen I run the following:\r\n```\r\nimport numpy as np\r\nfrom numpy import exp, linspace, meshgrid\r\nimport pandas as pd\r\n\r\nfrom chaco.api import ArrayPlotData, Plot, jet\r\nfrom enable.component_editor import ComponentEditor\r\nfrom traits.api import HasTraits, Instance\r\nfrom traitsui.api import Item, View\r\n\r\n\r\nclass ImagePlot(HasTraits):\r\n\r\n    plot = Instance(Plot)\r\n\r\n    data = Instance(pd.DataFrame)\r\n\r\n    traits_view = View(Item('plot', editor=ComponentEditor(),\r\n                            show_label=False),\r\n                       width=500, height=500,\r\n                       resizable=True,\r\n                       title=\"Chaco Plot\")\r\n\r\n    def _plot_default(self):\r\n        pivoted = self.data.pivot_table(index=\"x\", columns=\"y\", values=\"z\")\r\n        plotdata = ArrayPlotData(zdata=pivoted.values)\r\n        # Create a Plot and associate it with the PlotData.\r\n        plot = Plot(plotdata)\r\n        # Create a line plot in the Plot\r\n        plot.img_plot(\"zdata\", colormap=jet)\r\n        return plot\r\n\r\n\r\nif __name__ == \"__main__\":\r\n    data = pd.DataFrame({\"x\": [0, 1, 0, 1], \"y\": [0, 0, 1, 1],\r\n                         \"z\": [0., 1., 2., 3.]})\r\n    demo = ImagePlot(data=data)\r\n    demo.configure_traits()\r\n```\r\n\r\nI am seeing this on OSX 10.11.6, with a Canopy environment with chaco 4.5.0-3 and enable 4.5.1-11 (numpy 1.10, and pandas 0.18.0-8). I am seeing this segfault with another environment with same chaco, enable 4.6dev, numpy 1.9.2-3 and pandas 0.16.2-2 too. \r\n\r\nAdditionally, even just trying to plot a trivial np.ones array leads to a completely white plot, even when it doesn't segfault. The same code runs as expected on Windows (same versions of all packages). \r\n\r\nAny idea what is going on? \r\ncc @cfarrow @jwiggins "},"comment":{"url":"https://api.github.com/repos/enthought/chaco/issues/comments/254160468","html_url":"https://github.com/enthought/chaco/issues/315#issuecomment-254160468","issue_url":"https://api.github.com/repos/enthought/chaco/issues/315","id":254160468,"user":{"login":"jwiggins","id":587491,"avatar_url":"https://avatars.githubusercontent.com/u/587491?v=3","gravatar_id":"","url":"https://api.github.com/users/jwiggins","html_url":"https://github.com/jwiggins","followers_url":"https://api.github.com/users/jwiggins/followers","following_url":"https://api.github.com/users/jwiggins/following{/other_user}","gists_url":"https://api.github.com/users/jwiggins/gists{/gist_id}","starred_url":"https://api.github.com/users/jwiggins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwiggins/subscriptions","organizations_url":"https://api.github.com/users/jwiggins/orgs","repos_url":"https://api.github.com/users/jwiggins/repos","events_url":"https://api.github.com/users/jwiggins/events{/privacy}","received_events_url":"https://api.github.com/users/jwiggins/received_events","type":"User","site_admin":false},"created_at":"2016-10-17T09:39:36Z","updated_at":"2016-10-17T09:39:36Z","body":"Ahh, gcc... This sounds a lot like enthought/enable#97 now. "}}
{"actor":{"display_login":"jwiggins"}}