On 08.08.13 00:33, [email protected] wrote:
> On Tue, Aug 06, 2013 at 09:12:36PM +0200, [email protected] 
> wrote:
> 
>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>> Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
>> 0x00000000 in ?? ()
> 
> at this point you would type 
>  bt
> and hope it shows a meaningful stacktrace. Also what version did you compile?
> 
> Richard



It looks like the crash occurs during startup in "navit/graphics.c" by
calling (possibly uninitialised, i.e.) a zero-pointer "get_data":


     void * graphics_get_data(struct graphics *this_, const char *type)
     {
==>       return (this_->meth.get_data(this_->priv, type));
     }


(gdb) p *this_
$1 = {
  parent = 0x0,
  priv = 0x0,
  meth = {
    graphics_destroy = 0,
    draw_mode = 0,
    draw_lines = 0,
    draw_polygon = 0,
    draw_rectangle = 0,
    draw_circle = 0,
    draw_text = 0,
    draw_image = 0,
    draw_image_warp = 0,
    draw_restore = 0,
    draw_drag = 0,
    font_new = 0,
    gc_new = 0,
    background_gc = 0,
    overlay_new = 0,
    image_new = 0,
    get_data = 0,
    image_free = 0,
    get_text_bbox = 0,
    overlay_disable = 0,
    overlay_resize = 0,
    set_attr = 0
  },
  default_font = 0x0,
  font_len = 0,
  font = 0x0,
  gc = {0x0, 0x0, 0x0},
  attrs = 0x120b050,
  cbl = 0x120b020,
  r = {
    lu = {
      x = 0,
      y = 0
    },
    rl = {
      x = 0,
      y = 0
    }
  },
  gamma = 65536,
  brightness = 0,
  contrast = 65536,
  colormgmt = 0,
  font_size = 20,
  selection = 0x0,
  disabled = 0,
  current_z_order = 0,
  image_cache_hash = 0x2251c8
}


I have setup "internal-gui" and "qpainter" graphics in navit.xml.

Where should "this_->meth" get initialised?

    Eeri Kask


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Navit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/navit-users

Reply via email to