Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

nlohmann::detail::parse_error #19

Open
hgchenkai opened this issue May 30, 2020 · 4 comments
Open

nlohmann::detail::parse_error #19

hgchenkai opened this issue May 30, 2020 · 4 comments

Comments

@hgchenkai
Copy link

When I start api test, I get a native crash:
2020-05-30 14:57:47.656 13132-13259/com.github.helloiampau.app E/libc++abi: terminating with uncaught exception of type nlohmann::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '<'

--------- beginning of crash

2020-05-30 14:57:47.656 13132-13259/com.github.helloiampau.app A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13259 (helloiampau.app), pid 13132 (helloiampau.app)
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus3/OnePlus3T:9/PKQ1.181203.001/2002201845:user/release-keys'
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: Revision: '0'
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: ABI: 'arm64'
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: pid: 13132, tid: 13259, name: helloiampau.app >>> com.github.helloiampau.app <<<
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: Abort message: 'terminating with uncaught exception of type nlohmann::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '<''
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x0 0000000000000000 x1 00000000000033cb x2 0000000000000006 x3 0000000000000008
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x4 fefefefefefeff83 x5 fefefefefefeff83 x6 fefefefefefeff83 x7 7f7f7f7f7f7f7fff
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x8 0000000000000083 x9 201fd8242634b211 x10 fffffff87ffffbdf x11 201fd8242634b211
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x12 201fd8242634b211 x13 fffffff87ffffbdf x14 000000005ed203eb x15 0000000000000008
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x16 0000007a9caef2b0 x17 0000007a9ca01088 x18 201fd8242634b211 x19 000000000000334c
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x20 00000000000033cb x21 0000000000000083 x22 ffffff80ffffffc8 x23 00000079fd160ec0
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x24 00000079fd160da0 x25 00000079fd160de0 x26 0000007a17a14ca0 x27 0000007a9e2c95e0
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x28 0000000000000002 x29 00000079fd160d10
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: sp 00000079fd160cd0 lr 0000007a9c9f24d0 pc 0000007a9c9f24f0
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: backtrace:
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #00 pc 00000000000224f0 /system/lib64/libc.so (abort+112)
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #1 pc 00000000002e41c0 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #2 pc 00000000002e4318 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #3 pc 00000000002e1208 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #4 pc 00000000002e0834 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #5 pc 00000000002e0790 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (__cxa_throw+112)
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #6 pc 0000000000154d30 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>>::parse_error(unsigned long, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator<cha
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #7 pc 00000000001542a8 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (bool nlohmann::detail::parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>>::sax_parse_internal<nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__n
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #8 pc 000000000014e124 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (nlohmann::detail::parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>>::parse(bool, nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits<c
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #9 pc 000000000014d668 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>::parse(nlohmann::detail::input_adapter&&, std::__ndk1::function<bool (int, nlohmann::detail::parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vecto
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #10 pc 000000000014d278 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #11 pc 000000000014d030 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #12 pc 000000000014cfe4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #13 pc 000000000014cfbc /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #14 pc 000000000014bd84 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #15 pc 000000000007d9f4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus-android-sdk.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #16 pc 0000000000072a58 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus-android-sdk.so (std::__ndk1::function<void ()>::operator()() const+20)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #17 pc 00000000000e6be4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (Janus::AsyncImpl::_loop(Janus::AsyncImpl*)+240)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #18 pc 00000000000e8fc4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #19 pc 00000000000e8f08 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #20 pc 00000000000e87e8 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (ZNSt6__ndk114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEPFPvPN5Janus9AsyncImplEESA_EEEEES7_S7+128)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #21 pc 0000000000099508 /system/lib64/libc.so (__pthread_start(void*)+36)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #22 pc 0000000000023e18 /system/lib64/libc.so (__start_thread+68)
2020-05-30 14:57:48.0

@ramunl
Copy link

ramunl commented Jun 14, 2020

I am getting the same crash. Is there anybody who could make it work?

@ramunl
Copy link

ramunl commented Jun 14, 2020

When I start api test, I get a native crash:
2020-05-30 14:57:47.656 13132-13259/com.github.helloiampau.app E/libc++abi: terminating with uncaught exception of type nlohmann::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '<'

--------- beginning of crash

