Giter Site home page Giter Site logo

Oculus Quest crashing about ezy-slice HOT 7 CLOSED

davidarayan avatar davidarayan commented on July 3, 2024
Oculus Quest crashing

from ezy-slice.

Comments (7)

DavidArayan avatar DavidArayan commented on July 3, 2024

Hi, Thank you for the report. Would you be able to somehow get some debug logs on where the crash is happening? It could be memory related.

from ezy-slice.

caffeine239 avatar caffeine239 commented on July 3, 2024

Hi, Thank you for the report. Would you be able to somehow get some debug logs on where the crash is happening? It could be memory related.

thanks for fast reply! well i dont have a oculus link so im not 100% how to debug mem issues without unity :( so i build apk run it and struggle haha

from ezy-slice.

DavidArayan avatar DavidArayan commented on July 3, 2024

Ok, I'll give you a couple of hints on where to potentially look for a fix. The good news is that the slicer does not hold any references internally so if you are deleting/removing those sliced gameobjects from the scene then it should be good to go. From what i'm observing in your video it seems like a memory issue. So have a look at these to see if it helps.

  1. Make sure the sliced gameobjects are removed from the scene when no longer in users view. This will help buildup of memory. There are a few ways to detect when an object is no longer visible by the camera (check Unity docs).
  2. Make sure that you are not holding any references to objects being returned from the slicer. Referenced objects, especially in pooling solutions cant be deallocated by the garbage collector since they are technically in use.

from ezy-slice.

caffeine239 avatar caffeine239 commented on July 3, 2024

I do not reuse (object pool) the halfs. cubes are pooled. heres the code i added to the halfs.
image

from ezy-slice.

caffeine239 avatar caffeine239 commented on July 3, 2024

Update. I ran some test and it is in fact out of memory. Am I not actually destroying the object correctly? Or should I start a new scene for these then unload the scene after the song?

from ezy-slice.

DavidArayan avatar DavidArayan commented on July 3, 2024

Unfortunately I'm not experienced enough with coroutines to comment on that. My motto is to avoid using coroutines as much as possible. The above script could be re-written to use the Update() method to accomplish the same thing.

Are you certain that the destroy() function gets executed and the coroutines terminate properly? It may not look like it but coroutines themselves are objects that are held in memory.

from ezy-slice.

caffeine239 avatar caffeine239 commented on July 3, 2024

ok ill keep that in mind, thank you.

from ezy-slice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.