andrewd18 / rubypi

An EVE Online Planetary Interaction tool, written in Ruby.
Other
22 stars 8 forks source link

Segementation fault #3

Open marvi opened 11 years ago

marvi commented 11 years ago

Hi,

I get a segfault when clicking "Edit" after adding a planet. Tell me if you need some more info.

rubypi/view/planet_view/building_drawing_area.rb:179: [BUG] Segmentation fault ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.3.0]

-- Crash Report log information -------------------------------------------- See Crash Report log file under the one of following: * ~/Library/Logs/CrashReporter * /Library/Logs/CrashReporter * ~/Library/Logs/DiagnosticReports * /Library/Logs/DiagnosticReports the more detail of.

-- Control frame information ----------------------------------------------- c:0009 p:---- s:0030 e:000029 CFUNC :paint c:0008 p:0071 s:0027 e:000026 BLOCK /Users/marvi/hacks/Eve Online/rubypi/view/planet_view/building_drawing_area.rb:179 [FINISH] c:0007 p:---- s:0021 e:000020 CFUNC :save c:0006 p:0045 s:0018 e:000017 METHOD /Users/marvi/hacks/Eve Online/rubypi/view/planet_view/building_drawing_area.rb:172 c:0005 p:0011 s:0013 e:000012 BLOCK /Users/marvi/hacks/Eve Online/rubypi/view/planet_view/building_drawing_area.rb:72 [FINISH] c:0004 p:---- s:0009 e:000008 CFUNC :call c:0003 p:---- s:0007 e:000006 CFUNC :main c:0002 p:0196 s:0004 E:002458 EVAL ruby_pi.rb:181 [FINISH] c:0001 p:0000 s:0002 E:0007d8 TOP [FINISH]

andrewd18 commented 10 years ago

Sorry it took so long to getting around to this.

The issue you're having is a problem with the "cairo_context.paint" method I'm calling on line 179 of planet_view/building_drawing_area.rb. This is a method that comes as part of the Cairo gem.

Can you please check to make sure you have the cairo gem installed? I don't have a Mac to test on so I haven't been able to verify the installation process for OSX.

Thanks.