2020-05-30 14:57:47.656 13132-13259/com.github.helloiampau.app A/libc: Fatal signal 6 (SIGABRT), code -6 (SI_TKILL) in tid 13259 (helloiampau.app), pid 13132 (helloiampau.app)
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: Build fingerprint: 'OnePlus/OnePlus3/OnePlus3T:9/PKQ1.181203.001/2002201845:user/release-keys'
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: Revision: '0'
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: ABI: 'arm64'
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: pid: 13132, tid: 13259, name: helloiampau.app >>> com.github.helloiampau.app <<<
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: Abort message: 'terminating with uncaught exception of type nlohmann::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: '<''
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x0 0000000000000000 x1 00000000000033cb x2 0000000000000006 x3 0000000000000008
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x4 fefefefefefeff83 x5 fefefefefefeff83 x6 fefefefefefeff83 x7 7f7f7f7f7f7f7fff
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x8 0000000000000083 x9 201fd8242634b211 x10 fffffff87ffffbdf x11 201fd8242634b211
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x12 201fd8242634b211 x13 fffffff87ffffbdf x14 000000005ed203eb x15 0000000000000008
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x16 0000007a9caef2b0 x17 0000007a9ca01088 x18 201fd8242634b211 x19 000000000000334c
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x20 00000000000033cb x21 0000000000000083 x22 ffffff80ffffffc8 x23 00000079fd160ec0
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x24 00000079fd160da0 x25 00000079fd160de0 x26 0000007a17a14ca0 x27 0000007a9e2c95e0
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: x28 0000000000000002 x29 00000079fd160d10
2020-05-30 14:57:47.732 13263-13263/? A/DEBUG: sp 00000079fd160cd0 lr 0000007a9c9f24d0 pc 0000007a9c9f24f0
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: backtrace:
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #00 pc 00000000000224f0 /system/lib64/libc.so (abort+112)
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #1 pc 00000000002e41c0 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #2 pc 00000000002e4318 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #3 pc 00000000002e1208 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #4 pc 00000000002e0834 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #5 pc 00000000002e0790 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (__cxa_throw+112)
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #6 pc 0000000000154d30 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>>::parse_error(unsigned long, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator<cha
2020-05-30 14:57:47.735 13263-13263/? A/DEBUG: #7 pc 00000000001542a8 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (bool nlohmann::detail::parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>>::sax_parse_internal<nlohmann::detail::json_sax_dom_parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__n
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #8 pc 000000000014e124 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (nlohmann::detail::parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>>::parse(bool, nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits<c
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #9 pc 000000000014d668 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vector, std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator>, bool, long, unsigned long, double, std::__ndk1::allocator, nlohmann::adl_serializer>::parse(nlohmann::detail::input_adapter&&, std::__ndk1::function<bool (int, nlohmann::detail::parser<nlohmann::basic_json<std::__ndk1::map, std::__ndk1::vecto
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #10 pc 000000000014d278 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #11 pc 000000000014d030 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #12 pc 000000000014cfe4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #13 pc 000000000014cfbc /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #14 pc 000000000014bd84 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #15 pc 000000000007d9f4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus-android-sdk.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #16 pc 0000000000072a58 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus-android-sdk.so (std::__ndk1::function<void ()>::operator()() const+20)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #17 pc 00000000000e6be4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (Janus::AsyncImpl::_loop(Janus::AsyncImpl*)+240)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #18 pc 00000000000e8fc4 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #19 pc 00000000000e8f08 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #20 pc 00000000000e87e8 /data/app/com.github.helloiampau.app-PyF1JlYFCE6-1OjIJbTc2g==/lib/arm64/libjanus.so (ZNSt6__ndk114__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEPFPvPN5Janus9AsyncImplEESA_EEEEES7_S7+128)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #21 pc 0000000000099508 /system/lib64/libc.so (__pthread_start(void*)+36)
2020-05-30 14:57:47.738 13263-13263/? A/DEBUG: #22 pc 0000000000023e18 /system/lib64/libc.so (__start_thread+68)
2020-05-30 14:57:48.0

Have you found a solution?

@tanaymondal
Copy link

Facing the same crash. Can anybody help?

@pengDeveloper
Copy link

pengDeveloper commented Dec 24, 2020

Has the problem been solved?Is there any solution to this problem?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants