Can't commit a non-existing write transaction in /home/cc/repo/realm/release/realm/realm-library/src/main/cpp/io_realm_internal_SharedRealm.cpp line 260
See original GitHub issueWe LOVE to help with any issues or bug you have!
Questions: If you have questions about how to use Realm, please ask on SO - we monitor the Realm tag.
Feature Request: Just fill in the first two sections below.
Bugs: To help you as fast as possible with an issue or bug please describe your issue and the steps you have taken to reproduce it in as many details as possible.
Thanks for helping us help you 😃
Remove this and above before submitting.
Goal
What do you want to achieve?
Expected Results
?
Actual Results
E.g. full stack trace with exception
Steps & Code to Reproduce
Describe your current debugging efforts.
Code Sample
> Your code here. Bigger samples should ideally be as separate Android Studio project,
> in gists/repositories or privately at help@realm.io)
Version of Realm and tooling
Realm version(s): ?
Realm sync feature enabled: yes/no
Android Studio version: ?
Which Android version and device: ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Can't commit a non-existing write transaction - Stack Overflow
You cannot commit a write transaction because you did not start one. Either start a write transaction or delete the commitWrite line.
Read more >13.3.1 START TRANSACTION, COMMIT, and ROLLBACK ...
COMMIT commits the current transaction, making its changes permanent. ... You cannot use ROLLBACK to undo the effect; however, if an error occurs...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mengyaCS well it basically says you are calling
realm.commitTransaction()
without callingrealm.beginTransaction()
.Why not? Cut us a break here?
Could you please fill out the template with a couple of bits of important information: the version of Realm you are using, whether sync is enabled, the Android device and version on which the problem occurs? Any suggestions about how to reproduce the issue.
This information will give us a much better chance of finding and fixing the problem.