NativeScript / NativeScript/NativeScript

tns::Runtime::GetAppConfigValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)

Open
#9,498 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs more info
Dominant language
TypeScript
Stars
25.7k
Forks
1.7k
Avg merge
1d 5h
Merged PRs (30d)
35

Description

Hi, I found in my Crashlytics log a lot of this issue. Could you help to check what is the caused?

Below is the stack traces from Firebase

Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1b6861154 objc_msgSend + 20
1  NativeScript                   0x10640621c tns::Runtime::GetAppConfigValue(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >) + 240
2  NativeScript                   0x10643fd74 tns::NativeScriptException::OnUncaughtError(v8::Local<v8::Message>, v8::Local<v8::Value>) + 100
3  NativeScript                   0x1068180e8 v8::internal::MessageHandler::ReportMessageNoExceptions(v8::internal::Isolate*, v8::internal::MessageLocation const*, v8::internal::Handle<v8::internal::Object>, v8::Local<v8::Value>) + 344
4  NativeScript                   0x106817f40 v8::internal::MessageHandler::ReportMessage(v8::internal::Isolate*, v8::internal::MessageLocation const*, v8::internal::Handle<v8::internal::JSMessageObject>) + 824
5  NativeScript                   0x10671cb70 v8::internal::Isolate::ReportPendingMessages() + 688
6  NativeScript                   0x106642bd4 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) + 2292
7  NativeScript                   0x1066422ac v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*) + 212
8  NativeScript                   0x1064b2cdc v8::Function::Call(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) + 456
9  NativeScript                   0x1063818ac tns::ArgConverter::MethodCallback(ffi_cif*, void*, void**, void*) + 1160
10 NativeScript                   0x1064774fc ffi_closure_SYSV_inner + 800
11 NativeScript                   0x1064781b4 .Ldo_closure + 20
12 Foundation                     0x1a3e5dd40 __NSFireTimer + 64
13 CoreFoundation                 0x1a2aab0f0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
14 CoreFoundation                 0x1a2aaacf0 __CFRunLoopDoTimer + 1016
15 CoreFoundation                 0x1a2aaa1c4 __CFRunLoopDoTimers + 324
16 CoreFoundation                 0x1a2aa44fc __CFRunLoopRun + 1948
17 CoreFoundation                 0x1a2aa3818 CFRunLoopRunSpecific + 572
18 GraphicsServices               0x1b91a9570 GSEventRunModal + 160
19 UIKitCore                      0x1a53cf0e8 -[UIApplication _run] + 1052
20 UIKitCore                      0x1a53d4664 UIApplicationMain + 164
21 NativeScript                   0x106478044 ffi_call_SYSV + 68
22 NativeScript                   0x106476d60 ffi_call_int + 968
23 NativeScript                   0x10641775c tns::Interop::CallFunctionInternal(tns::MethodCall&) + 428
24 NativeScript                   0x1063da090 std::__1::__function::__func<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2, std::__1::allocator<tns::MetadataBuilder::CFunctionCallback(v8::FunctionCallbackInfo<v8::Value> const&)::$_2>, void ()>::operator()() + 564
25 NativeScript                   0x10643ae24 tns::Tasks::Drain() + 108
26 NativeScript                   0x106434ee8 +[NativeScript start:] + 572
27 globeoneesmobileng             0x104da0508 main + 100 (main.m:100)
28 libdyld.dylib                  0x1a2782140 start + 4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the tns::Runtime::GetAppConfigValue entry in the stack trace and its call from tns::NativeScriptException::OnUncaughtError. Review the surrounding iOS runtime and Objective-C interaction, then determine the crash cause; done means a confirmed root cause with a targeted fix or reproducible diagnostic details.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, ios
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.