Openscope: Airports with non-procedural arrival spawn patterns crash game

Created on 25 Apr 2017  路  8Comments  路  Source: openscope/openscope

iMac 21.5-inch, Late 2015
macOS Sierra
Chrome 57...
Playing EIDW
When first arrival announces on screen, app freezes. Developer tools show (repeated over and over):

#

AircraftStripView.js:387 Uncaught TypeError: Cannot read property 'toUpperCase' of null
at AircraftStripView.value (AircraftStripView.js:387)
at AircraftInstanceModel.value (AircraftInstanceModel.js:2023)
at AircraftInstanceModel.value (AircraftInstanceModel.js:1879)
at AircraftController.value (AircraftController.js:242)
at App.value (App.js:392)
at App.js:389

#

Here's the offending line for quick reference:

#

switch (navMode) {
        case WAYPOINT_NAV_MODE.FIX:
            this.$heading.text(headingText);
            this.$destination.text(destinationText.toUpperCase());
...
BUGFIX

Most helpful comment

well 馃挬 , this looks like #370 all over again.

All 8 comments

well 馃挬 , this looks like #370 all over again.

image

@n8rzz Looks like it's a case of destinationDisplay being null because it was calculated by:
destinationDisplay = this.fms.getProcedureAndExitName(); in AircraftInstanceModel.updateStrip().

yup 馃.

because we try to set that destination property using the RouteModel and blah blah blah. I left a note in that linked issue about the root cause.

I can't believe we never ran into this when we were testing it. That's my bad, I should have run through some of these.

this issue will be resolved by #370

closing

Cool. Thanks guys.

And thank you for the report!

Fixed via #376.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erikquinn picture erikquinn  路  5Comments

DanielePancottini picture DanielePancottini  路  4Comments

blane1257 picture blane1257  路  4Comments

hadescoder19 picture hadescoder19  路  7Comments

tdawe picture tdawe  路  3Comments