Stop game from crashing on start #149

Closed
opened 2023-12-07 00:07:44 +00:00 by sdaveb · 0 comments
Owner

Problem Description

  • The game crashes on start because of some sort of memory access issue with ComponentStore and EntityManager

Debugging Analysis

  • It looks like ComponentStore tries to inherit from EntityManager, but that is a Singleton class. Framework classes only know about EntityManager, and so when they try to access their sibling classes in EntityManager, because everything was loaded into ComponentStore, and not EntityManager, the program crashes

Proposed Solution

(if any)

  • Both ComponentStore and EntityManager can be Singletons, but ComponentStore should just hold a reference to EntityManager, and set things up at the start of the program, and then get out of the way.
## Problem Description - The game crashes on start because of some sort of memory access issue with ComponentStore and EntityManager ## Debugging Analysis - It looks like ComponentStore tries to inherit from EntityManager, but that is a Singleton class. Framework classes only know about EntityManager, and so when they try to access their sibling classes in EntityManager, because everything was loaded into ComponentStore, and not EntityManager, the program crashes ## Proposed Solution ### (if any) - Both ComponentStore and EntityManager can be Singletons, but ComponentStore should just hold a reference to EntityManager, and set things up at the start of the program, and then get out of the way.
sdaveb added the
bug
task
labels 2023-12-07 00:07:44 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sdaveb/quartz-warriors#149
No description provided.