albar965 / littlenavmap

Little Navmap is a free flight planner, navigation tool, moving map, airport search and airport information system for Flight Simulator X, Microsoft Flight Simulator 2020, Prepar3D and X-Plane.
https://albar965.github.io/littlenavmap.html
GNU General Public License v3.0
1.28k stars 164 forks source link

crash report #1123

Closed Eyderoe closed 5 months ago

Eyderoe commented 5 months ago

Dear albar:

This crash can be reliably triggered. it will crash when change database for me:

  1. use xp11 database
  2. select an airport and its procedure
  3. use xp12 database (sometimes crash here)
  4. select an airport and its procedure (sometimes crash here). here's the report and last one is in en. little_navmap_crashreport.zip

    may be bug report ? unistall little navmap when lnm is still running the software will still run and the folder will not be delete

sincerely, Eyderoe

albar965 commented 5 months ago

Thanks. I'll check the crash.

About the uninstall: I'll try to detect the running application. Have to see how to do this.

albar965 commented 5 months ago

Sorry but ZPDQ has no procedures here. Maybe I need a custom ZPDQ.dat file?

Ignore. Testing with ZUCK/CKG

albar965 commented 5 months ago

I found some issues where a wrong airport was selected after:

  1. Use XP12
  2. Show procedures for ZUCK
  3. Select XP11
  4. Restart LNM. As a result the procedure selection showed "no airport selected" but still a tree of procedures.

This might fix your crash but I'm not sure. I can only reproduce the inconsistent behavior but not the crash.

Eyderoe commented 5 months ago

fine now I crash with ZUCK ( hmmm... usually appear at xp11 -> xp12 (repeat it 2-3 times) here's report thanks ( little_navmap_crashreport.zip here's a en version crash ( little_navmap_crashreport.zip

albar965 commented 5 months ago

This might happen because the airport is in the Navigraph database but missing in one of the simulators. I'll send you a build once I have something to test.

Eyderoe commented 5 months ago

it seems that only I have this problem ? lol and i'm willing to try new build ( I test in VNKT VELR ZUCK ZPDQ ZUUU and all lead to crash. ZUCK(mark CKG in xp11, ZUCK in xp12), VELR(never changed between xp11 and xp12), ... and obvious these airports exist in (navigraph, xp11, xp12) win10 22H2 family ver with latest lnm

thanks a lot ,and have a good day

albar965 commented 5 months ago

it seems that only I have this problem ? lol

This happens for airports which do not exist in XP11 but in 12 or vice versa. The procedure search was not correctly updated and remained in a half-initialized state resulting in crashes sooner or later.

Did you install additional procedures manually in X-Plane?

Eyderoe commented 5 months ago

install additional procedures means sid star appr procedures? i add some, but I choose all navigraph data to test, result in same. many airports both exist in xp11 and xp12 can triger crash (hmmm...

I'm going to sleep , good night

albar965 commented 5 months ago

Try this here: https://k00.fr/ca0o2ubp I hope this fixes the issue.

Eyderoe commented 5 months ago

I'm sorry in inform you : nope little_navmap_crashreport.zip

albar965 commented 5 months ago

Meh. It blows up somewhere in the procedure search dialog code. I cannot reproduce this here. No matter how often and on what OS I try. I also tried with your settings from the ini file but no avail.

Can you send me any ZUCK.dat or other CIFP files you're using? Is the airport an add-on? If yes, can you send me the apt.dat if possible? What are the settings in the Scenery Library menu? You already mentioned "Navigraph for all" on XP11 and XP12?

Eyderoe commented 5 months ago

nope, I can crash lnm with any airport i want lol. hmm.. here crash in VNKT VNKT.txt just let the bug go, because it just happen after change database and only have one victim maybe or maybe one day I will told you if I find what cause it (probably not) image


now I hope lnm may autosave at sometimes (eg. calculation enroute, select departure or arrival airports, changes with flight plan, ...), such key points,

Eyderoe commented 5 months ago

by the way, may have a switch to choose gpx record ( whole flight or just between takeoff and landing) gpx wont record taxi now (

albar965 commented 5 months ago

Thank you for the files but still I cannot reproduce it. :slightly_frowning_face: I'll keep an eye on it. At least I found another bug already.

now I hope lnm may autosave at sometimes (eg. calculation enroute, select departure or arrival airports, changes with flight plan, ...), such key points,

Not often. You can save manually from the tools menu Save options and application state before doing anything dangerous.

by the way, may have a switch to choose gpx record ( whole flight or just between takeoff and landing) gpx wont record taxi now (

I know but takeoff and landing are easier to detect than the start of a flight. User might start sim, change airport or aircraft and whatnot which might confuse LNM.

albar965 commented 5 months ago

BTW: I found a solution to avoid uninstall or install with running LNM.

Eyderoe commented 5 months ago

is it impossible to add a sub menu to let user to choose when output gpx trail ? (whole trail or just in flight)

albar965 commented 5 months ago

is it impossible to add a sub menu to let user to choose when output gpx trail ? (whole trail or just in flight)

Sorry, not really. I'd rather work on a way to record the startup and taxi too. But this will require the user to trigger the start of a flight in LNM manually.

Eyderoe commented 5 months ago

thanks