Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity restarting after picking img #100

Closed
adrianjmejias opened this issue Feb 9, 2020 · 4 comments
Closed

Unity restarting after picking img #100

adrianjmejias opened this issue Feb 9, 2020 · 4 comments

Comments

@adrianjmejias
Copy link

Just as the title says, I pick an image and it restarts unity.

I'm not limiting the size of the picture but It's only a small camera picture.

Is there any fix to this?

@yasirkula
Copy link
Owner

On which device is this happening?

@adrianjmejias
Copy link
Author

Xiomi mi A2 lite

@yasirkula
Copy link
Owner

NativeGallery and NativeCamera use Android Fragments to display native content. If device runs low on memory while the native content is being displayed, Android OS can close background activities to release some memory. It is possible for OS to close Unity activity as well, since it is considered a background activity while the native content is being displayed. This might be one cause of this issue. Try closing all background apps before testing the app.

Do other phones also suffer from this issue? If so, please check logcat for any meaningful error messages.

@adrianjmejias
Copy link
Author

umm It is as you say. I picked a screenshot and It worked just fine.
It's a memory issue..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants