Win a copy of TensorFlow 2.0 in Action this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Fix : io.realm.exceptions.RealmError

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I am trying to fix this error. I am trying to reproduce it but couldn't If anyone can give any suggestions it will be a great start



Above is the stack trace couldn't find what is causing this issue?

The device is Galaxy M31
Android 10

 
Saloon Keeper
Posts: 6635
161
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would help if you posted the code this refers to, and any relevant inputs and outputs pertinent to the issue: TellTheDetails

I guess the error occurs in this code: https://github.com/realm/realm-java/blob/master/realm/realm-library/src/main/cpp/io_realm_internal_UncheckedRow.cpp#L162. Are you using the latest version of this library?

Where are you encountering this error message if you can't reproduce it?
 
priyanshi bhardwaj
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:Where are you encountering this error message if you can't reproduce it?

In Crash reports of firebase

Here are the details :
Stack trace
Fatal Exception: io.realm.exceptions.RealmError: Unrecoverable error. Failure when converting short string to UTF-16 error_code = 1; retcode = 0; StringData.size = 15; StringData.data = ȨРin /Users/cm/Realm/realm-java/realm/realm-library/src/main/cpp/io_realm_internal_UncheckedRow.cpp line 161
at io.realm.internal.UncheckedRow.nativeGetString(UncheckedRow.java)
at io.realm.internal.UncheckedRow.getString(UncheckedRow.java:157)
at io.realm.xxxx.MetadataRealmProxy.realmGet$key(xxxxx.MetadataRealmProxy.java:100)
at xxxxx.realm.metadata.getKey(metadata.java:25)

metadata.java:25 is

public String getKey() {
      return key;
  }
Steps & Code to Reproduce
No idea how to reproduce it

Version of Realm and tooling
Gradle version:5.1.1

Which Android version and device(s): Android 10 and Galaxy M31
 
You have to be odd to be #1 - Seuss. An odd little ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic