Skip to content

Uobject Max Count reached Crash #145

@Musgi

Description

@Musgi

Package is crashing in a 2-3 mins duration after runing duo to the issue given in the image with crash report
creating UArcGISSpatialReference even for the same component instead of updating it is causing very heavy load on the GC it cant keep up with the amount of objects being created and the object pool max limit is reached within few mins .
This is very clear especially in the StreamLayer Level if you run it and take alook on the amounf of Objects being created as shown in the second image with the red outline , This number will grow extreemly fast in this level due to having alot of UArcGISLocationComponents so it raches very quickly as well. Package the sample project with this level as the main game level and test the level is the 4th image.
In normal levels the issue remains the same except that the growth is not as fast so it wont happen unless the app left running for a while.

5t Image include a try to fix it by caching the UArcGISSpatialReference in a map and try to reuse i needed oen with the same key points but it failed and crashed due to map entries turning invalid ((Name=Illegal name (block index out of range))) and getting this as their value crash happens on GetHandle() Function .

EDIT: I attached another image shwoing the acctual number of ArcGISSpatialReference being created and logs equivelan to it using this
obj list class=ArcGISSpatialReference
in the level while runnin the game or in eidtor will always show an increase in count with doing nothing .When firing up StreamLayer or doing anything related to a arcgislocationcomponent this nnumbers go up quickly.
Image
Image
Image

Image

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions