Skip to content

Parse causing crash on android. Cannot catch. #2021

Description

@Burnrate
  • What is the issue you have?

Running and android app on android 10. Sometimes, when using nlohmann::json::parse my application will crash. I am parsing simple strings like {"stringy":{"value":"a string"}}. Sometimes it works and I can use the resulting object. Mostly it crashes with the error:
0xebadde09 skipped times: 0
A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x227245ef88a0 ...

A try catch block will not help at all. It doesn't catch anything. The log message before the parse prints and then the app crashes immediately.

I know there is some information about 0xebadde09 being related to hardware acceleration but I have disabled that as well (this is running in a background service anyway). Any hints on what to do or where to look would be appreciated. I've been trying many permutations with no luck.

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

nlohmann::json::parse a valid std::string.

  • What is the expected behavior?

Successful parse

  • And what is the actual behavior instead?

Crash

Using android studio with the -std=c++11 flag set.

  • Did you use a released version of the library or the version from the develop branch?

Released 3.6.1 and 3.7.3

N/A

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions