UTF-32 symbols in strings in nested objects in debug mode cause app to crash
See original GitHub issueGoals
I was remotely debugging JS in React Native app and tried to pass an object to Realm.create
with another nested object, one of properties of which is a string, that contains UTF-32 symbol.
Expected Results
I expected nothing.
Actual Results
App crashed.
Steps to Reproduce
I’ve made minimal testcase, which you can find here. App crashes constantly, in 100% of tries.
Code Sample
realm.write(() => {
realm.create('Item', {
id: 'test',
randomName: {
// String with any UTF-32 symbol with code >= 10000.
// Strings with U+00009999 and lower are fine, strings with U+00010000 and higher cause crashes.
otherRandomName: '😊',
},
}, true);
});
Version of Realm and Tooling
- Realm JS SDK Version: 2.2.1
- Node or React Native: React Native 0.50.3
- Client OS & Version: Windows 7 x64
- Which debugger for React Native: Chrome DevTools
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12 (8 by maintainers)
Top Results From Across the Web
New features and customer reported issues fixed in RAD ...
Summary Component/s Exte...
WSDL importer ‑ WSDL interpretation problem. Command Line Tools, IDE, SOAP RSP...
Lockbox Compile‑Error Compiler, Compiler\C++ RSP...
Clang ‑ Debug‑Stop on Exception throw...
Read more >What's New In Python 3.6 — Python 3.11.1 documentation
PEP 498 introduces a new kind of string literals: f-strings, or formatted ... allocators on Python compiled in release mode using PYTHONMALLOC=debug ....
Read more >History - NASM - The Netwide Assembler
Fix a code range generation bug in the DWARF debug format (incorrect ... size treated as a big positive value passed into backend...
Read more >Chez Scheme Version 9 User's Guide - Rose-Hulman
Chapter 3 describes debugging and object inspection facilities. ... to build applications using Chez Scheme with Petite Chez Scheme for run-time support.
Read more >Debugging with GDB - Documentation
This will cause gdb to debug gcc , and to set gcc 's command-line arguments (see Arguments) to ' -O2 -c foo.c '....
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
@lebedev Thank you for investigating. I hope to have some time soon to integrate the patch (or a similar approach).
@angly-cat Thanks for the update. I hope to be able to investigate a bit early next week.