Comments (8)
The library is single-threaded and should only be used from the unity main thread
from unimob.
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.
How often does this crash occur, can it be reproduces in empty project?
Are you reading Atom values from other threads?
from unimob.
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.
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.
In this case all of these operations are called from main thread. Is there any reason why this crash occurs?
from unimob.
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.
Okay thanks a lot. I will try to downgrade and see if anything happens
from unimob.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unimob.