Code Monkey home page Code Monkey logo

Comments (8)

vanifatovvlad avatar vanifatovvlad commented on May 27, 2024

The library is single-threaded and should only be used from the unity main thread

from unimob.

bartutiryakioglu avatar bartutiryakioglu commented on May 27, 2024

Thanks a lot this will be a life saver!!! Also, I am having another crash where the Atom is used in main thread.
#00 pc 0x191ddb0 (AtomBaseU5BU5D_tC7195B2DF037D97A804D602AEC2AAC750C8D8B54::GetAtUnchecked(unsigned long) const at /Users/benhuruygur/Desktop/GitHub/WordPuzzle/WordPuzzle/Library/Bee/artifacts/Android/il2cppOutput/cpp/UniMob.cpp:1160) libil2cpp.so #01 pc 0x191e190 (AtomBase_Actualize_mD35033DF285808AFEEDA53E5478FA4DD3F2A1708 at /Users/benhuruygur/Desktop/GitHub/WordPuzzle/WordPuzzle/Library/Bee/artifacts/Android/il2cppOutput/cpp/UniMob.cpp:3950) libil2cpp.so

This is the last part of my stack trace. Do you have any idea why this could happen?

from unimob.

vanifatovvlad avatar vanifatovvlad commented on May 27, 2024

How often does this crash occur, can it be reproduces in empty project?
Are you reading Atom values from other threads?

from unimob.

bartutiryakioglu avatar bartutiryakioglu commented on May 27, 2024

This crash occurs at least 5% of our users. By reading do you mean accessing properties with atom attributes or accessing those properties via changing the atom value? In this case reading is called from main thread

from unimob.

vanifatovvlad avatar vanifatovvlad commented on May 27, 2024

All properties marked as [Atom]

[Atom] public int Prop { get; set; }

at compile time are compiled into the Atom type

private Atom<int> _prop = <>;
public int Prop { get => _prop.Value; set => _prop.Value = value; }

All operations on Atom (reading a value, updating a value, invalidate, dispose, etc.) must be performed in the main thread

from unimob.

bartutiryakioglu avatar bartutiryakioglu commented on May 27, 2024

In this case all of these operations are called from main thread. Is there any reason why this crash occurs?

from unimob.

vanifatovvlad avatar vanifatovvlad commented on May 27, 2024

I can't tell why this crash is happening

According to the log, the problem is in the Actualize method. GetAtUnchecked is reading an array element. There are only children[i] array in the Activate method and for some reason it's corrupted.

Try downgrading to UniMob v2.1.4. This should replace the crash with a regular error. Perhaps there will be more information

from unimob.

bartutiryakioglu avatar bartutiryakioglu commented on May 27, 2024

Okay thanks a lot. I will try to downgrade and see if anything happens

from unimob.

Related Issues (7)

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.