Comments (9)
Looks like another null value from Rectangle.__pool
. This is probably a symptom of the same issue that caused #164.
from feathersui-openfl.
I got again crash today clicking on same Button, but stack trace look a bit different. Maybe it will be helpful.
[2024-02-28 09:54:05][FATAL][Genesis/Source/genesis/application/GenesisApplication.hx:557] Fatal exception : Null Object Reference
Details : Exception: Null Object Reference
Called from openfl.display.DisplayObject.__dispatchWithCapture (openfl/display/DisplayObject.hx line 1461)
Called from openfl.display.DisplayObject.dispatchEvent (openfl/display/DisplayObject.hx line 1134)
Called from feathers.events.FeathersEvent.dispatch (feathers/events/FeathersEvent.hx line 136)
Called from feathers.controls.dataRenderers.LayoutGroupItemRenderer.set_selected (feathers/controls/dataRenderers/LayoutGroupItemRenderer.hx line 129)
Called from feathers.controls.ListView.refreshItemRendererProperties (feathers/controls/ListView.hx line 1364)
Called from feathers.controls.ListView.updateItemRenderer (feathers/controls/ListView.hx line 1337)
Called from feathers.controls.ListView.findUnrenderedData (feathers/controls/ListView.hx line 1269)
Called from feathers.controls.ListView.refreshItemRenderers (feathers/controls/ListView.hx line 1151)
Called from feathers.controls.supportClasses.AdvancedLayoutViewPort.refreshLayout (feathers/controls/supportClasses/AdvancedLayoutViewPort.hx line 350)
Called from feathers.controls.supportClasses.AdvancedLayoutViewPort.update (feathers/controls/supportClasses/AdvancedLayoutViewPort.hx line 334)
Called from feathers.core.ValidatingSprite.runWithInvalidationFlagsOnly (feathers/core/ValidatingSprite.hx line 183)
Called from feathers.controls.supportClasses.AdvancedLayoutViewPort.update (feathers/controls/supportClasses/AdvancedLayoutViewPort.hx line 329)
Called from feathers.core.ValidatingSprite.validateNow (feathers/core/ValidatingSprite.hx line 289)
Called from feathers.core.FeathersControl.validateNow (feathers/core/FeathersControl.hx line 715)
Called from feathers.controls.supportClasses.BaseScrollContainer.refreshViewPort (feathers/controls/supportClasses/BaseScrollContainer.hx line 1294)
Called from feathers.controls.supportClasses.BaseScrollContainer.update (feathers/controls/supportClasses/BaseScrollContainer.hx line 1105)
Called from feathers.controls.ListView.update (feathers/controls/ListView.hx line 1071)
Called from feathers.core.ValidatingSprite.validateNow (feathers/core/ValidatingSprite.hx line 289)
Called from feathers.core.FeathersControl.validateNow (feathers/core/FeathersControl.hx line 715)
Called from feathers.core.ValidationQueue.validateNow (feathers/core/ValidationQueue.hx line 156)
Called from feathers.core.ValidationQueue.validationQueue_stage_renderHandler (feathers/core/ValidationQueue.hx line 162)
Called from openfl.events.EventDispatcher.__dispatchEvent (openfl/events/EventDispatcher.hx line 426)
Called from openfl.display.DisplayObject.__dispatch (openfl/display/DisplayObject.hx line 1398)
Called from openfl.display.Stage.__broadcastEvent (openfl/display/Stage.hx line 1187)
Called from openfl.display.Stage.__render (openfl/display/Stage.hx line 2062)
Called from openfl.display.Stage.__onLimeRender (openfl/display/Stage.hx line 2186)
Called from lime.app._Event_lime_graphics_RenderContext_Void.dispatch (lime/_internal/macros/EventMacro.hx line 91)
Called from lime._internal.backend.native.NativeApplication.handleRenderEvent (lime/_internal/backend/native/NativeApplication.hx line 375)
Called from lime._internal.backend.native.NativeApplication.exec (lime/_internal/backend/native/NativeApplication.hx line 146)
Called from lime.app.Application.exec (lime/app/Application.hx line 150)
Called from openfl.display.Application.exec (openfl/display/Application.hx line 130)
Called from ApplicationMain.create (ApplicationMain.hx line 142)
Native : null
Stack : null
from feathersui-openfl.
Interesting! That one also appears to be caused by an ObjectPool
returning null
, but it's a different ObjectPool
this time. Perhaps this means it is a bug in the ObjectPool
class.
from feathersui-openfl.
I just catch that exception in Moonshine debugger. Here is screenshot. Maybe it helps you at some point:
![Screenshot 2024-03-21 at 13 35 01](https://private-user-images.githubusercontent.com/24554795/315292035-7a798797-a85d-4fbc-8769-989bb1faecb9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNDcyMjMsIm5iZiI6MTcyMTI0NjkyMywicGF0aCI6Ii8yNDU1NDc5NS8zMTUyOTIwMzUtN2E3OTg3OTctYTg1ZC00ZmJjLTg3NjktOTg5YmIxZmFlY2I5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDIwMDg0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThiY2E0NDc2NGQxZmY4MTQ5ZTYxN2Q3OTQxMzc1YWRkZTQxMTI5OTRiODI3NDVkNDVmOThkNGJkNjFiMWEwZmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sKJhwqvaVwzYaWsrfXYXfcxncJRP6QmgBx0At4eNlzE)
I think stack var is null. Should I do something specific when I catch that again ?
from feathersui-openfl.
I just made this small change to ObjectPool
in Lime: openfl/lime@5f63ef1
If you could try that change in ObjectPool
with a debug build, that might help give us some clues.
from feathersui-openfl.
I just made this small change to
ObjectPool
in Lime: openfl/lime@5f63ef1If you could try that change in
ObjectPool
with a debug build, that might help give us some clues.
Maybe it helped in a way that I got crash doing almost same thing - clicking on button, but exception looks different:
![Screenshot 2024-03-22 at 12 55 40](https://private-user-images.githubusercontent.com/24554795/315999640-8764a47f-d0dc-4db6-a889-e81453f45913.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNDcyMjMsIm5iZiI6MTcyMTI0NjkyMywicGF0aCI6Ii8yNDU1NDc5NS8zMTU5OTk2NDAtODc2NGE0N2YtZDBkYy00ZGI2LWE4ODktZTgxNDUzZjQ1OTEzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDIwMDg0M1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWIxYjlmNTEyYjYwY2FhYmE2ZGMxZGE5MzgxNTNhMjRlOWI3ZDNkYjZmNDc2ODZiNjE5MDgzNzBjYzNiYzM4NGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4jd-LwbnpUtvQf5SjiobXP3HG-DhxlFtsbc54dDaqQc)
In exception I see following classes ToastManager and Toast
from feathersui-openfl.
This one came next:
: [2024-03-22 15:29:21][FATAL][Genesis/Source/genesis/application/GenesisApplication.hx:557] Fatal exception : [lime.utils.ObjectPool] ERROR: Object has already been released
: Details : Exception: [lime.utils.ObjectPool] ERROR: Object has already been released
: Called from lime.utils.Log.error (lime/utils/Log.hx line 37)
: Called from lime.utils.ObjectPool.release (lime/utils/ObjectPool.hx line 106)
: Called from openfl.text.TextField.__getBounds (openfl/text/TextField.hx line 1813)
: Called from openfl.display.DisplayObject.getBounds (openfl/display/DisplayObject.hx line 1184)
: Called from openfl.text.TextField.__updateScrollH (openfl/text/TextField.hx line 2304)
: Called from openfl.text.TextField.setSelection (openfl/text/TextField.hx line 1380)
: Called from openfl.text.TextField.__updateLayout (openfl/text/TextField.hx line 2264)
: Called from openfl.text.TextField.get_textWidth (openfl/text/TextField.hx line 3048)
: Called from feathers.controls.Label.refreshText (feathers/controls/Label.hx line 749)
: Called from feathers.controls.Label.update (feathers/controls/Label.hx line 583)
: Called from feathers.core.ValidatingSprite.validateNow (feathers/core/ValidatingSprite.hx line 289)
: Called from feathers.core.FeathersControl.validateNow (feathers/core/FeathersControl.hx line 715)
: Called from feathers.core.ValidationQueue.validateNow (feathers/core/ValidationQueue.hx line 156)
: Called from feathers.core.ValidationQueue.validationQueue_stage_renderHandler (feathers/core/ValidationQueue.hx line 162)
: Called from openfl.events.EventDispatcher.__dispatchEvent (openfl/events/EventDispatcher.hx line 426)
: Called from openfl.display.DisplayObject.__dispatch (openfl/display/DisplayObject.hx line 1398)
: Called from openfl.display.Stage.__broadcastEvent (openfl/display/Stage.hx line 1187)
: Called from openfl.display.Stage.__render (openfl/display/Stage.hx line 2062)
: Called from openfl.display.Stage.__onLimeRender (openfl/display/Stage.hx line 2186)
: Called from lime.app._Event_lime_graphics_RenderContext_Void.dispatch (lime/_internal/macros/EventMacro.hx line 91)
: Called from lime._internal.backend.native.NativeApplication.handleRenderEvent (lime/_internal/backend/native/NativeApplication.hx line 375)
: Called from lime._internal.backend.native.NativeApplication.exec (lime/_internal/backend/native/NativeApplication.hx line 146)
: Called from lime.app.Application.exec (lime/app/Application.hx line 150)
: Called from openfl.display.Application.exec (openfl/display/Application.hx line 130)
: Called from ApplicationMain.create (ApplicationMain.hx line 142)
: Native : null
: Stack : null
: [2024-03-22 15:29:21][FATAL][Genesis/Source/genesis/application/GenesisApplication.hx:557] Fatal exception : [lime.utils.ObjectPool] ERROR: Object has already been released
: Details : Exception: [lime.utils.ObjectPool] ERROR: Object has already been released
: Called from lime.utils.Log.error (lime/utils/Log.hx line 37)
: Called from lime.utils.ObjectPool.release (lime/utils/ObjectPool.hx line 106)
: Called from openfl.text.TextField.__getBounds (openfl/text/TextField.hx line 1813)
: Called from openfl.display.DisplayObject.getBounds (openfl/display/DisplayObject.hx line 1184)
: Called from openfl.text.TextField.__updateScrollH (openfl/text/TextField.hx line 2304)
: Called from openfl.text.TextField.setSelection (openfl/text/TextField.hx line 1380)
: Called from openfl.text.TextField.__updateLayout (openfl/text/TextField.hx line 2264)
: Called from openfl.text.TextField.get_textWidth (openfl/text/TextField.hx line 3048)
: Called from feathers.controls.Label.refreshText (feathers/controls/Label.hx line 749)
: Called from feathers.controls.Label.update (feathers/controls/Label.hx line 583)
: Called from feathers.core.ValidatingSprite.validateNow (feathers/core/ValidatingSprite.hx line 289)
: Called from feathers.core.FeathersControl.validateNow (feathers/core/FeathersControl.hx line 715)
: Called from feathers.core.ValidationQueue.validateNow (feathers/core/ValidationQueue.hx line 156)
: Called from feathers.core.ValidationQueue.validationQueue_stage_renderHandler (feathers/core/ValidationQueue.hx line 162)
: Called from openfl.events.EventDispatcher.__dispatchEvent (openfl/events/EventDispatcher.hx line 426)
: Called from openfl.display.DisplayObject.__dispatch (openfl/display/DisplayObject.hx line 1398)
: Called from openfl.display.Stage.__broadcastEvent (openfl/display/Stage.hx line 1187)
: Called from openfl.display.Stage.__render (openfl/display/Stage.hx line 2062)
: Called from openfl.display.Stage.__onLimeRender (openfl/display/Stage.hx line 2186)
: Called from lime.app._Event_lime_graphics_RenderContext_Void.dispatch (lime/_internal/macros/EventMacro.hx line 91)
: Called from lime._internal.backend.native.NativeApplication.handleRenderEvent (lime/_internal/backend/native/NativeApplication.hx line 375)
: Called from lime._internal.backend.native.NativeApplication.exec (lime/_internal/backend/native/NativeApplication.hx line 146)
: Called from lime.app.Application.exec (lime/app/Application.hx line 150)
: Called from openfl.display.Application.exec (openfl/display/Application.hx line 130)
: Called from ApplicationMain.create (ApplicationMain.hx line 142)
from feathersui-openfl.
I just catch that exception in Moonshine debugger. Here is screenshot. Maybe it helps you at some point:
I think stack var is null. Should I do something specific when I catch that again ?
@joshtynjala I got today exactly the same stacktrace. I'm using all your changes, feathers is updated to dev version and other libs as well.
from feathersui-openfl.
So far, I have been unable to reproduce any of the exceptions on my computer, and I can't think of anything else that I can try until we discover more clues. It is clear that this is related to the ObjectPool
class in OpenFL, and I have tried various things to see if I could make an ObjectPool
unexpectedly return null, but so far, I have been unsuccessful.
from feathersui-openfl.
Related Issues (20)
- TextInput: Add new property to allow prompt to float above input text when focused
- ValidatingSprite using map instead of flags HOT 3
- Only the first row is rendered in `GridView` in a specific configuration.
- GridView: skin property for region to the right of headers and above scroll bar
- AssetLoader: property to display BitmapData and/or an arbitrary DisplayObject instead of loading with a string
- ToggleSwitch: optional on and off text
- Exception: Null Object Reference - Rectangle.hx HOT 5
- ItemRenderer: option to disable mouse/touch states
- ListView: scroll selected item fully into view if it is clicked/tapped
- Alert: optional close button in header
- New Component: Window/dialog: Similar to Alert, but allows completely custom content
- Inline Label cutting off in AIR HOT 2
- Fade in throwing reference error HOT 2
- HorizontalAlign.JUSTIFY not working in AIR HOT 1
- ListView: option to wrap keyboard navigation with arrow keys
- ListView: option to commit selection on item trigger only
- LongPress: property for maximum distance moved between mouseDown and mouseUp
- ToggleSwitch: optional on icon and off icon
- Label: expose antiAliasType property and pass to internal TextField (same for other text controls)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from feathersui-openfl.