Ticket #524 (closed defect/bug: fixed)

Opened 3 years ago

Last modified 3 years ago

[MG] search broken by rev #2827

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

Description

Hi,

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.

Thanks,

_Gilles.

Attachments

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

Change History

comment:1 Changed 3 years ago by pini

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

Thanks,

_Gilles.

comment:2 Changed 3 years ago by pini

Hi,

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).

Thanks,

Changed 3 years ago by pini

comment:3 Changed 3 years ago by kazer

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

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

Note: See TracTickets for help on using tickets.