Androd: What to do about "The Realm is already in a write transaction in"

Introduction

I would like to keep a memorandum about the following error handling methods encountered in Android development.

error


The Realm is already in a write transaction in

First, it will be GitHub that I referred to this time. Please refer to it for more accurate information. https://github.com/realm/realm-java/issues/3753

(1) Solved by writing realm.cancelTransaction (); in the closure where realm is processed.

realm.beginTransaction();
realm.cancelTransaction();

It was solved by the above measures.

We hope for your reference.

Recommended Posts

Androd: What to do about "The Realm is already in a write transaction in"
What to do about "A server is already running ..." that happened without turning off the rails server in the terminal
What to do if Cloud9 is full in the Rails tutorial
What to do about the "cannot be read or is not a valid ZIP file" error
What to do if the prefix c is not bound in JSP
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if you get an "A server is already running." Error when you try to start the rails server
What to do when Address already in use is displayed after executing rails s
What to do if you get a java.io.IOException in GlassFish
[Rails Tutorial Chapter 2] What to do when you make a mistake in the column name
What you need to do to open a file from the menu in the document-Based App macOS app
[Rails] What to do when the view collapses when a message is displayed with the errors method
[Maven] What to do if you are asked to incorporate a jar that is not in the remote repository into the war
What is a snippet in programming?
[Ubuntu 20.04] What to do if the external monitor is not recognized
What to do when an UnsupportedCharsetException occurs in a lightweight JRE
What to do if you get a gcc error in Docker
What if I write a finally clause in the try-with-resources syntax?
[Rails] What to do if data is not registered in DB
What to do when the changes in the Servlet are not reflected
What to do if the Rails page doesn't appear in Rails tutorial 1.3.2
What to do if the Eclipse Maven dependency Jar is wrong
What to do if you get a DISPLAY error in gym.render ()
What to do if you forget the root password in CentOS7
How to write the view when Vue is introduced in Rails?
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
What to do when you want to know the source position where the method is defined in binding.pry
What to do when javax.el.ELException: Not a Valid Method Expression: appears when the JSF screen is displayed
What is a class in Java language (3 /?)
[IOS] What to do when the image is filled with one color
What to do if you get a groovy warning in Thymeleaf Layout
What to do if the background image is not applied after deployment
What is testing? ・ About the importance of testing
What to do when a javax.el.PropertyNotWritableException occurs
What is a class in Java language (1 /?)
What is a class in Java language (2 /?)
What is the main method in Java?
I thought about the best way to create a ValueObject in Ruby
What to do if tomcat process remains when tomcat is stopped in eclipse
[Rails / Docker] What to do if access is denied by the browser (localhost: 3000) after adding a gem
What is CHECKSTYLE: OFF found in the Java source? Checkstyle to know from
Notes on what to do when a WebView ClassNotFoundException occurs in JavaFX 12
What to do if you get a javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake in the IBM JDK
[Rails] I want to reset everything because the data in the local environment is strange! What to do before that
What to do if you get a SQLite3 :: BusyException: database is locked error
What to do when you want to delete a migration file that is "NO FILE"
What to do if the changes are not reflected in the jar manifest file
What to do when the value becomes null in the second getSubmittedValue () in JSF Validator
What to do when rails db: seed does not reflect in the database
[Swift] What to do if the app icon is set but not reflected
Is it mainstream not to write the closing tag of <P> tag in Javadoc?
What to do when is invalid because it does not start with a'-'
What is ... (3 dots) found in the Java source? Variadic arguments to know from
What is Pullback doing in The Composable Architecture
Introduction to Recursive Functions: What is a Recursive Function?
A story about the JDK in the Java 11 era
What to do when IllegalStateException occurs in PlayFramework
[Solution] What to do if you get a Docker error'ERROR: Cannot connect to the Docker daemon at unix: ///var/run/docker.sock. Is the docker daemon running?'
[React.useRef] What to do when the latest state cannot be referenced in the event listener
What to do if you get a wrong number of arguments error in binding.pry
What Android, Kotlin beginners did in a month and what they were able to do