Opened 6 years ago

Closed 6 years ago

#524 closed defect/bug (fixed)

[MG] search broken by rev #2827

Reported by: pini Owned by: Cp15
Priority: blocker Milestone:
Component: mapdrivers/M&G Version: svn
Severity: Keywords:



SVN rev#2827 introduced attr_postal_mask handling in navit/search.c:search_list_town_new.

But this ATTR isn't handled by the MG plugin and generates a failed assert. See navit/map/mg/town.c:town_attr_get.

Unfortunately I don't know how to properly handle this case in town.c. So I can't provide an appropriate patch.



Attachments (1)

mg-unhandled-attr (522 bytes) - added by pini 6 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by pini

The same goes for attr_county_name introduced into navit/search.c by rev #2844.



comment:2 Changed 6 years ago by pini


There are some other use cases leading to unhandled attr_type. I've eventually patched navit/map/mg/town.c so that it triggers log messages instead of assert(false).


Changed 6 years ago by pini

comment:3 Changed 6 years ago by kazer

  • Resolution set to fixed
  • Status changed from new to closed

patch applied in rev2394, it doesn't crash anymore. Thank you once more, pini :)

Note: See TracTickets for help on using tickets.