Release mode build throwing error
See original GitHub issueAn 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
- I don’t have a data type called “e”. Is this the result of RN minifying the code?
- 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:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, you were right. I did have a few places doing
type.constructor.name
to get the type name back. I switched totype.schema.name
and things started working again. Might be worth a note in your docs. (maybe there already is one somewhere).Whaaaaat! Thanksssss!