sitefinitysteve / nativescript-google-analytics

Apache License 2.0
23 stars 14 forks source link

Segmentation fault on startup #17

Closed ignaciolarranaga closed 7 years ago

ignaciolarranaga commented 7 years ago

Hi, I have this strange error that seems to happens only when I ran the app in TestFlight (i.e., I was yet unable to reproduce it with tns run ios --bundle - because it is with webpack).

Some ideas ?, seems to be at GA initialization (I manually symbolicate with atos):

{"app_name":"gyntoclient","timestamp":"2016-10-26 15:00:28.77 -0700","app_version":"1.0","slice_uuid":"cda4169d-fa00-399c-9826-6e30712b5f0e","adam_id":0,"build_version":"1.0.17","bundleID":"com.gynto.client","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 10.1 (14B72)","incident_id":"2B57BFB5-AF89-48EF-BD79-FB9C4A33D62C","name":"gyntoclient"}
Incident Identifier: 2B57BFB5-AF89-48EF-BD79-FB9C4A33D62C
CrashReporter Key:   65f1d524233928a536ef8e3ea931340f96a4bae2
Hardware Model:      xxx
Process:             gyntoclient [1043]
Path:                /private/var/containers/Bundle/Application/CBF0A31F-6936-4447-BE6B-1BB5D2AF8EDB/gyntoclient.app/gyntoclient
Identifier:          com.gynto.client
Version:             1.0.17 (1.0)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.gynto.client [600]

Date/Time:           2016-10-26 15:00:28.6969 -0700
Launch Time:         2016-10-26 15:00:24.1013 -0700
OS Version:          iPhone OS 10.1 (14B72)
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000000000000b0
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread:  0

Filtered syslog:
None found

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   NativeScript                    0x0000000100b6277c 0x100b40000 + 141180 +[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] (in gyntoclient) + 240
1   NativeScript                    0x0000000100b62a68 0x100b40000 + 141928 +[GAICompressionUtil gai_dataByInflatingData:] (in gyntoclient) + 80
2   NativeScript                    0x0000000100b6bc10 0x100b40000 + 179216 +[FIRAEvent normalizedParametersForParameters:isPublicEvent:] (in gyntoclient) + 620
3   NativeScript                    0x0000000100b6ba4c 0x100b40000 + 178764 +[FIRAEvent normalizedParametersForParameters:isPublicEvent:] (in gyntoclient) + 168
4   NativeScript                    0x0000000100b6c558 0x100b40000 + 181592 -[FIRAEvent initWithOrigin:isPublic:name:timestamp:previousTimestamp:parameters:] (in gyntoclient) + 412
5   NativeScript                    0x0000000100b6c16c 0x100b40000 + 180588 +[FIRAEvent normalizedParametersForParameters:isPublicEvent:] (in gyntoclient) + 1992
sitefinitysteve commented 7 years ago

I can't reproduce sorry :/ Demo works fine

Have you tried pulling down the repo and running the demo?

sitefinitysteve commented 7 years ago

Sorry should mention not just the demo, but we have multiple apps using it in the app stores too

ignaciolarranaga commented 7 years ago

Oh, sorry I did not update the issue.

Just for reference the problem that I had is that I accidentally sent log reports before the initialization (had callbacks sending logs that were fired before the initialization), and that was the cause for the segmentation fault.