navit-gps / navit

The open source (GPL v2) turn-by-turn navigation software for many OS
http://www.navit-project.org
Other
551 stars 175 forks source link

do_draw:point count overflow errors #1239

Open Paulml1982 opened 1 year ago

Paulml1982 commented 1 year ago

Hi,

I am using navit 0.5.5. on my Raspberry PI 4 and when using Navit it sometimes crashes (from 3d to 2d mode for example). The logfile just loops this error:

error:navit:do_draw:point count overflow 16384 for poly_water (0x1cfe1d,0x1074a). Increase to 17066

when routing to a destination this error is also thrown sometimes.

Does anyome know this error or a fix to it?

lains commented 1 year ago

I don't know much about the map drawing code, but the log you're seeing is coming from here: https://github.com/navit-gps/navit/blob/d85f71ecf4c48baf428da17697b43f2a11129db1/navit/graphics.c#L3328

If you're seeing this in a loop (probably with increasing count values), there will be memory allocated and you may run out of memory... but this is maybe not even the root cause of the crash you're experiencing.