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.

Release mode build throwing error

See original GitHub issue

An app I have been building with Realm, which works great in unit tests, and in Debug mode, seems to throw an exception in Release mode.

Dec 28 22:56:50 Jasons-iMac lola[84452] <Error>: Object type 'e' not found in schema.
Dec 28 22:56:50 Jasons-iMac lola[84452] <Critical>: Unhandled JS Exception: Object type 'e' not found in schema.
Dec 28 22:56:50 Jasons-iMac lola[84452] <Error>: *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: Object type 'e' not found in schema.', reason: 'Unhandled JS Exception: Object type 'e' not found in schema., stack:
	value@453:2094
	value@453:2970
	<unknown>@487:1370
	value@487:2530
	<unknown>@487:840
	callTimer@55:626
	callTimers@55:1010
	value@53:2623
	<unknown>@53:858
	d@53:127
	value@53:830

I have found various references to Object type not found in schema online, but

  1. I don’t have a data type called “e”. Is this the result of RN minifying the code?
  2. I made sure I don’t have any code attempting to create > 1 Realm db. That said, actually. I did just manually set a path on my DB, and now it isn’t happening. Is there another Realm db getting created somehow, inside of Realm itself, with a data type “e”?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jhormancommented, Dec 30, 2016

Yes, you were right. I did have a few places doing type.constructor.name to get the type name back. I switched to type.schema.name and things started working again. Might be worth a note in your docs. (maybe there already is one somewhere).

0reactions
netrevisantocommented, Sep 13, 2019

Whaaaaat! Thanksssss!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't build in release mode, only debug mode - Microsoft Q&A
An issue in the [appname].exe process caused it to fail to activate. This process threw one or more exceptions. Use Debug->Windows->Exception ...
Read more >
Code works in Release mode, but throws error in Debug ...
After running the app in Debug configuration, it crashes [...] But if ran in Release configuration it works without errors.
Read more >
[Solved] I can't compile in release mode - CodeProject
My first guess is that you have some preprocessor settings missed or different in release build. Some more details as the complete error...
Read more >
Running application in "Release mode causes errors"
This could be due to reading uninitialized data, a race condition, or something else. There is not catch-all solution. You'll need to debug...
Read more >
Error when switching to Release mode when working on VB ...
A fix for this issue has been released! Install the most recent preview from https://visualstudio.microsoft.com/vs/preview/. Thank you for providing valuable ...
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