question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception in HostObject::get: <unknown>

See original GitHub issue

Describe your environment

  • react-native-localize 1.0.3
  • react-native 0.59.3
  • Target platform: Android
  • Device: • Manufacturer: Tecno, OS: 7.0 • Manufacturer: Infinix, OS: 7.0 or 8.1.0 • Manufacturer: OnePlus, OS: 9.0 • Manufacturer: Pixel, OS: 9.0
  • OS: 7, 8, 8.1 ,9
  • DevTools: N/A
  • buildToolsVersion: 28.0.3

How to repeat issue and example

import { findBestAvailableLanguage } from 'react-native-localize'

expected it not to crash but it crashes on the above devices with:

Exception in HostObject::get: <unknown>

Some context around this error: This does not happen very often. Probably something like 1% of the time but it does result in an unrecoverable crash we think. We’re seeing this reported through bugsnag and we don’t have a device to reproduce this on. Thought it would be worth a report anyway. Maybe you all have some context on this error.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mr-ryan-jamescommented, Sep 3, 2019

We had to get rid of the library to make it go way 🤷‍♂️But it fixed the issue very nicely!

1reaction
zoontekcommented, Sep 10, 2019

@gbalduzzi I made a new release (1.2.0) with fallbacks for unknown countries / currencies.

Screenshot_20190910-152103

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception in HostObject - React Native Build Android
In my case, the problem was with react-native-device-info. Try this in your app/build.gradle dependencies:
Read more >
React Native Build Android #58 - Exception in HostObject
Question I have an issue when run application in android device. Have anyone idea about it ? My app > build.gradle file >...
Read more >
Exception in Host Object::get: <unknown> on React-Native ...
Issue. I got a error "Exception in Host Object::get: " on android. I used React-Native 0.59.1. Project Files. Android.
Read more >
Troubleshoot the UnknownHostException error in a Java ...
UnknownHostException is a common error message in Java applications. This error typically indicates that there was a DNS resolution failure.
Read more >
Method By Name
... Event add Event Dispatcher add Event Queue add Exception add Excludes add ... find Key find Keyword find Last Unknown Marker Segment...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found