• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Fix : io.realm.exceptions.RealmError

 
Ranch Hand
Posts: 251
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7590
177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 251
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic