mob-sakai / mob-sakai/ParticleEffectForUGUI
Android: Out of memory errors with SIGTRAP crashes
@mob-sakai is already working on this.
Since Nov 10, 2022.
- Dominant language
- C#
- Stars
- 6k
- Forks
- 762
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Google Play Android vitals and Firebase Crashlytics reports some crashes on users' devices with this plugin on Android devices.
To Reproduce
Steps to reproduce the behavior:
Can't reproduce on test devices.
Expected behavior
Plugin should work without crashes
Screenshots
Not applicable
Environment:
- Version 4.1.7
- Platform: Android
- Unity version: 2020.3.40f1
- Build options: IL2CPP, .Net 4.x
Additional context
Crashlytics:
0 libc.so (Missing UUID efe7913e9debfe2df8d421d91957bb90)
1 libunity.so __emutls_register_common
2 libunity.so __emutls_register_common
3 libunity.so __emutls_register_common
4 libunity.so DebugStringToFile(DebugStringToFileData const&)
5 libunity.so FormatBuffer(char*, int, char const*, std::__va_list)
6 libunity.so __emutls_register_common
7 libunity.so __emutls_register_common
8 libunity.so MemoryManager::OutOfMemoryError(unsigned long, unsigned long, MemLabelId, char const*, int)
9 libunity.so void std::__ndk1::__sort<std::__ndk1::__less<UI::DepthSortEntry, UI::DepthSortEntry>&, UI::DepthSortEntry*>(UI::DepthSortEntry*, UI::DepthSortEntry*, std::__ndk1::__less<UI::DepthSortEntry, UI::DepthSortEntry>&)
10 libunity.so ShaderPropertySheet::AddNewPropertyUninitialized(ShaderLab::FastPropertyName, ShaderPropertySheetType, unsigned int)
11 libunity.so __emutls_register_common
12 libunity.so ParticleSystemRenderer::CalculateWorldMatrixAndBoundsJob(BoundsJobData*, unsigned int, TransformAccessReadOnly const*, unsigned long const*, unsigned int)
13 libunity.so UnityClassic::Baselib_Memory_SetPageState(void*, unsigned long, unsigned long, UnityClassic::Baselib_Memory_PageState, UnityClassic::Baselib_ErrorState*)
14 libunity.so __emutls_register_common
15 libunity.so __emutls_register_common
16 libunity.so __emutls_register_common
17 libunity.so __emutls_register_common
18 libunity.so __emutls_register_common
19 libunity.so __emutls_register_common
20 libunity.so __emutls_register_common
21 libunity.so DynamicHeapAllocator::RequestLargeAllocMemory(unsigned long, unsigned long&)
22 libunity.so __emutls_register_common
23 libunity.so DynamicHeapAllocator::Allocate(unsigned long, int)
24 libunity.so __emutls_register_common
25 libunity.so __emutls_register_common
26 libunity.so __emutls_register_common
27 libunity.so MemoryManager::Allocate(unsigned long, unsigned long, MemLabelId, AllocateOptions, char const*, int)
28 libunity.so __emutls_register_common
29 libunity.so __emutls_register_common
30 libunity.so __emutls_register_common
31 libunity.so MemoryManager::Allocate(unsigned long, unsigned long, MemLabelId, AllocateOptions, char const*, int)
32 libunity.so __emutls_register_common
33 libunity.so __emutls_register_common
34 libunity.so __emutls_register_common
35 libunity.so __emutls_register_common
36 libunity.so MemoryManager::Allocate(unsigned long, unsigned long, MemLabelId, AllocateOptions, char const*, int)
37 libunity.so dynamic_array_detail::dynamic_array_data::reserve(unsigned long, unsigned long, unsigned long)
38 libunity.so UI::DepthSortGrid::AddAndGetDepthFor(UI::RenderableUIInstruction const&, UI::RenderableUIInstruction const*, int)
39 libunity.so UI::SortForBatching(UI::RenderableUIInstruction const*, unsigned int, UI::RenderableUIInstruction*, int)
40 libunity.so UI::SortForBatchingJob(UI::SortingJobData*)
41 libunity.so JobQueue::Steal(JobGroup*, JobInfo*, long long, int, bool, bool)
42 libunity.so JobQueue::Exec(JobInfo*, long long, int, bool)
43 libunity.so JobQueue::ExecuteJobFromHighPriorityStack(bool)
44 libunity.so JobQueue::ProcessJobs(JobQueue::ThreadInfo*, void*)
45 libunity.so __emutls_register_common
46 libunity.so JobQueue::WorkLoop(void*)
47 libunity.so Thread::RunThreadWrapper(void*)
48 libc.so (Missing UUID efe7913e9debfe2df8d421d91957bb90)
50 libc.so (Missing UUID efe7913e9debfe2df8d421d91957bb90)
51 libunity.so DynamicHeapAllocator::Allocate(unsigned long, int)
52 libunity.so __emutls_register_common
53 libunity.so CurrentThreadIsMainThread()
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.