I working on my project long time ago, But Android force me to update API to at least Level 33,
Actually I was used Unity 2021.3.16f1 LTS before, But this version can’t build Android API Level 33
so, I decide to changed Unity version to 2022.3.13f1 (this should be the latest version)
But this version having so many performance issue, even my project never changed anything.
I just build to XCode for test, my XCode also version 15.01, everything should be new!
I can go to main menu and play scene, But it stop! by crashed after 30 second!
and it show this error on XCode console, EXC_BAD_ACCESS
and in memory panel, it grow up to 500++MB!
actually, it never up to 300MB before,
this seem like double of memory using,
I use Profiler to check also, the memory of Texture is about 300-400MB
this should be the cause, But this game has everything same as before!
I never add more script or anything…
why it start took so much memory after update to Unity 2022?
I can’t go further because of this issue!
my game named “Santhai” and it sell on store 2 years ago…
Hmm,
This seems vaaaaguely similar to this , which might mean it similarly could be related to a race condition (which I mentioned in the other thread) that’s fixed on 2022.3.14f1, but there’s not enough info here to tell. Do you have a callstack from XCode that you could share?
Yes, in xcode after crashed, it show me this error log
"2023-11-17 11:25:51.000884+0700 Santhai[94457:26412747] UnityIAP UnityEarlyTransactionObserver: Created
2023-11-17 11:25:51.001969+0700 Santhai[94457:26412747] UnityIAP UnityEarlyTransactionObserver: Registered for lifecycle events
CrashReporter: initialized
2023-11-17 11:25:51.147446+0700 Santhai[94457:26412747] Built from ‘2022.3/staging’ branch, Version ‘2022.3.13f1 (5f90a5ebde0f)’, Build type ‘Release’, Scripting Backend ‘il2cpp’
2023-11-17 11:25:51.147835+0700 Santhai[94457:26412747] MemoryManager: Using ‘Default’ Allocator.
[UnityMemory] Configuration Parameters - Can be set up in boot.config
“memorysetup-allocator-temp-initial-block-size-main=262144”
“memorysetup-allocator-temp-initial-block-size-worker=262144”
“memorysetup-bucket-allocator-granularity=16”
“memorysetup-bucket-allocator-bucket-count=8”
“memorysetup-bucket-allocator-block-size=4194304”
“memorysetup-bucket-allocator-block-count=1”
“memorysetup-main-allocator-block-size=16777216”
“memorysetup-thread-allocator-block-size=16777216”
“memorysetup-gfx-main-allocator-block-size=16777216”
“memorysetup-gfx-thread-allocator-block-size=16777216”
“memorysetup-cache-allocator-block-size=4194304”
“memorysetup-typetree-allocator-block-size=2097152”
“memorysetup-profiler-bucket-allocator-granularity=16”
“memorysetup-profiler-bucket-allocator-bucket-count=8”
“memorysetup-profiler-bucket-allocator-block-size=4194304”
“memorysetup-profiler-bucket-allocator-block-count=1”
“memorysetup-profiler-allocator-block-size=16777216”
“memorysetup-profiler-editor-allocator-block-size=1048576”
“memorysetup-temp-allocator-size-main=4194304”
“memorysetup-job-temp-allocator-block-size=2097152”
“memorysetup-job-temp-allocator-block-size-background=1048576”
“memorysetup-job-temp-allocator-reduction-small-platforms=262144”
“memorysetup-temp-allocator-size-background-worker=32768”
“memorysetup-temp-allocator-size-job-worker=262144”
“memorysetup-temp-allocator-size-preload-manager=262144”
“memorysetup-temp-allocator-size-nav-mesh-worker=65536”
“memorysetup-temp-allocator-size-audio-worker=65536”
“memorysetup-temp-allocator-size-cloud-worker=32768”
“memorysetup-temp-allocator-size-gfx=262144”
→ applicationDidFinishLaunching()
[Physics::Module] Initialized MultithreadedJobDispatcher with 5 workers.
Loading player data from /private/var/containers/Bundle/Application/1FF08DE2-7235-41B2-BE0F-E736F4EBC36E/Santhai.app/Data/data.unity3d
[Subsystems] Discovering subsystems at path /private/var/containers/Bundle/Application/1FF08DE2-7235-41B2-BE0F-E736F4EBC36E/Santhai.app/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1; jobified=0
Initializing Metal device caps: Apple A14 GPU
Initialize engine version: 2022.3.13f1 (5f90a5ebde0f)
CrashReporter: No pending report exists at /var/mobile/Containers/Data/Application/CF611B15-EA7F-4AAB-81DD-DE8F8FC2257B/Library/Caches/CrashReports/crash-pending.plcrash
New input system (experimental) initialized
2023-11-17 11:25:52.120839+0700 Santhai[94457:26412747] UnityIAP UnityEarlyTransactionObserver: Added to the payment queue
→ applicationDidBecomeActive()
UnloadTime: 1.958042 ms
ERROR: Shader Light2D/Internal/Shadow/LegacyGPU shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
Unity IAP: Unity In-App Purchasing requires Unity Gaming Services to have been initialized before use.
If you are using the codeless API, you may want to enable the enable Unity Gaming Services automatic initialization by checking the Automatically initialize Unity Gaming Services checkbox at the bottom of the IAP Catalog window
2023-11-17 11:25:54.538921+0700 Santhai[94457:26412747] UnityIAP: Requesting 14 products
<color=yellow>Start Load <Color=green>Menu Scene
2023-11-17 11:25:54.549646+0700 Santhai[94457:26412747] UnityIAP: Requesting product data…
<color=yellow>Loading…
The referenced script on this Behaviour (Game Object ‘JoyTell’) is missing!
Unloading 5 Unused Serialized files (Serialized files now loaded: 0)
2023-11-17 11:25:56.455325+0700 Santhai[94457:26412981] UnityIAP: Received 14 products
2023-11-17 11:25:56.493867+0700 Santhai[94457:26412747] UnityIAP: No App Receipt found
2023-11-17 11:25:56.494010+0700 Santhai[94457:26412747] UnityIAP: No App Receipt found
2023-11-17 11:25:56.494070+0700 Santhai[94457:26412747] UnityIAP: No App Receipt found
2023-11-17 11:25:56.495822+0700 Santhai[94457:26412747] UnityIAP: No App Receipt found
<color=yellow>IAP has been <color=green>Initialized
2023-11-17 11:25:56.496463+0700 Santhai[94457:26412747] UnityIAP: Add transaction observer
2023-11-17 11:25:56.496512+0700 Santhai[94457:26412747] UnityIAP UnityEarlyTransactionObserver: Request to initiate queued payments
Shader ‘CartoonCoffee/Particle Basic’: fallback shader ‘2’ not found
Shader ‘CartoonCoffee/Particle Additive’: fallback shader ‘2’ not found
UnloadTime: 5.496333 ms
The referenced script (Unknown) on this Behaviour is missing!
The referenced script on this Behaviour (Game Object ‘’) is missing!
A scripted object (script unknown or not yet loaded) has a different serialization layout when loading. (Read 48 bytes but expected 9116 bytes)
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?
Target Platform is <color=#c1ff00>Mobile must set quality to <color=yellow>lowest as possible
Particle System is trying to spawn on a mesh with zero surface area
[HardLight2D]: Refreshed all collider references.
<color=#c1ff00>Mobile platform must <color=red>remove <color=yellow>Steamworks profile image and <color=yellow>Steamworks name
Find <color=magenta>Achievement System
Particle System is trying to spawn on a mesh with zero surface area
Unloading 20582 unused Assets to reduce memory usage. Loaded Objects now: 23265.
Total: 41.958250 ms (FindLiveObjects: 2.171333 ms CreateObjectMapping: 0.952500 ms MarkObjects: 14.311125 ms DeleteObjects: 24.522833 ms)
Unloading 2 Unused Serialized files (Serialized files now loaded: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 23265.
Total: 15.015083 ms (FindLiveObjects: 0.957250 ms CreateObjectMapping: 0.281375 ms MarkObjects: 13.740334 ms DeleteObjects: 0.035917 ms)
Loaded <color=yellow>characters
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Restore <color=yellow>Memories by <color=green>GC Collection
<color=yellow>Back home! save Stay scene to <color=green>myhouse
Restore <color=yellow>Memories by <color=green>GC Collection
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 23271.
Total: 15.318041 ms (FindLiveObjects: 0.878167 ms CreateObjectMapping: 0.295250 ms MarkObjects: 14.108000 ms DeleteObjects: 0.036375 ms)
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 23271.
Total: 15.724166 ms (FindLiveObjects: 0.889084 ms CreateObjectMapping: 0.271958 ms MarkObjects: 14.523208 ms DeleteObjects: 0.039666 ms)
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 23271.
Total: 15.362750 ms (FindLiveObjects: 0.925750 ms CreateObjectMapping: 0.273959 ms MarkObjects: 14.106667 ms DeleteObjects: 0.056041 ms)
Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 4.116584 ms
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
[HardLight2D]: Refreshed all collider references.
<color=yellow>Change Scene to <color=green>myhouse
Unloading 85 unused Assets to reduce memory usage. Loaded Objects now: 21367.
Total: 15.853375 ms (FindLiveObjects: 0.849500 ms CreateObjectMapping: 0.261500 ms MarkObjects: 14.261250 ms DeleteObjects: 0.480791 ms)
Give Daily <color=green>Reward
<color=yellow>Direct save game!!!
Save <color=green>Inventory and <color=green>crafters
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
Saving Day <color=yellow>17 : <color=yellow>5 suffix : <color=yellow>653613BE-29-23FA2
my job is <color=yellow>1 pay <color=yellow>606 :653613BE-29-23FA2 : <color=yellow>5
<color=yellow>Direct save game!!!
Save <color=green>Inventory and <color=green>crafters
Sort <color=yellow>Items
Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
Restore <color=yellow>Memories by <color=green>GC Collection
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 22057.
Total: 24.334875 ms (FindLiveObjects: 1.397125 ms CreateObjectMapping: 0.523750 ms MarkObjects: 22.355167 ms DeleteObjects: 0.058250 ms)
2023-11-17 11:26:16.376180+0700 Santhai[94457:26412981] [tcp] tcp_input [C3.1.2.1:3] flags=[R.] seq=667212645, ack=760881656, win=245 state=CLOSED rcv_nxt=667212620, snd_una=760881617
2023-11-17 11:26:16.381068+0700 Santhai[94457:26413298] [tcp] tcp_input [C3.1.2.1:3] flags=[R] seq=667212620, ack=0, win=0 state=CLOSED rcv_nxt=667212620, snd_una=760881617
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
Changed <color=green>scene to <color=yellow>village
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Restore <color=yellow>Memories by <color=green>GC Collection
<color=red>Not Found Nodes!!!
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 22077.
Total: 17.241667 ms (FindLiveObjects: 0.714292 ms CreateObjectMapping: 0.251416 ms MarkObjects: 16.235792 ms DeleteObjects: 0.039833 ms)
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 22077.
Total: 17.341875 ms (FindLiveObjects: 0.719833 ms CreateObjectMapping: 0.254334 ms MarkObjects: 16.325291 ms DeleteObjects: 0.042084 ms)
Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 2.413958 ms
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
<color=yellow>Change Scene to <color=green>village
Unloading 81 unused Assets to reduce memory usage. Loaded Objects now: 24600.
Total: 14.565458 ms (FindLiveObjects: 0.987250 ms CreateObjectMapping: 0.286125 ms MarkObjects: 13.060959 ms DeleteObjects: 0.230875 ms)
<color=red>Waiting Until Next Day : today is <color=yellow>17 Next Reward Index is <color=yellow>5
[HardLight2D]: Refreshed all collider references.
[HardLight2D]: Refreshed all collider references.
[HardLight2D]: Refreshed all collider references.
[HardLight2D]: Refreshed all collider references.
S_THROW
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
<color=yellow>Cannot use <color=red>here
[HardLight2D]: Refreshed all collider references.
Touch Picking <color=yellow>PressActive(Clone)
Touch Picking <color=yellow>PressActive(Clone)
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
Changed <color=green>scene to <color=yellow>outland
Unloading 1 Unused Serialized files (Serialized files now loaded: 0)
Restore <color=yellow>Memories by <color=green>GC Collection
Unloading 24 unused Assets to reduce memory usage. Loaded Objects now: 25074.
Total: 15.628000 ms (FindLiveObjects: 0.881042 ms CreateObjectMapping: 0.282792 ms MarkObjects: 14.383666 ms DeleteObjects: 0.080375 ms)
Unloading 0 Unused Serialized files (Serialized files now loaded: 0)
Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 25071.
Total: 15.032708 ms (FindLiveObjects: 0.828125 ms CreateObjectMapping: 0.281916 ms MarkObjects: 13.876417 ms DeleteObjects: 0.045917 ms)
Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 5.671458 ms
Parent of RectTransform is being set with parent property. Consider using the SetParent method instead, with the worldPositionStays argument set to false. This will retain local orientation and scale rather than world orientation and scale, which can prevent common UI scaling issues.
<color=yellow>Change Scene to <color=green>outland
Unloading 257 unused Assets to reduce memory usage. Loaded Objects now: 22969.
Total: 15.229000 ms (FindLiveObjects: 0.955584 ms CreateObjectMapping: 0.292292 ms MarkObjects: 13.486625 ms DeleteObjects: 0.494083 ms)
The referenced script on this Behaviour (Game Object ‘’) is missing!
The referenced script on this Behaviour (Game Object ‘JoyTell’) is missing!
The referenced script on this Behaviour (Game Object ‘JoyTell’) is missing!
Spawn and apply target
Apply<color=red> Target to <color=yellow>VillagerEnter1"
and before crashed, it keep tell me this message,
I don’t know what happen? I even not changing anything, just update to Unity 2022.3.13f1 from Unity2021LTS
for now memory not issue anymore, because I profiling so much But it still EXC_BAC_ACCESS I don’t know why…
did you find something?
Thanks!!!
Hmm I kinda doubt it’s related to what was fixed in 2022.3.14f1 but it looks like an issue at the engine level to me at first glance. I’d report a bug on this to make sure it gets properly evaluated and fixed
Ok, I’ve send Bug report too,
and my project is very big, it about 10GB I waiting so long to upload,
But it already uploaded, I waiting for the feedback!
Eh, since that’d be something dynamic called by your scripts, I don’t think there’s an automatic way. Best handle would be to run the game and observe the log.
I’m surprised that it would hard crash the game though.