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.

UTF-32 symbols in strings in nested objects in debug mode cause app to crash

See original GitHub issue

Goals

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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
knethcommented, May 27, 2019

@lebedev Thank you for investigating. I hope to have some time soon to integrate the patch (or a similar approach).

1reaction
knethcommented, Jan 17, 2018

@angly-cat Thanks for the update. I hope to be able to investigate a bit early next week.

Read more comments on GitHub >

github_iconTop 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 >

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