Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception Error #1010: A term is undefined and has no properties #4

Closed
JohanDegraeve opened this issue Feb 20, 2018 · 1 comment
Closed

Comments

@JohanDegraeve
Copy link
Collaborator

This is 1.0.7. using Flash Builder
Went to advanced settings, changed to "agresssive"

then clicked back (i think)
then exception occurred;

black screen shown, even after restarting.
It looks I have to reinstall the app

2018-02-20 23:21:01.119 spiketrace DeepSleepService.as : Starting deep sleep interval!
TypeError: Error #1010: A term is undefined and has no properties.
at ui.chart::GlucoseChart/drawGraph()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/chart/GlucoseChart.as:309]
at ui.screens::ChartScreen/setGlucoseChart()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/screens/ChartScreen.as:143]
at ui.screens::ChartScreen/onCreation()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/screens/ChartScreen.as:325]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:156]
at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:126]
at starling.display::DisplayObject/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObject.as:728]
at starling.events::EventDispatcher/dispatchEventWith()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:207]
at feathers.core::FeathersControl/validate()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/core/FeathersControl.as:2048]
at feathers.controls::ScrollContainer/validate()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/ScrollContainer.as:791]
at feathers.controls.supportClasses::BaseScreenNavigator/layoutChildren()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/supportClasses/BaseScreenNavigator.as:886]
at feathers.controls.supportClasses::BaseScreenNavigator/draw()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/supportClasses/BaseScreenNavigator.as:480]
at feathers.core::FeathersControl/validate()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/core/FeathersControl.as:2026]
at feathers.core::ValidationQueue/advanceTime()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/core/ValidationQueue.as:173]
at feathers.controls.supportClasses::BaseScreenNavigator/showScreenInternal()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/supportClasses/BaseScreenNavigator.as:765]
at feathers.controls::StackScreenNavigator/popScreen()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/StackScreenNavigator.as:554]
at feathers.controls::StackScreenNavigator/popEventListener()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/StackScreenNavigator.as:1090]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:156]
at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:126]
at starling.display::DisplayObject/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObject.as:728]
at starling.events::EventDispatcher/dispatchEventWith()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:207]
at ui.screens::BaseSubScreen/onBackButtonTriggered()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/screens/BaseSubScreen.as:79]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:156]
at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:126]
at starling.display::DisplayObject/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObject.as:728]
at starling.events::EventDispatcher/dispatchEventWith()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:207]
at feathers.utils.touch::TapToTrigger/target_touchHandler()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/utils/touch/TapToTrigger.as:205]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:156]
at starling.events::TouchEvent/dispatch()[/Users/redge/Development/starling/starling/src/starling/events/TouchEvent.as:194]
at starling.events::Touch/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/events/Touch.as:231]
at starling.events::TouchProcessor/processTouches()[/Users/redge/Development/starling/starling/src/starling/events/TouchProcessor.as:213]
at starling.events::TouchProcessor/advanceTime()[/Users/redge/Development/starling/starling/src/starling/events/TouchProcessor.as:158]
at starling.core::Starling/advanceTime()[/Users/redge/Development/starling/starling/src/starling/core/Starling.as:405]
at starling.core::Starling/nextFrame()[/Users/redge/Development/starling/starling/src/starling/core/Starling.as:392]
at starling.core::Starling/onEnterFrame()[/Users/redge/Development/starling/starling/src/starling/core/Starling.as:612]

second time (after restart flash builder)
[Starling] Context ready. Display Driver: OpenGL (Baseline Extended)
Database.init
Database.as : Attempting to open database in update mode. Database:0001
[SWF] com.distriqt.Notifications - 26,247 bytes after decompression
[SWF] com.freshplanet.AirBackgroundFetch - 15,554 bytes after decompression
[SWF] adobe.nativeExtension.3DiOS - 2,991 bytes after decompression
[SWF] Spike.swf - 4,966,364 bytes after decompression
Database.as : SQL Connection successfully opened. Database:0002
Database.as : in method createtables
2018-02-20 23:24:08.163 spiketrace interfaceController.as : Database initialized successfully!
TypeError: Error #1010: A term is undefined and has no properties.
at ui.chart::GlucoseChart/drawGraph()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/chart/GlucoseChart.as:309]
at ui.screens::ChartScreen/setGlucoseChart()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/screens/ChartScreen.as:143]
at ui.screens::ChartScreen/onCreation()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/screens/ChartScreen.as:325]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:156]
at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:126]
at starling.display::DisplayObject/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObject.as:728]
at starling.events::EventDispatcher/dispatchEventWith()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:207]
at feathers.core::FeathersControl/validate()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/core/FeathersControl.as:2048]
at feathers.controls::ScrollContainer/validate()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/ScrollContainer.as:791]
at feathers.controls.supportClasses::BaseScreenNavigator/layoutChildren()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/supportClasses/BaseScreenNavigator.as:886]
at feathers.controls.supportClasses::BaseScreenNavigator/draw()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/supportClasses/BaseScreenNavigator.as:480]
at feathers.core::FeathersControl/validate()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/core/FeathersControl.as:2026]
at feathers.controls.supportClasses::BaseScreenNavigator/showScreenInternal()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/supportClasses/BaseScreenNavigator.as:769]
at feathers.controls::StackScreenNavigator/stackScreenNavigator_initializeHandler()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/controls/StackScreenNavigator.as:1126]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:156]
at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:126]
at starling.display::DisplayObject/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObject.as:728]
at starling.events::EventDispatcher/dispatchEventWith()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:207]
at feathers.core::FeathersControl/initializeNow()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/core/FeathersControl.as:2203]
at feathers.core::FeathersControl/feathersControl_addedToStageHandler()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/libs/feathers/core/FeathersControl.as:2597]
at starling.events::EventDispatcher/invokeEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:156]
at starling.events::EventDispatcher/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/events/EventDispatcher.as:126]
at starling.display::DisplayObject/dispatchEvent()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObject.as:728]
at starling.display::DisplayObjectContainer/broadcastEvent()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObjectContainer.as:425]
at starling.display::DisplayObjectContainer/broadcastEventWith()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObjectContainer.as:435]
at starling.display::DisplayObjectContainer/addChildAt()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObjectContainer.as:135]
at starling.display::DisplayObjectContainer/addChild()[/Users/redge/Development/starling/starling/src/starling/display/DisplayObjectContainer.as:108]
at ui::AppInterface/init()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/ui/AppInterface.as:227]
at Function/model:ModelLocator/$construct/model:logReceivedFromDatabase()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/model/ModelLocator.as:169]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at Function/database:Database/getLoggings/database:loggingsRetrieved()[/Users/johandegraeve/OneDrive/Adobe FB Projects/Feathers/spike/src/database/Database.as:888]

@miguelkennedy
Copy link
Collaborator

Never saw this happened to me but I made some safeguards in the code... If the line is undefined we assume an index of 0

miguelkennedy pushed a commit that referenced this issue Feb 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants