instabug / instabug-react-native Goto Github PK
View Code? Open in Web Editor NEWIn-app feedback and bug reporting tool for React Native
Home Page: https://instabug.com/platforms/react-native
License: MIT License
In-app feedback and bug reporting tool for React Native
Home Page: https://instabug.com/platforms/react-native
License: MIT License
Enum has a typo on the name is getting bridge to JS. So the value ends up been undefined in JS.
Then you can't use invocationModeNewFeedback
for invoking Instabug.
Hello,
I was wondering why android integration needs to be done on the native side - in Application / java file - when iOS integration only needs Javascript ? Why the difference ?
I'm not sure if this is by design, the documentation says:
This block is executed in the background before sending each report. Could be used for attaching logs and extra data to reports.
Instabug.setPreSendingHandler(() => {
Instabug.setUserAttribute("TEST", "my test");
Instabug.logUserEventWithNameAndParams("OnFeedbackButtonClicked","params");
});
Neither the user attribute, nor the userEvent seem to be logged.
Hey there, I'm not sure what this is, but a lot of our users are receiving a crash because of this error.
Here's the stack-trace, maybe you can tell more than we can from this:
SIGTRAP
/usr/lib/system/libdispatch.dylib __dispatch_barrier_sync_f_slow
Frameworks/InstabugCore.framework/InstabugCore -[IBGUserAttributesLogger getUserAttributes]
Frameworks/InstabugCore.framework/InstabugCore -[IBGSnapshotManager getSurveyConditionsWithCompletionHanlder:]
Frameworks/Instabug.framework/Instabug -[InstabugSurveys showSurveyIfAvailable]
Frameworks/CoreFoundation.framework/CoreFoundation ___CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
Frameworks/CoreFoundation.framework/CoreFoundation __CFXRegistrationPost
Frameworks/CoreFoundation.framework/CoreFoundation ____CFXNotificationPost_block_invoke
Frameworks/CoreFoundation.framework/CoreFoundation -[_CFXNotificationRegistrar find:object:observer:enumerator:]
Frameworks/CoreFoundation.framework/CoreFoundation __CFXNotificationPost
Frameworks/Foundation.framework/Foundation -[NSNotificationCenter postNotificationName:object:userInfo:]
Frameworks/Foundation.framework/Foundation -[NSNotificationCenter postNotificationName:object:]
Frameworks/InstabugCore.framework/InstabugCore __52-[IBGUserAttributesLogger setUserAttribute:withKey:]_block_invoke
/usr/lib/system/libdispatch.dylib __dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib __dispatch_queue_serial_drain
/usr/lib/system/libdispatch.dylib __dispatch_queue_invoke
/usr/lib/system/libdispatch.dylib __dispatch_queue_override_invoke
/usr/lib/system/libdispatch.dylib __dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib __dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib __pthread_wqthread
"react-native": "0.51.0",
"instabug-reactnative": "2.1.2",
Device Apple iPad 4
iOS 10.3.3
I saw you support Instabug. logUserEventWithNameAndParams
but I don't see this implemented here?
http://docs.instabug.com/v5/docs/loggin-react
Am I mistaken or is this a feature not yet deployed?
Thanks.
Here's what I received:
java.lang.IllegalStateException Fatal Exception thrown on Scheduler.Worker thread.
LooperScheduler.java:114 rx.android.schedulers.LooperScheduler$ScheduledAction.run
Handler.java:746 android.os.Handler.handleCallback
Handler.java:95 android.os.Handler.dispatchMessage
Looper.java:148 android.os.Looper.loop
ActivityThread.java:5491 android.app.ActivityThread.main
Method.java:-2 java.lang.reflect.Method.invoke
ZygoteInit.java:728 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
ZygoteInit.java:618 com.android.internal.os.ZygoteInit.main
Caused by: java.lang.OutOfMemoryError Failed to allocate a 260997132 byte allocation with 16777216 free bytes and 215MB until OOM
VMRuntime.java:-2 dalvik.system.VMRuntime.newNonMovableArray
Bitmap.java:-2 android.graphics.Bitmap.nativeCreate
Bitmap.java:857 android.graphics.Bitmap.createBitmap
Bitmap.java:834 android.graphics.Bitmap.createBitmap
Bitmap.java:801 android.graphics.Bitmap.createBitmap
BitmapUtils.java:90 com.instabug.bug.screenshot.viewhierarchy.utilities.BitmapUtils.captureView
BitmapUtils.java:78 com.instabug.bug.screenshot.viewhierarchy.utilities.BitmapUtils.captureView
BitmapUtils.java:39 com.instabug.bug.screenshot.viewhierarchy.utilities.BitmapUtils.captureViewWithoutChildren
BitmapUtils.java:23 com.instabug.bug.screenshot.viewhierarchy.utilities.BitmapUtils.access$000
BitmapUtils.java:29 com.instabug.bug.screenshot.viewhierarchy.utilities.BitmapUtils$1.a
BitmapUtils.java:26 com.instabug.bug.screenshot.viewhierarchy.utilities.BitmapUtils$1.call
OnSubscribeDefer.java:46 rx.internal.operators.OnSubscribeDefer.call
OnSubscribeDefer.java:35 rx.internal.operators.OnSubscribeDefer.call
Observable.java:10150 rx.Observable.unsafeSubscribe
OperatorSubscribeOn.java:94 rx.internal.operators.OperatorSubscribeOn$1.call
LooperScheduler.java:107 rx.android.schedulers.LooperScheduler$ScheduledAction.run
Handler.java:746 android.os.Handler.handleCallback
Handler.java:95 android.os.Handler.dispatchMessage
Looper.java:148 android.os.Looper.loop
ActivityThread.java:5491 android.app.ActivityThread.main
Method.java:-2 java.lang.reflect.Method.invoke
ZygoteInit.java:728 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
ZygoteInit.java:618 com.android.internal.os.ZygoteInit.main
Using:
"react-native": "0.51.0",
"instabug-reactnative": "2.1.2",
Platform: Android
Hey there,
today I received this in our bug reporter:
SIGSEGV Attempted to dereference null pointer.
Frameworks/CoreFoundation.framework/CoreFoundation -[__NSDictionaryM objectForKeyedSubscript:]
Frameworks/InstabugCore.framework/InstabugCore -[IBGMethodsLogger addCountedMethodLog:isDeprecated:]
Frameworks/InstabugCore.framework/InstabugCore __50-[IBGMethodsLogger logCountedMethod:isDeprecated:]_block_invoke
/usr/lib/system/libdispatch.dylib __dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib __dispatch_client_callout
/usr/lib/system/libdispatch.dylib __dispatch_queue_serial_drain$VARIANT$mp
/usr/lib/system/libdispatch.dylib __dispatch_queue_invoke$VARIANT$mp
/usr/lib/system/libdispatch.dylib __dispatch_root_queue_drain_deferred_wlh$VARIANT$mp
/usr/lib/system/libdispatch.dylib __dispatch_workloop_worker_thread$VARIANT$mp
/usr/lib/system/libsystem_pthread.dylib __pthread_wqthread
"instabug-reactnative": "2.7.0",
"react-native": "0.53.3",
"react": "16.2.0",
Device: iPhone 6 physical device
iOS 11.2.6
Build Production
"instabug-reactnative": "1.2.0",
"react-native": "0.47.1"
Just updated to react-native 0.47.1 and instabug-reactnative 1.2.0.
No issue with iOS but with run-andorid I am running into the following errors:
RNInstabugReactnativeModule.java:914: error: cannot find symbol
sendEvent(getReactApplicationContext(), "IBGpreInvocationHandler", null);
^
RNInstabugReactnativeModule.java:938: error: cannot find symbol
sendEvent(getReactApplicationContext(), "IBGpreSendingHandler", null);
^
RNInstabugReactnativeModule.java:962: error: cannot find symbol
WritableMap params = Arguments.createMap();
^
RNInstabugReactnativeModule.java:965: error: cannot find symbol
sendEvent(getReactApplicationContext(), "IBGpostInvocationHandler", params);
^
RNInstabugReactnativeModule.java:1030: error: cannot find symbol
sendEvent(getReactApplicationContext(), "IBGWillShowSurvey", null);
^
RNInstabugReactnativeModule.java:1052: error: cannot find symbol
sendEvent(getReactApplicationContext(), "IBGDidDismissSurvey", null);
^
RNInstabugReactnativeModule.java:1123: error: cannot find symbol
sendEvent(getReactApplicationContext(), "IBGonNewMessageHandler", null);
^
I believe you forgot to add InstabugCore.framework
to the iOS project, and so we get the following error.
I can't make 2.1.1 work on iOS, thank you.
Can we invoke specific feature without showing up the menu.
For example, I have a button in my application that says Report a problem, once clicked I want to show the report a problem
screen without showing the whole instabug menu.
Thank you in advance.
UPDATE: I found the solution after going through the docs once again.
I'm also getting random crashes on iOS
Not sure wether it was the same as #30 so I opened another issue.
EXC_BAD_ACCESS Stack overflow in _mh_execute_header
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/Instabug.framework/Instabug unzRepair
Frameworks/UIKit.framework/UIKit -[UINavigationController viewDidDisappear:]
Frameworks/UIKit.framework/UIKit -[UIViewController _setViewAppearState:isAnimating:]
Frameworks/UIKit.framework/UIKit -[UIViewController __viewDidDisappear:]
Frameworks/UIKit.framework/UIKit ___64-[UIViewController viewDidMoveToWindow:shouldAppearOrDisappear:]_block_invoke.1267
Frameworks/UIKit.framework/UIKit -[UIViewController _executeAfterAppearanceBlock]
Frameworks/UIKit.framework/UIKit __runAfterCACommitDeferredBlocks
Frameworks/UIKit.framework/UIKit __cleanUpAfterCAFlushAndRunDeferredBlocks
Frameworks/UIKit.framework/UIKit __afterCACommitHandler
Frameworks/CoreFoundation.framework/CoreFoundation ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
Frameworks/CoreFoundation.framework/CoreFoundation ___CFRunLoopDoObservers
Frameworks/CoreFoundation.framework/CoreFoundation ___CFRunLoopRun
Frameworks/CoreFoundation.framework/CoreFoundation CFRunLoopRunSpecific
Frameworks/CoreFoundation.framework/CoreFoundation CFRunLoopRunInMode
PrivateFrameworks/GraphicsServices.framework/GraphicsServices GSEventRunModal
Frameworks/UIKit.framework/UIKit UIApplicationMain
TestApp mh_execute_header
ALSO my CI gives me the following data:
Thread 1·
/usr/lib/system/libsystem_kernel.dylib___psynch_mutexwait
/usr/lib/system/libsystem_pthread.dylib__pthread_mutex_lock_wait
/usr/lib/system/libsystem_pthread.dylib__pthread_mutex_lock_slow
/usr/lib/libobjc.A.dylib__ZN18recursive_mutex_ttILb0EE4lockEv
/usr/lib/libobjc.A.dylibobjc_sync_enter
TestApphidden#15628_
TestApphidden#15628_
/usr/lib/system/libdispatch.dylib__dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib__dispatch_queue_override_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 2·
/usr/lib/system/libcorecrypto.dylibccn_sqr_ws
/usr/lib/system/libcorecrypto.dylibcczp_sqr_ws
/usr/lib/system/libcorecrypto.dylibcczp_power_ssma_ws
/usr/lib/system/libcorecrypto.dylibcczp_power_ssma
/usr/lib/system/libcorecrypto.dylibccprime_rabin_miller
/usr/lib/system/libcorecrypto.dylibccrsa_generate_probable_prime_from_auxilary_primes
/usr/lib/system/libcorecrypto.dylibccrsa_generate_probable_prime
/usr/lib/system/libcorecrypto.dylibccrsa_generate_fips186_prime_factors
/usr/lib/system/libcorecrypto.dylibccrsa_generate_fips186_key_trace
/usr/lib/system/libcorecrypto.dylibccrsa_generate_fips186_key
Frameworks/Security.framework/SecuritySecRSAPrivateKeyInit
Frameworks/Security.framework/SecuritySecKeyCreate
Frameworks/Security.framework/SecuritySecRSAKeyGeneratePair
Frameworks/Security.framework/SecuritySecKeyGeneratePair
TestApphidden#15628_
TestApphidden#15628_
TestApphidden#15628_
TestApphidden#15628_
TestApphidden#15628_
/usr/lib/system/libdispatch.dylib__dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib__dispatch_queue_override_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 3·
TestAppmh_execute_header
TestAppmh_execute_header
/usr/lib/system/libdispatch.dylib__dispatch_barrier_sync_f_invoke
TestAppmh_execute_header
TestAppmh_execute_header
TestAppmh_execute_header
/usr/lib/system/libdispatch.dylibdispatch_once_f
TestAppmh_execute_header
TestAppmh_execute_header
/usr/lib/system/libdispatch.dylib__dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib__dispatch_queue_serial_drain
/usr/lib/system/libdispatch.dylib__dispatch_queue_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 4·
/usr/lib/system/libsystem_kernel.dylibmach_msg_trap
/usr/lib/system/libsystem_kernel.dylibmach_msg
Frameworks/CoreFoundation.framework/CoreFoundation___CFRunLoopServiceMachPort
Frameworks/CoreFoundation.framework/CoreFoundation___CFRunLoopRun
Frameworks/CoreFoundation.framework/CoreFoundationCFRunLoopRunSpecific
Frameworks/CoreFoundation.framework/CoreFoundationCFRunLoopRunInMode
Frameworks/Foundation.framework/Foundation-[NSRunLoop(NSRunLoop) runMode:beforeDate:]
Frameworks/Foundation.framework/Foundation-[NSRunLoop(NSRunLoop) runUntilDate:]
Frameworks/UIKit.framework/UIKit-[UIEventFetcher threadMain]
Frameworks/Foundation.framework/Foundation___NSThread__start__
/usr/lib/system/libsystem_pthread.dylib__pthread_body
/usr/lib/system/libsystem_pthread.dylib__pthread_start
Thread 5·
/usr/lib/system/libsystem_kernel.dylib___psynch_rw_rdlock
/usr/lib/system/libsystem_pthread.dylib__pthread_rwlock_lock
/usr/lib/libobjc.A.dylib__ZN9rwlock_ttILb0EE4readEv
/usr/lib/libobjc.A.dyliblookUpImpOrForward
/usr/lib/libobjc.A.dylib__class_lookupMethodAndLoadCache3
/usr/lib/libobjc.A.dylib__objc_msgSend_uncached
TestApp__cxa_throw
TestApp__cxa_throw
TestApphidden#15628_
Frameworks/Foundation.framework/Foundation-[__NSOperationInternal _start:]
Frameworks/Foundation.framework/Foundation___NSOQSchedule_f
/usr/lib/system/libdispatch.dylib__dispatch_queue_serial_drain
/usr/lib/system/libdispatch.dylib__dispatch_queue_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 6·
/usr/lib/system/libsystem_kernel.dylibmach_msg_trap
/usr/lib/system/libsystem_kernel.dylibmach_msg
Frameworks/CoreFoundation.framework/CoreFoundation___CFRunLoopServiceMachPort
Frameworks/CoreFoundation.framework/CoreFoundation___CFRunLoopRun
Frameworks/CoreFoundation.framework/CoreFoundationCFRunLoopRunSpecific
Frameworks/CoreFoundation.framework/CoreFoundationCFRunLoopRunInMode
Frameworks/CFNetwork.framework/CFNetwork+[NSURLConnection(Loader) _resourceLoadLoop:]
Frameworks/Foundation.framework/Foundation___NSThread__start__
/usr/lib/system/libsystem_pthread.dylib__pthread_body
/usr/lib/system/libsystem_pthread.dylib__pthread_start
Thread 7·
/usr/lib/system/libsystem_kernel.dylibread
Frameworks/Foundation.framework/Foundation__NSReadFromFileDescriptorWithProgress
Frameworks/Foundation.framework/Foundation__NSReadBytesFromFileWithExtendedAttributes
Frameworks/Foundation.framework/Foundation-[NSData(NSData) initWithContentsOfFile:]
Frameworks/Foundation.framework/Foundation-[NSFileManager contentsAtPath:]
TestAppmh_execute_header
TestAppmh_execute_header
TestAppmh_execute_header
/usr/lib/system/libdispatch.dylib__dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 8·
/usr/lib/system/libsystem_kernel.dylib___ulock_wait
/usr/lib/system/libdispatch.dylib__dispatch_ulock_wait
/usr/lib/system/libdispatch.dylib__dispatch_thread_event_wait_slow
/usr/lib/system/libdispatch.dylib__dispatch_barrier_sync_f_slow
Frameworks/CoreData.framework/CoreData__perform
Frameworks/CoreData.framework/CoreData-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]
Frameworks/CoreData.framework/CoreData-[NSManagedObjectContext executeFetchRequest:error:]
Frameworks/Instabug.framework/InstabugIBGImageWithDrawingBlock
Frameworks/CoreData.framework/CoreDatadeveloperSubmittedBlockToNSManagedObjectContextPerform
/usr/lib/system/libdispatch.dylib__dispatch_queue_serial_drain
/usr/lib/system/libdispatch.dylib__dispatch_queue_invoke
/usr/lib/system/libdispatch.dylib__dispatch_queue_override_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 9·
/usr/lib/system/libsystem_asl.dylib__jump_dealloc
/usr/lib/system/libsystem_asl.dylib__asl_send_message_text
/usr/lib/system/libsystem_asl.dylib__asl_lib_vlog_text
/usr/lib/system/libsystem_asl.dylibasl_log
TestAppmh_execute_header
/usr/lib/system/libdispatch.dylib__dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib__dispatch_queue_serial_drain
/usr/lib/system/libdispatch.dylib__dispatch_queue_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 10·
/usr/lib/system/libsystem_kernel.dylibmach_msg_trap
/usr/lib/system/libsystem_kernel.dylibmach_msg
TestApphidden#10513_
/usr/lib/system/libsystem_pthread.dylib__pthread_body
/usr/lib/system/libsystem_pthread.dylib__pthread_start
Thread 11·
Thread 12·
/usr/lib/system/libsystem_kernel.dylib___psynch_rw_unlock
/usr/lib/system/libsystem_pthread.dylibpthread_rwlock_unlock
/usr/lib/libobjc.A.dylib__ZN9rwlock_ttILb0EE11unlockWriteEv
/usr/lib/libobjc.A.dylibmethod_setImplementation
Frameworks/Instabug.framework/InstabugunzRepair
Frameworks/Instabug.framework/Instabugfill_fopen64_filefunc
Frameworks/Instabug.framework/Instabugaes_decrypt
Frameworks/Instabug.framework/Instabugaes_decrypt
Frameworks/Foundation.framework/FoundationNSKVONotify
Frameworks/Foundation.framework/FoundationNSKeyValueNotifyObserver
Frameworks/Foundation.framework/FoundationNSKeyValueDidChange
Frameworks/Foundation.framework/Foundation-[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:]
Frameworks/Instabug.framework/Instabugfcrypt_end
Frameworks/Instabug.framework/Instabugfcrypt_end
Frameworks/Instabug.framework/Instabugfcrypt_end
Frameworks/Instabug.framework/InstabugIBGSDKLogInternalError
Frameworks/Instabug.framework/InstabugIBGSDKLogInternalError
Frameworks/Instabug.framework/InstabugIBGSDKLogInternalError
Frameworks/Instabug.framework/InstabugIBGSDKLogInternalError
Frameworks/CFNetwork.framework/CFNetwork___67+[NSURLConnection sendAsynchronousRequest:queue:completionHandler:]_block_invoke_2
Frameworks/Foundation.framework/Foundation___NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
Frameworks/Foundation.framework/Foundation-[NSBlockOperation main]
Frameworks/Foundation.framework/Foundation-[__NSOperationInternal _start:]
Frameworks/Foundation.framework/Foundation___NSOQSchedule_f
/usr/lib/system/libdispatch.dylib__dispatch_queue_serial_drain
/usr/lib/system/libdispatch.dylib__dispatch_queue_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 13·
/usr/lib/system/libsystem_kernel.dylibmach_msg_trap
/usr/lib/system/libsystem_kernel.dylibmach_msg
Frameworks/CoreFoundation.framework/CoreFoundation___CFRunLoopServiceMachPort
Frameworks/CoreFoundation.framework/CoreFoundation___CFRunLoopRun
Frameworks/CoreFoundation.framework/CoreFoundationCFRunLoopRunSpecific
Frameworks/CoreFoundation.framework/CoreFoundationCFRunLoopRunInMode
TestApp__cxa_throw
Frameworks/Foundation.framework/Foundation___NSThread__start__
/usr/lib/system/libsystem_pthread.dylib__pthread_body
/usr/lib/system/libsystem_pthread.dylib__pthread_start
Thread 14·
/usr/lib/system/libsystem_kernel.dylib___semwait_signal
/usr/lib/system/libsystem_c.dylibnanosleep
/usr/lib/libc++.1.dylib__ZNSt3__111this_thread9sleep_forERKNS_6chrono8durationIxNS_5ratioILx1ELx1000000000EEEEE
Frameworks/JavaScriptCore.framework/JavaScriptCore__ZN7bmallocL14waitUntilFalseERNSt3__111unique_lockINS_11StaticMutexEEENS0_6chrono8durationIxNS0_5ratioILx1ELx1000EEEEERb
Frameworks/JavaScriptCore.framework/JavaScriptCore__ZN7bmalloc4Heap8scavengeERNSt3__111unique_lockINS_11StaticMutexEEENS1_6chrono8durationIxNS1_5ratioILx1ELx1000EEEEE
Frameworks/JavaScriptCore.framework/JavaScriptCore__ZN7bmalloc4Heap18concurrentScavengeEv
Frameworks/JavaScriptCore.framework/JavaScriptCore__ZN7bmalloc9AsyncTaskINS_4HeapEMS1_FvvEE13threadRunLoopEv
Frameworks/JavaScriptCore.framework/JavaScriptCore__ZN7bmalloc9AsyncTaskINS_4HeapEMS1_FvvEE16threadEntryPointEPS4_
Frameworks/JavaScriptCore.framework/JavaScriptCore__ZNSt3__114__thread_proxyINS_5tupleIJPFvPN7bmalloc9AsyncTaskINS2_4HeapEMS4_FvvEEEES8_EEEEEPvSC_
/usr/lib/system/libsystem_pthread.dylib__pthread_body
/usr/lib/system/libsystem_pthread.dylib__pthread_start
Thread 15·
/usr/lib/system/libsystem_kernel.dylib___workq_kernreturn
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 16·
/usr/lib/system/libsystem_kernel.dylibmach_msg_trap
/usr/lib/system/libsystem_kernel.dylibmach_msg
/usr/lib/system/libsystem_kernel.dylibthread_suspend
TestApp__cxa_throw
/usr/lib/system/libsystem_pthread.dylib__pthread_body
/usr/lib/system/libsystem_pthread.dylib__pthread_start
Thread 17·
Thread 18·
/usr/lib/system/libsystem_kernel.dylibselect$DARWIN_EXTSN
Frameworks/CoreFoundation.framework/CoreFoundation___CFSocketManager
/usr/lib/system/libsystem_pthread.dylib__pthread_body
/usr/lib/system/libsystem_pthread.dylib__pthread_start
Thread 19·
Thread 20·
/usr/lib/system/libsystem_kernel.dylibmach_msg_trap
/usr/lib/system/libsystem_kernel.dylibmach_msg
/usr/lib/system/libdispatch.dylib__dispatch_mach_send_and_wait_for_reply
/usr/lib/system/libdispatch.dylibdispatch_mach_send_with_result_and_wait_for_reply
/usr/lib/system/libxpc.dylibxpc_connection_send_message_with_reply_sync
Frameworks/Security.framework/Securitysecurityd_message_with_reply_sync
Frameworks/Security.framework/Securitysecurityd_send_sync_and_do
Frameworks/Security.framework/Security___SecTrustEvaluateIfNecessary_block_invoke_3
Frameworks/Security.framework/SecuritySecOSStatusWith
Frameworks/Security.framework/Security___SecTrustEvaluateIfNecessary_block_invoke_2
/usr/lib/system/libsystem_trace.dylib__os_activity_initiate_impl
/usr/lib/system/libsystem_trace.dylib__os_activity_initiate
Frameworks/Security.framework/Security___SecTrustEvaluateIfNecessary_block_invoke
/usr/lib/system/libdispatch.dylib__dispatch_barrier_sync_f_invoke
Frameworks/Security.framework/SecuritySecTrustEvaluateIfNecessary
Frameworks/Security.framework/SecuritySecTrustEvaluate
Frameworks/CFNetwork.framework/CFNetwork__ZN14CFNetworkTrust14strictEvaluateEhN20StrictSecurityPolicy21SessionStrengthPolicyEm
Frameworks/CFNetwork.framework/CFNetwork__ZN15TCPIOConnection29_tlsProcessTrust_PolicyStrictEv
Frameworks/CFNetwork.framework/CFNetwork__ZN15TCPIOConnection28_tlsProcessTrustPolicyResultEP14nw_tls_context
/usr/lib/system/libdispatch.dylib__dispatch_call_block_and_release
/usr/lib/system/libdispatch.dylib__dispatch_queue_serial_drain
/usr/lib/system/libdispatch.dylib__dispatch_queue_invoke
/usr/lib/system/libdispatch.dylib__dispatch_root_queue_drain
/usr/lib/system/libdispatch.dylib__dispatch_worker_thread3
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 21·
/usr/lib/system/libsystem_kernel.dylib___workq_kernreturn
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 22·
/usr/lib/system/libsystem_kernel.dylib___workq_kernreturn
/usr/lib/system/libsystem_pthread.dylib__pthread_wqthread
Thread 23
I just upgraded to v2.0.0 but I'm getting the following validation errors when trying to submit a release archive of my app to the app store:
iTunes Store operation failed.
Unsupported Architectures. The executable for Trybeo.app/Frameworks/Instabug.framework contains unsupported architectures '[x86_64, i386]'.
iTunes Store operation failed.
Invalid Mach-O Format. The Mach-O in bundle "Trybeo.app/Frameworks/Instabug.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(bitcode) and arm64(bitcode), while the nested bundle Mach-O contains X86_64ALL(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting.
iTunes Store operation failed.
Invalid Segment Alignment. The app binary at 'Trybeo.app/Frameworks/Instabug.framework/Instabug' does not have proper segment alignment. Try rebuilding the app with the latest Xcode version.
iTunes Store operation failed.
The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple's linker.
This is blocking my production release, what should I do?
Xcode version: 8.3.3
I'm getting some errors while trying to upgrade install 2.0.3 on RN 0.48.3 on an iOS device running iOS 11 on InstabugReactBridge.m:461
Out of the 6 errors, 5 are fixable by an xcode suggestion
Use of undeclared identifier 'IBGLogLevelTrace'; did you mean 'RCTLogLevelTrace'?
Use of undeclared identifier 'IBGLogLevelInfo'; did you mean 'RCTLogLevelInfo'?
Use of undeclared identifier 'IBGLogLevelWarning'; did you mean 'RCTLogLevelWarning'?
Use of undeclared identifier 'IBGLogLevelError'; did you mean 'RCTLogLevelError'?
Use of undeclared identifier 'IBGLogLevelFatal'; did you mean 'RCTLogLevelFatal'?
There is one error that is:
Implicit declaration of function 'IBGNSLogWithLevel' is invalid in C99
I came across this error by trying to upgrade to RN 0.48.3 with version 1.x and encountering the Redefinition of RCTMethodInfo
error described here.
facebook/react-native#15775
Hopefully it helps
I am able to get the floating button to work, but I would like to use my own button with Instabug.invoke()
. When called, the prompt options doesn't appear. This is only on Android. iOS is working great.
new RNInstabugReactnativePackage("my_key", MainApplication.this, "button"),
^ Floating blue button appears, pressing it shows the prompt options.
but
new RNInstabugReactnativePackage("my_key", MainApplication.this, "none"),
then
<Button
onPress={() => Instabug.invoke()}
/>
^ Nothing appears when button is pressed. (Same button works on iOS).
If I understood the setup instructions correctly, iOS requires Instabug.startWithToken(Config.INSTABUG_TOKEN_IOS, Instabug.invocationEvent.none)
, but Android does not (and the floating button works anyway, just not the manual invoke).
Hey !
Thanks for the great work on this module and instabug.
Could you publish this package to npm so we can freeze the package version in our build ?
Cheers !
I opened an issue here but I'm not 100% sure wether it's an android related problem or a react-native related problem.
Please check it out and let me know.
I'm using "instabug-reactnative": "1.1.8"
Thank you
Constants for android are not been implemented as it is for iOS.
When setting up InstantBug with with custom strings for keys the app fails on android
Happens on
instanbug-rectnative version: 2.0.5
react-native version: 0.48.3
Example call
Instabug.startWithToken(
INSTABUG_TOKEN,
Instabug.invocationEvent.shake,
Instabug.setEmailFieldRequired(false),
Instabug.setShakingThresholdForAndroid(450),
Instabug.setPrimaryColor(processColor('00FF00')),
Instabug.setStringToKey(
'Enter your email (optional)',
Instabug.strings.emailFieldHint
)
);
Hi there,
I'm getting the following exception immediately after retrieving the bundle from the packager (iOS works fine):
Usage:
class App extends Component {
constructor() {
super();
Instabug.startWithToken(process.env.INSTABUG_TOKEN, Instabug.invocationEvent.shake);
}
According to the React Native source, it does appear to be true that Locale
is not a supported argument class. Am I missing anything here?
Thanks in advance for any help or guidance!
RN version: 0.39
instabug-reactnative version: 1.0.2 (installed via react-native link instabug-reactnative
)
Hey there,
the app crashes whenever I try to launch it because of:
E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.instabug.library.analytics.AnalyticsObserver$1
at com.instabug.library.analytics.AnalyticsObserver.<init>(AnalyticsObserver.java:46)
at com.instabug.library.analytics.AnalyticsObserver.getInstance(AnalyticsObserver.java:58)
at com.instabug.library.Instabug$Builder.setInvocationEvent(Instabug.java:1711)
at com.instabug.reactlibrary.RNInstabugReactnativePackage.<init>(RNInstabugReactnativePackage.java:57)
at com.instabug.reactlibrary.RNInstabugReactnativePackage.<init>(RNInstabugReactnativePackage.java:69)
at com.acuityscheduling.app.android.MainApplication.createAdditionalReactPackages(MainApplication.java:78)
at com.reactnativenavigation.react.NavigationReactGateway$ReactNativeHostImpl.getPackages(NavigationReactGateway.java:132)
at com.facebook.react.ReactNativeHost.createReactInstanceManager(ReactNativeHost.java:74)
at com.reactnativenavigation.react.NavigationReactGateway$ReactNativeHostImpl.createReactInstanceManager(NavigationReactGateway.java:155)
at com.facebook.react.ReactNativeHost.getReactInstanceManager(ReactNativeHost.java:41)
at com.reactnativenavigation.react.NavigationReactGateway.getReactInstanceManager(NavigationReactGateway.java:59)
at com.reactnativenavigation.react.NavigationReactGateway.hasStartedCreatingContext(NavigationReactGateway.java:46)
at com.reactnativenavigation.controllers.SplashActivity.onResume(SplashActivity.java:28)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1184)
at android.app.Activity.performResume(Activity.java:5082)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2565)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2603)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2089)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
I'm using "instabug-reactnative": "2.0.11"
Some bug fixes got merged into master but the release v1.0.5 does not contains any of those fixes.
Seems like the only change this version contains is just the version bump in the package.json
file.
@DevHossamHassan Wondering if you can release a fix for this any time soon?
I came across the same issue as reported in #77 (comment).
The issue is that since InstabugReactLogFunction
is not a variadic function, va_list arg_list
is null here: https://github.com/Instabug/instabug-reactnative/blob/7cc7e90/ios/RNInstabug/InstabugReactBridge.m
It looks like the implementation of IBGNSLogWithLevel
expects this to be non-null, but I can't check that since the iOS SDK is closed source 😢
I would recommend not using va_list
here, since it will always be null, and thus provides no value.
I saw in a closed issue and in a commit that you fixed the setUsername to be setUserName for consistency with iOS. However, we are now seeing this gradle build error when building for Android:
cannot find symbol mInstabug.setUserName(username);
As seen here:
So I changed line 186 to the previous casing to get a successful build:
/**
* Sets the user name that is used in the dashboard's contacts.
*
* @param username
*/
@ReactMethod
public void setUserName(String username) {
try {
186 > mInstabug.setUsername(username);
} catch (Exception e) {
e.printStackTrace();
}
}
Hi!
I'm using the latest version of this library and i'm trying to get logs for ios in my bug reports. Android works great (all the logcat data i could want)
Do i need to replace my console.logs with some function that sends this data off to instabug for ios? or am i not setting something up properly?
edit: i should note i'm using ios 10, i see in the ios specific version of this library that there is some extra work for logging in that verison. I'm new to ios development and i'm not sure exactly how this all works.
I got this error while trying to build with custom schemes. Turned out that react-native link instabug-reactnative
adds ../node_modules/instabug-reactnative/ios
only to the default schemes Debug
and Release
. Could it detect that there are custom schemes defined and handle those properly as well?
It's this line which does the trick: https://github.com/Instabug/instabug-reactnative/blob/master/link.rb#L40
rx.exceptions.OnErrorNotImplementedException
InternalObservableUtils.java:386 rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call
InternalObservableUtils.java:383 rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call
ActionSubscriber.java:44 rx.internal.util.ActionSubscriber.onError
SafeSubscriber.java:152 rx.observers.SafeSubscriber._onError
SafeSubscriber.java:115 rx.observers.SafeSubscriber.onError
Exceptions.java:205 rx.exceptions.Exceptions.throwOrReport
SafeSubscriber.java:139 rx.observers.SafeSubscriber.onNext
PublishSubject.java:305 rx.subjects.PublishSubject$PublishSubjectProducer.onNext
PublishSubject.java:220 rx.subjects.PublishSubject$PublishSubjectState.onNext
PublishSubject.java:73 rx.subjects.PublishSubject.onNext
EventBus.java:24 com.instabug.library.core.eventbus.a.a
SDKCoreEventPublisher.java:9 com.instabug.library.core.eventbus.coreeventbus.b.a
SessionManager.java:233 com.instabug.library.l.a
SessionManager.java:202 com.instabug.library.l.k
SessionManager.java:138 com.instabug.library.l.c
SessionManager.java:269 com.instabug.library.l.a
CurrentActivityLifecycleChanged.java:25 com.instabug.library.tracking.b.onReceive
LocalBroadcastManager.java:297 android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts
LocalBroadcastManager.java:46 android.support.v4.content.LocalBroadcastManager.access$000
LocalBroadcastManager.java:116 android.support.v4.content.LocalBroadcastManager$1.handleMessage
Handler.java:102 android.os.Handler.dispatchMessage
Looper.java:154 android.os.Looper.loop
ActivityThread.java:6688 android.app.ActivityThread.main
Method.java:-2 java.lang.reflect.Method.invoke
ZygoteInit.java:1468 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
ZygoteInit.java:1358 com.android.internal.os.ZygoteInit.main
Caused by: java.util.ConcurrentModificationException
HashMap.java:851 java.util.HashMap$HashIterator.nextEntry
HashMap.java:891 java.util.HashMap$EntryIterator.next
HashMap.java:890 java.util.HashMap$EntryIterator.next
InstabugUserEventLogger.java:185 com.instabug.library.logging.InstabugUserEventLogger$1.a
InstabugUserEventLogger.java:180 com.instabug.library.logging.InstabugUserEventLogger$1.call
ActionSubscriber.java:39 rx.internal.util.ActionSubscriber.onNext
SafeSubscriber.java:134 rx.observers.SafeSubscriber.onNext
PublishSubject.java:305 rx.subjects.PublishSubject$PublishSubjectProducer.onNext
PublishSubject.java:220 rx.subjects.PublishSubject$PublishSubjectState.onNext
PublishSubject.java:73 rx.subjects.PublishSubject.onNext
EventBus.java:24 com.instabug.library.core.eventbus.a.a
SDKCoreEventPublisher.java:9 com.instabug.library.core.eventbus.coreeventbus.b.a
SessionManager.java:233 com.instabug.library.l.a
SessionManager.java:202 com.instabug.library.l.k
SessionManager.java:138 com.instabug.library.l.c
SessionManager.java:269 com.instabug.library.l.a
CurrentActivityLifecycleChanged.java:25 com.instabug.library.tracking.b.onReceive
LocalBroadcastManager.java:297 android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts
LocalBroadcastManager.java:46 android.support.v4.content.LocalBroadcastManager.access$000
LocalBroadcastManager.java:116 android.support.v4.content.LocalBroadcastManager$1.handleMessage
Handler.java:102 android.os.Handler.dispatchMessage
Looper.java:154 android.os.Looper.loop
ActivityThread.java:6688 android.app.ActivityThread.main
Method.java:-2 java.lang.reflect.Method.invoke
ZygoteInit.java:1468 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
ZygoteInit.java:1358 com.android.internal.os.ZygoteInit.main
instabug-react-native: 2.0.3
/usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/atomos-0.1.1/lib/atomos.rb:8:in `atomic_write': undefined method `tmpdir' for Dir:Class (NoMethodError)
from /usr/local/var/rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/xcodeproj-1.5.5/lib/xcodeproj/project.rb:354:in `save'
from ./node_modules/instabug-reactnative/link.rb:79:in `<main>'
Fixed according to similar steps: ydkn/capistrano-git-copy#22
@DevHossamHassan Hey, thanks for releasing a new version containing some of my fixes, I wanted to give it a try but I found some issues.
One of the changes made on this version was fixing a typo of a bridge instabug function setPostInvocationHandler
. I was looking at the documentation but apparently it has not been updated since still has typo in the name (https://instabug.com/public/ios-api-reference/Classes/Instabug.html#//api/name/setPostInvocatioHandler:)
Instabug released that typo on version 6.1.1
https://github.com/Instabug/Instabug-iOS/blob/5671d11a43b527f69e501e2853e74114e3054afc/Instabug.framework/Versions/A/Headers/Instabug.h#L227
So I tried to update my pod version to 6.1.1, but that version does not longer exposes IBGEnums.h
which is used here: https://github.com/Instabug/instabug-reactnative/blob/master/ios/RNInstabug/RCTConvert%2BInstabugEnums.m#L10
Also not sure if the way we import instabug here https://github.com/Instabug/instabug-reactnative/blob/master/ios/RNInstabug/InstabugReactBridge.m#L8 was intentional, I'm not able to have a successful build since Instabug is not found.
For ios, the sdk requires changes to info.plist privacy settings. The following is included in the ios sdk instructions, but it's not obvious that this is also required when using the react-native sdk. I'd suggest adding this text to the README:
Instabug needs access to the microphone and photo library to be able to let users add audio and video attachments. Starting from iOS 10, apps that don’t provide a usage description for those 2 permissions would be rejected when submitted to the App Store.
For your app not to be rejected, you’ll need to add the following 2 keys to your app’s info.plist file with text explaining to the user why those permissions are needed:
NSMicrophoneUsageDescription
NSPhotoLibraryUsageDescription
If your app doesn’t already access the microphone or photo library, we recommend using a usage description like:
" needs access to the microphone to be able to attach voice notes."
" needs access to your photo library for you to be able to attach images."
The permission alert for accessing the microphone/photo library will NOT appear unless users attempt to attach a voice note/photo while using Instabug.
I have a React Native xcode project setup and due certain constrains (Realm DB) I am unable to use cocoapods. I've tried following your installation instructions and have tried to manually link the Instabug sdk after running react-native link instabug-reactnative
.
My issue is that the project fails to build with an error that Instabug/Instabug.h
file not found in InstabugReactBridge.m
*** Doesnt happen every time
If it happens, its only after reload cmd + r
react-native-cli: 2.0.1
react-native: 0.50.4
MacBook Pro High Sierra
IOS simulator - iphone 6
Exception '*** -[NSOperationQueue addOperation:]: operation is finished and cannot be enqueued' was thrown while invoking startWithToken on target Instabug with params (
XXXXXXXXXXXXXXXXXXXXXXXXXXX,
1
)
callstack: (
0 CoreFoundation 0x000000010972b1ab __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000107b3cf41 objc_exception_throw + 48
2 CoreFoundation 0x000000010979fcb5 +[NSException raise:format:] + 197
3 Foundation 0x000000010754d464 _addOperations + 1099
4 InstabugCore 0x000000010739f5fa -[IBGIntializationManager addOperation:] + 79
5 Instabug 0x000000010726826b +[Instabug startWithToken:invocationEvent:] + 342
6 edocate 0x000000010626ba24 -[InstabugReactBridge startWithToken:invocationEvent:] + 100
7 CoreFoundation 0x00000001096af49c invoking + 140
8 CoreFoundation 0x00000001096af370 -[NSInvocation invoke] + 320
9 CoreFoundation 0x00000001096c7d56 -[NSInvocation invokeWithTarget:] + 54
10 edocate 0x0000000105e6004c -[RCTModuleMethod invokeWithBridge:module:arguments:] + 2796
11 edocate 0x0000000105ef69c2 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 786
12 edocate 0x0000000105ef64ef _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 127
13 edocate 0x0000000105ef6469 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 25
14 libdispatch.dylib 0x000000010e5bd273 _dispatch_call_block_and_release + 12
15 libdispatch.dylib 0x000000010e5be2b5 _dispatch_client_callout + 8
16 libdispatch.dylib 0x000000010e5c8496 _dispatch_main_queue_callback_4CF + 1260
17 CoreFoundation 0x00000001096edee9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
18 CoreFoundation 0x00000001096b2592 __CFRunLoopRun + 2402
19 CoreFoundation 0x00000001096b19b9 CFRunLoopRunSpecific + 409
20 GraphicsServices 0x0000000111fcc9c6 GSEventRunModal + 62
21 UIKit 0x000000010c3525e8 UIApplicationMain + 159
22 edocate 0x0000000105dcb11f main + 111
23 libdyld.dylib 0x000000010e632d81 start + 1
)
reactConsoleErrorHandler @ index.bundle:12039
console.(anonymous function) @ index.bundle:55099
console.error @ index.bundle:44984
logToConsole @ index.bundle:18326
logIfNoNativeHook @ index.bundle:18309
__callFunction @ index.bundle:7131
(anonymous) @ index.bundle:6961
__guard @ index.bundle:7102
callFunctionReturnFlushedQueue @ index.bundle:6960
t @ RNDebuggerWorker.js:1
Hi,
Upon installing this library within my RN application, I managed to get everything working fine on iOS however on Android, upon the submission of bug reports, I'm receiving a java.io.FileNotFoundException when it seems to try and fetch the screenshot of the bug report. Stack trace below:
W/System.err: java.io.FileNotFoundException: /storage/emulated/0/Android/data/com.*.*/files/instabug/attachments/bug_1518427383402_.jpg (No such file or directory)
W/System.err: at java.io.FileInputStream.open(Native Method)
W/System.err: at java.io.FileInputStream.<init>(FileInputStream.java:146)
W/System.err: at com.instabug.library.util.BitmapUtils.compressBitmapAndSave(BitmapUtils.java:94)
W/System.err: at com.instabug.bug.d.d(LiveBugManager.java:198)
W/System.err: at com.instabug.bug.d.b(LiveBugManager.java:39)
W/System.err: at com.instabug.bug.d$1.run(LiveBugManager.java:133)
W/System.err: at java.lang.Thread.run(Thread.java:761)
I want to give the user the option to disable Instabug or at least that it does not get invoked on shake. Is it even possible? On iOS, I could just check for the preference when the App launches but how do I do it on Android?
Hey, I just have a question- how can I invoke the introMessage popup only once in React Native?
I noticed that in the instabug-iOS library you guys have a way of doing this as specified in this ticket: Instabug/Instabug-iOS#66
Is there any place I can look for a way of doing this in the documentation?
Thank you.
Some minor changes are needed for gradle 3.0.1 compatibility: in android/build.gradle:
buildToolsVersion
, gradle now specifies a default and the current value conflicts with that.api
not compile
per https://developer.android.com/studio/build/gradle-plugin-3-0-0-migration.html#new_configurationsWe are currently hacking these changes with a script in status.im, and would rather it is fixed upstream. Thanks!
Parent issue: status-im/status-mobile#3037
Very easy to reproduce. Just try to link the module.
When starting the app for iOS, I receive this error:
com.facebook.react.JavaScript (14): EXC_BAD_ACCESS (code=1, address=0x1)
For this line:
InstabugReactBridge.m:458 IBGNSLog(compeleteLog, arg_list);
Hey there, I received the following crash today in one of our production devices:
java.util.ConcurrentModificationException
ArrayList.java:831 java.util.ArrayList$Itr.next
UserEvent.java:65 com.instabug.library.user.a.a
SessionManager.java:184 com.instabug.library.l.k
SessionManager.java:138 com.instabug.library.l.c
SessionManager.java:269 com.instabug.library.l.a
CurrentActivityLifecycleChanged.java:25 com.instabug.library.tracking.b.onReceive
LocalBroadcastManager.java:308 android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts
LocalBroadcastManager.java:46 android.support.v4.content.LocalBroadcastManager.access$000
LocalBroadcastManager.java:118 android.support.v4.content.LocalBroadcastManager$1.handleMessage
Handler.java:102 android.os.Handler.dispatchMessage
Looper.java:154 android.os.Looper.loop
ActivityThread.java:6317 android.app.ActivityThread.main
Method.java:-2 java.lang.reflect.Method.invoke
ZygoteInit.java:872 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
ZygoteInit.java:762 com.android.internal.os.ZygoteInit.main
Is that stack-trace enough to get it fixed?
Is there anything else that I can do to help you without contacting our client?
Device: LG MP450 Android 7.0 - API 24
Version: instabug-reactnative: "2.0.15"
Hey there,
when I reload the app, I sometimes get:
operation is finished and cannot be enqueued' was thrown while invoking startWithToken on target Instabug with params (
d22dgbdawf5b2e7006babc7TESTe4175ce,
2
)
callstack: (
0 CoreFoundation 0x000000011197212b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000110fd8f41 objc_exception_throw + 48
2 CoreFoundation 0x00000001119e7245 +[NSException raise:format:] + 197
3 Foundation 0x00000001109e5cdb __addOperations + 1099
4 InstabugCore 0x00000001108385fa -[IBGIntializationManager addOperation:] + 79
5 Instabug 0x000000011070126b +[Instabug startWithToken:invocationEvent:] + 342
6 AcuityApp 0x000000010b18f0a4 -[InstabugReactBridge startWithToken:invocationEvent:] + 100
7 CoreFoundation 0x00000001118f636c __invoking___ + 140
8 CoreFoundation 0x00000001118f6240 -[NSInvocation invoke] + 320
9 CoreFoundation 0x000000011190ec26 -[NSInvocation invokeWithTarget:] + 54
10 AcuityApp 0x000000010af2c38c -[RCTModuleMethod invokeWithBridge:module:arguments:] + 2796
11 AcuityApp 0x000000010afc4bd2 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 786
12 AcuityApp 0x000000010afc46ff _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 127
13 AcuityApp 0x000000010afc4679 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 25
14 libdispatch.dylib 0x0000000113f792f7 _dispatch_call_block_and_release + 12
15 libdispatch.dylib 0x0000000113f7a33d _dispatch_client_callout + 8
16 libdispatch.dylib 0x0000000113f855f9 _dispatch_main_queue_callback_4CF + 628
17 CoreFoundation 0x0000000111934e39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
18 CoreFoundation 0x00000001118f9462 __CFRunLoopRun + 2402
19 CoreFoundation 0x00000001118f8889 CFRunLoopRunSpecific + 409
20 GraphicsServices 0x00000001144949c6 GSEventRunModal + 62
21 UIKit 0x000000010e4745d6 UIApplicationMain + 159
22 AcuityApp 0x000000010acbcedf main + 111
23 libdyld.dylib 0x0000000113ff6d81 start + 1
24 ??? 0x0000000000000001 0x0 + 1
and the app crashes.
That's on iOS with:
instabug-reactnative 2.1.1
react-native: 0.51.0
Currently, the stacktrace we get is useless when trying to track the problem in Javascript. It makes it difficult to reproduce the problem and harder to fix when we don't have Javascript stacktrace.
Are there are any plans to support this in near future?
Currently I am trying to get the following solution working which I took from https://github.com/mikelambert/react-native-fabric-crashlytics and modified a bit to use with Instabug
. But this isn't much helpful either since the stacktraces still come from the bundle file and it's useless. I am currently looking into adding sourcemap and see if that would be helpful. However, if this can supported out of the box in instabug-reactnative
then that would be very helpful for Instabug users.
'use strict';
import { Platform } from 'react-native';
import StackTrace from 'stacktrace-js';
import Instabug from 'Instabug';
function init() {
// if (__DEV__) {
// // Don't send exceptions from __DEV__, it's way too noisy!
// // Live reloading and hot reloading in particular lead to tons of noise...
// return;
// }
const originalHandler = global.ErrorUtils.getGlobalHandler();
function errorHandler(e, isFatal) {
StackTrace.fromError(e, {offline: true}).then((x) => {
const result = x.map((row) => {
return `functionName: ${row.functionName}\nsource: ${row.source}\nfileName:${row.fileName}:${row.lineNumber || 0}:${row.columnNumber || 0}\n`;
});
Instabug.log(result.join('\n'));
Instabug.reportException(e.message);
});
// And then re-throw the exception with the original handler
if (originalHandler) {
if (Platform.OS === 'ios') {
originalHandler(e, isFatal);
} else {
// On Android, throwing the original exception immediately results in the
// recordCustomExceptionName() not finishing before the app crashes and therefore not logged
// Add a delay to give it time to log the custom JS exception before crashing the app.
// The user facing effect of this delay is that separate JS errors will appear as separate
// issues in the Crashlytics dashboard.
setTimeout(() => {
originalHandler(e, isFatal);
}, 500);
}
}
}
global.ErrorUtils.setGlobalHandler(errorHandler);
}
module.exports = {
init,
};
There seems to be an issue with a pod file when upgrading in windows (or at least with Android build only configured). This is the error after executing "yarn upgrade instabug-reactnative":
Command failed.
Exit code: 1
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c cd ../../ios && pod install
Directory: C:\Users_[...]_\node_modules\instabug-reactnative
Output:
'pod' is not recognized as an internal or external command,
operable program or batch file.
Lately I upgraded an app for iOS from version 1.x to 2.0.5 and had quite a lot of issues. After a long time iI discovered that I was missing the xcodeproj gem which is required by the linking ruby script.
As the error atm prints only "xcodeproj doesn't exist", at first I thought it refered to a file or folder which it was unable to find, or something similar, which made it quite hard to exactly tell what was wrong.
This got solved once I ran the command: gem install xcodeproj
I would suggest 2 improvements from my experience:
Does this lib offers a language support for germany or is it only on english?
Android build fails on account of inconsistent minSdkVersion
, which is set to 10 in instabug-reactnative and 16 in react-native:
Error:Execution failed for task ':instabug-reactnative:processDebugAndroidTestManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 10 cannot be smaller than version 16 declared in library [com.facebook.react:react-native:0.20.1] /.../node_modules/instabug-reactnative/android/build/intermediates/exploded-aar/com.facebook.react/react-native/0.20.1/AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.facebook.react" to force usage
Here is where minSdkVersion
is set:
// android/build.gradle
defaultConfig {
minSdkVersion 10
...
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.