arfoundation-samples icon indicating copy to clipboard operation
arfoundation-samples copied to clipboard

[Bug] UnityGfxDeviceWorker EXC_RESOURCE RESOURCE_TYPE_MEMORY

Open arochk opened this issue 5 years ago • 9 comments

Unity bug report case number I don't know why the app suddenly freezes and crashes IPhone gets very hot. I tried all the methods, I do not know where the problem is Screenshot_7

Actual behavior After 5 minutes, the error stared

Smartphone (please complete the following information):

  • Device: [e.g. iPhone XS 12.2]
  • OS: [e.g. iOS 12.2]
  • Unity version 2020.2.2
  • ARFoundation version 4.0.12

arochk avatar Feb 20 '21 17:02 arochk

This looks like a memory leak leading to an out of memory crash. How much memory is in use when this happens?

tdmowrer avatar Feb 22 '21 16:02 tdmowrer

This looks like a memory leak leading to an out of memory crash. How much memory is in use when this happens?

I do not know, but I cannot complete the application because of this problem, the application freezes and the iPhone mobile becomes hot. Please give me what is the solution in your opinion?

arochk avatar Feb 25 '21 08:02 arochk

Xcode can show you how much memory your app is using:

Screen Shot 2021-02-25 at 10 25 27 AM

There's generally a limit of 2GB, so if you go over that, it would appear to crash.

tdmowrer avatar Feb 25 '21 18:02 tdmowrer

I will send you the project here and see what is wrong with my iPhone xs 12.1

I only use the front camera that tracks the face movement and the name Sense :ARsmile1 https://drive.google.com/file/d/1nC6xy3SuGpT_US9J3FtckK3egBhgWyho/view?usp=sharing

Unity version 2020.2.2 ARFoundation version 4.0.13

Screenshot_5

Screenshot_7

Screenshot_8

arochk avatar Feb 25 '21 22:02 arochk

I will send you the project here and see what is wrong with my iPhone xs 12.1

You can log a bug with an attached project by following these instructions.

tdmowrer avatar Mar 01 '21 23:03 tdmowrer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Mar 19 '21 22:03 stale[bot]

i'm experiencing the same problem, but yeah in my case is using memory, not all but something bigger than usual, and I cant seem to find a fix or an answer.

javierpal avatar Feb 03 '22 20:02 javierpal

Hi guys,

I also have this issue. I cannot find a fix for it, and sometimes it happens on android as well

DirtyFreddie avatar Aug 08 '22 13:08 DirtyFreddie

hey all. same problem here.

image

After I click the 'metal capture' button. Memory usage just keeps on climbing until it hits the 2GB limit: image

And then errors out: image

The only way I've managed to get the metal debugger to work is to have a very basic scene with a few game objects in and try to profile shaders that way. Not ideal as its not the full scene.

Did anyone find a workaround for this? An Xcode downgrade perhaps?

cobaltplay avatar Aug 09 '23 22:08 cobaltplay