Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

Fix incorrect thread access #56

Merged
merged 1 commit into from
Jan 6, 2016

Conversation

ngs
Copy link
Contributor

@ngs ngs commented Jan 5, 2016

These method calls are causing IncorrectThreadException

libc++abi.dylib: terminating with uncaught exception of type
realm::IncorrectThreadException: Realm accessed from incorrect thread.

@polqf
Copy link
Owner

polqf commented Jan 5, 2016

Hi, @ngs , could you explain in which case are you getting this error? Xcode version, RRC version, install method...?

We are using RRC in a huge App and this has never happened to us.

A chuck of code from where the error is generated would be highly appreciated

@polqf polqf force-pushed the feature/realm0.97.0 branch from c40a935 to df707d5 Compare January 5, 2016 13:12
@ngs ngs force-pushed the feature/realm0.97.0 branch from 5d4434a to 945c3ff Compare January 6, 2016 06:28
@ngs
Copy link
Contributor Author

ngs commented Jan 6, 2016

@ngs ngs force-pushed the feature/realm0.97.0 branch 2 times, most recently from abf4ba5 to 3212950 Compare January 6, 2016 06:51
@polqf
Copy link
Owner

polqf commented Jan 6, 2016

Hi @ngs,

We've seen that you are using a predicate that is accessing to relationships, and that's the cause of the crash, for now RRC does not support them.

It seems that this PR is going to fix that, so thanks a lot.
Could you clean the additions and deletions on empty lines please?

@ngs ngs force-pushed the feature/realm0.97.0 branch 3 times, most recently from d0e7aa1 to 5bc6e59 Compare January 6, 2016 15:38
These method calls are causing `IncorrectThreadException`

```
libc++abi.dylib: terminating with uncaught exception of type
realm::IncorrectThreadException: Realm accessed from incorrect thread.
```
@ngs ngs force-pushed the feature/realm0.97.0 branch from 5bc6e59 to a194cbf Compare January 6, 2016 15:38
@ngs
Copy link
Contributor Author

ngs commented Jan 6, 2016

@poolqf

Thanks for checking the crash log. I've cleaned up the code.

@polqf
Copy link
Owner

polqf commented Jan 6, 2016

Merging.. Thanks @ngs

polqf added a commit that referenced this pull request Jan 6, 2016
@polqf polqf merged commit 1b3d54a into polqf:feature/realm0.97.0 Jan 6, 2016
@polqf polqf modified the milestone: 0.4.0 Jan 13, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants