Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Please Help

Discussion in 'Project Tiny' started by imtiajahmed, Jun 15, 2019.

  1. imtiajahmed

    imtiajahmed

    Joined:
    Jan 6, 2019
    Posts:
    2
    We did started our project for our client to show them how it will look on FB Messenger on Tiny (typescript). It's a big sized game with lots of entities, components etc. We know that there is C# version available now but we are so close to our deadline that we can't move our project to C# now. It would be much appreciated if anyone can help us with the errors we are getting or at least point to a right direction.

    We are getting strange errors occasionally and the game freezes.

    Points to note:
    • This project has lots of entities, components etc. A lot of instantiating/ destroying is going on at run-time following the sample projects and best practices of this forum;
    • Lots of transparent textures are used as backgrounds and there are numerous number of Sprite2DSequence textures are used in different entities;
    • Very few removal of components at run-time (Only tag components of coins upon collected etc.). No physics2D used, only Hitbox2D;
    • Even at two-third completion of the project, everything looks fine, though the errors came up at very late of the game-play but not always at a fixed position/time;
    • Now errors come up after 3 or more levels on OpenGL build and before 3 levels on Canvas build. Firefox and Chrome also differs on coming up the errors with same build;
    • The more entities/components we are adding to the project, the sooner the errors come up;
    • The first lines of error points to some HEAP methods every time, though we can see there are available heap memories in browser consoles;
    • Tested with tiny 0.14.3 and 0.14.5 in seperate projects but almost same results;
    • Animating UI elements seems to make it worse and the errors come up much sooner, almost within 1-2 levels of the game;
    For your convenience, here are 3 different errors we are getting-

    Uncaught abort() at Error
    at Object.abort (http://localhost:19050/game.js:245:37)
    at _abort (http://localhost:19050/game.js:636:17)
    at __ZN2ut17ComponentRegistry18allocComponentInfoEv (http://localhost:19050/game.js:49302:22)
    at __Z30registerOpaqueComponentPrivateiijPKcPiiPFvPviEiPFvPKvS2_iEi (http://localhost:19050/game.js:30291:8)
    at __ZN2ut17ComponentRegistry23registerOpaqueComponentEiijPKcPiiPFvPviEiPFvPKvS4_iEi (http://localhost:19050/game.js:62394:17)
    at _ut_component_register_cid (http://localhost:19050/game.js:64508:9)
    at Function.get (http://localhost:19050/game.js:105963:284)
    at World.createArchetype (http://localhost:19050/game.js:84779:41)
    at Object.entities.game.CarpetToToiletCutScene.load (http://localhost:19050/game.js:128420:23)
    at Function.EntityGroup.instantiate (http://localhost:19050/game.js:165694:25)
    abort @ game.js:245

    _abort @ game.js:636

    __ZN2ut17ComponentRegistry18allocComponentInfoEv @ game.js:49303

    __Z30registerOpaqueComponentPrivateiijPKcPiiPFvPviEiPFvPKvS2_iEi @ game.js:30292

    __ZN2ut17ComponentRegistry23registerOpaqueComponentEiijPKcPiiPFvPviEiPFvPKvS4_iEi @ game.js:62395

    _ut_component_register_cid @ game.js:64509

    get @ game.js:105963

    (anonymous) @ game.js:84779

    entities.game.CarpetToToiletCutScene.load @ game.js:128420

    EntityGroup.instantiate @ game.js:165694

    UtilityServices.InstantiateEntityGroup @ game.js:165071

    FaderService.LoadNextScene @ game.js:164526

    (anonymous) @ game.js:164511

    setTimeout (async)


    FaderService.DestroyCurrentScene @ game.js:164510

    (anonymous) @ game.js:164497

    setTimeout (async)


    FaderService.LoadFader @ game.js:164496

    SceneSwitcherSystem.CalculateAndSpawnNextScene @ game.js:162948

    _loop_1 @ game.js:163993

    (anonymous) @ game.js:164001

    (anonymous) @ game.js:84872

    PlayerCollisionSystem.OnUpdate @ game.js:163898

    (anonymous) @ game.js:116859

    (anonymous) @ game.js:485

    _emscripten_asm_const_iiii @ game.js:504

    _ut_SystemFn_call @ game.js:79533

    __ZNSt3__228__invoke_void_return_wrapperIvE6__callIJRPFvPN2ut9SchedulerEPNS3_12ManagerWorldEPvES5_S7_S8_EEEvDpOT_ @ game.js:75505

    __ZNSt3__210__function6__funcINS_6__bindIRFvjPN2ut9SchedulerEPNS3_12ManagerWorldEEJRjRKNS_12placeholders4__phILi1EEERKNSC_ILi2EEEEEENS_9allocatorISJ_EEFvS5_S7_EEclEOS5_OS7_ @ game.js:60406

    __ZNKSt3__28functionIFvPN2ut9SchedulerEPNS1_12ManagerWorldEEEclES3_S5_ @ game.js:63609

    __ZN2ut12SimpleSystem6updateERNS_9SchedulerERNS_12ManagerWorldE @ game.js:64051

    __ZN2ut9Scheduler3runENSt3__26chrono10time_pointINS2_12steady_clockENS2_8durationIxNS1_5ratioILx1ELx1000000000EEEEEEE @ game.js:17450

    __ZN2ut9Scheduler3runEv @ game.js:58931

    __ZN2ut4HTML11HTMLPrivate17mainLoopIterationEv @ game.js:36163

    __ZN2ut4HTML11HTMLService17mainLoopForwarderEv @ game.js:75277

    dynCall_v @ game.js:82591

    mainLoop @ game.js:983

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop
    Uncaught abort() at Error
    at Object.abort (http://localhost:19050/game.js:245:37)
    at _abort (http://localhost:19050/game.js:636:17)
    at __ZN2ut17ComponentRegistry18allocComponentInfoEv (http://localhost:19050/game.js:49302:22)
    at __Z30registerOpaqueComponentPrivateiijPKcPiiPFvPviEiPFvPKvS2_iEi (http://localhost:19050/game.js:30291:8)
    at __ZN2ut17ComponentRegistry23registerOpaqueComponentEiijPKcPiiPFvPviEiPFvPKvS4_iEi (http://localhost:19050/game.js:62394:17)
    at _ut_component_register_cid (http://localhost:19050/game.js:64508:9)
    at Function.get (http://localhost:19050/game.js:106373:257)
    at World.createArchetype (http://localhost:19050/game.js:84779:41)
    at Object.entities.game.PoliceCarGame.load (http://localhost:19050/game.js:136959:23)
    at Function.EntityGroup.instantiate (http://localhost:19050/game.js:165694:25)
    abort @ game.js:245

    _abort @ game.js:636

    __ZN2ut17ComponentRegistry18allocComponentInfoEv @ game.js:49303

    __Z30registerOpaqueComponentPrivateiijPKcPiiPFvPviEiPFvPKvS2_iEi @ game.js:30292

    __ZN2ut17ComponentRegistry23registerOpaqueComponentEiijPKcPiiPFvPviEiPFvPKvS4_iEi @ game.js:62395

    _ut_component_register_cid @ game.js:64509

    get @ game.js:106373

    (anonymous) @ game.js:84779

    entities.game.PoliceCarGame.load @ game.js:136959

    EntityGroup.instantiate @ game.js:165694

    UtilityServices.InstantiateEntityGroup @ game.js:165071

    FaderService.LoadNextScene @ game.js:164526

    (anonymous) @ game.js:164511

    setTimeout (async)


    FaderService.DestroyCurrentScene @ game.js:164510

    (anonymous) @ game.js:164497

    setTimeout (async)


    FaderService.LoadFader @ game.js:164496

    SceneSwitcherSystem.CalculateAndSpawnNextScene @ game.js:162948

    (anonymous) @ game.js:162087

    (anonymous) @ game.js:84865

    CutSceneBehaviour.OnEntityUpdate @ game.js:162083

    (anonymous) @ game.js:116989

    (anonymous) @ game.js:165824

    (anonymous) @ game.js:84859

    game.CutSceneBehaviourFilter.ForEach @ game.js:165822

    (anonymous) @ game.js:116975

    (anonymous) @ game.js:485

    _emscripten_asm_const_iiii @ game.js:504

    _ut_SystemFn_call @ game.js:79533

    __ZNSt3__228__invoke_void_return_wrapperIvE6__callIJRPFvPN2ut9SchedulerEPNS3_12ManagerWorldEPvES5_S7_S8_EEEvDpOT_ @ game.js:75505

    __ZNSt3__210__function6__funcINS_6__bindIRFvjPN2ut9SchedulerEPNS3_12ManagerWorldEEJRjRKNS_12placeholders4__phILi1EEERKNSC_ILi2EEEEEENS_9allocatorISJ_EEFvS5_S7_EEclEOS5_OS7_ @ game.js:60406

    __ZNKSt3__28functionIFvPN2ut9SchedulerEPNS1_12ManagerWorldEEEclES3_S5_ @ game.js:63609

    __ZN2ut12SimpleSystem6updateERNS_9SchedulerERNS_12ManagerWorldE @ game.js:64051

    __ZN2ut9Scheduler3runENSt3__26chrono10time_pointINS2_12steady_clockENS2_8durationIxNS1_5ratioILx1ELx1000000000EEEEEEE @ game.js:17450

    __ZN2ut9Scheduler3runEv @ game.js:58931

    __ZN2ut4HTML11HTMLPrivate17mainLoopIterationEv @ game.js:36163

    __ZN2ut4HTML11HTMLService17mainLoopForwarderEv @ game.js:75277

    dynCall_v @ game.js:82591

    mainLoop @ game.js:983

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop
    Uncaught abort() at Error
    at Object.abort (http://localhost:19050/game.js:245:37)
    at _abort (http://localhost:19050/game.js:636:17)
    at __ZN2ut17ComponentRegistry18allocComponentInfoEv (http://localhost:19050/game.js:49302:22)
    at __Z30registerOpaqueComponentPrivateiijPKcPiiPFvPviEiPFvPKvS2_iEi (http://localhost:19050/game.js:30291:8)
    at __ZN2ut17ComponentRegistry23registerOpaqueComponentEiijPKcPiiPFvPviEiPFvPKvS4_iEi (http://localhost:19050/game.js:62394:17)
    at _ut_component_register_cid (http://localhost:19050/game.js:64508:9)
    at Function.get (http://localhost:19050/game.js:106291:281)
    at World.createArchetype (http://localhost:19050/game.js:84779:41)
    at Object.entities.game.UnicornToKingCutScene.load (http://localhost:19050/game.js:134157:23)
    at Function.EntityGroup.instantiate (http://localhost:19050/game.js:165695:25)
    abort @ game.js:245

    _abort @ game.js:636

    __ZN2ut17ComponentRegistry18allocComponentInfoEv @ game.js:49303

    __Z30registerOpaqueComponentPrivateiijPKcPiiPFvPviEiPFvPKvS2_iEi @ game.js:30292

    __ZN2ut17ComponentRegistry23registerOpaqueComponentEiijPKcPiiPFvPviEiPFvPKvS4_iEi @ game.js:62395

    _ut_component_register_cid @ game.js:64509

    get @ game.js:106291

    (anonymous) @ game.js:84779

    entities.game.UnicornToKingCutScene.load @ game.js:134157

    EntityGroup.instantiate @ game.js:165695

    UtilityServices.InstantiateEntityGroup @ game.js:165072

    FaderService.LoadNextScene @ game.js:164527

    (anonymous) @ game.js:164512

    setTimeout (async)


    FaderService.DestroyCurrentScene @ game.js:164511

    (anonymous) @ game.js:164498

    setTimeout (async)


    FaderService.LoadFader @ game.js:164497

    SceneSwitcherSystem.CalculateAndSpawnNextScene @ game.js:162935

    _loop_1 @ game.js:163994

    (anonymous) @ game.js:164002

    (anonymous) @ game.js:84872

    PlayerCollisionSystem.OnUpdate @ game.js:163899

    (anonymous) @ game.js:116859

    (anonymous) @ game.js:485

    _emscripten_asm_const_iiii @ game.js:504

    _ut_SystemFn_call @ game.js:79533

    __ZNSt3__228__invoke_void_return_wrapperIvE6__callIJRPFvPN2ut9SchedulerEPNS3_12ManagerWorldEPvES5_S7_S8_EEEvDpOT_ @ game.js:75505

    __ZNSt3__210__function6__funcINS_6__bindIRFvjPN2ut9SchedulerEPNS3_12ManagerWorldEEJRjRKNS_12placeholders4__phILi1EEERKNSC_ILi2EEEEEENS_9allocatorISJ_EEFvS5_S7_EEclEOS5_OS7_ @ game.js:60406

    __ZNKSt3__28functionIFvPN2ut9SchedulerEPNS1_12ManagerWorldEEEclES3_S5_ @ game.js:63609

    __ZN2ut12SimpleSystem6updateERNS_9SchedulerERNS_12ManagerWorldE @ game.js:64051

    __ZN2ut9Scheduler3runENSt3__26chrono10time_pointINS2_12steady_clockENS2_8durationIxNS1_5ratioILx1ELx1000000000EEEEEEE @ game.js:17450

    __ZN2ut9Scheduler3runEv @ game.js:58931

    __ZN2ut4HTML11HTMLPrivate17mainLoopIterationEv @ game.js:36163

    __ZN2ut4HTML11HTMLService17mainLoopForwarderEv @ game.js:75277

    dynCall_v @ game.js:82591

    mainLoop @ game.js:983

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop @ game.js:984

    requestAnimationFrame (async)


    mainLoop

    Sorry for the long post, but we thaught the information given may be useful. Thanks in advance.