Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to invoke virtual method 'java.util.List com.instabug.library.annotation.d.a()' on a null object reference #153

Closed
SudoPlz opened this issue Dec 17, 2018 · 4 comments
Assignees

Comments

@SudoPlz
Copy link

SudoPlz commented Dec 17, 2018

Hi, this happened on one of our production customer devices.

java.lang.NullPointerException Attempt to invoke virtual method 'java.util.List com.instabug.library.annotation.d.a()' on a null object reference 
    AnnotationView.java:150 com.instabug.library.annotation.AnnotationView.getScaledDrawables
    AnnotationView.java:143 com.instabug.library.annotation.AnnotationView.onSizeChanged
    View.java:20974 android.view.View.sizeChange
    View.java:20916 android.view.View.setFrame
    ImageView.java:1208 android.widget.ImageView.setFrame
    View.java:20970 android.view.View.setLeftTopRightBottom
    ChangeBounds.java:502 android.transition.ChangeBounds$ViewBounds.setLeftTopRightBottom
    ChangeBounds.java:497 android.transition.ChangeBounds$ViewBounds.setBottomRight
    ChangeBounds.java:102 android.transition.ChangeBounds$3.set
    ChangeBounds.java:100 android.transition.ChangeBounds$3.set
    PropertyValuesHolder.java:962 android.animation.PropertyValuesHolder.setAnimatedValue
    ObjectAnimator.java:990 android.animation.ObjectAnimator.animateValue
    ValueAnimator.java:1316 android.animation.ValueAnimator.animateBasedOnTime
    ValueAnimator.java:1446 android.animation.ValueAnimator.doAnimationFrame
    ValueAnimator.java:1465 android.animation.ValueAnimator.pulseAnimationFrame
    AnimatorSet.java:1163 android.animation.AnimatorSet.pulseFrame
    AnimatorSet.java:1054 android.animation.AnimatorSet.doAnimationFrame
    AnimationHandler.java:146 android.animation.AnimationHandler.doAnimationFrame
    Unknown android.animation.AnimationHandler.-wrap2
    AnimationHandler.java:54 android.animation.AnimationHandler$1.doFrame
    Choreographer.java:909 android.view.Choreographer$CallbackRecord.run
    Choreographer.java:723 android.view.Choreographer.doCallbacks
    Choreographer.java:655 android.view.Choreographer.doFrame
    Choreographer.java:897 android.view.Choreographer$FrameDisplayEventReceiver.run
    Handler.java:789 android.os.Handler.handleCallback
    Handler.java:98 android.os.Handler.dispatchMessage
    Looper.java:164 android.os.Looper.loop
    ActivityThread.java:6938 android.app.ActivityThread.main
    Method.java:-2 java.lang.reflect.Method.invoke
    Zygote.java:327 com.android.internal.os.Zygote$MethodAndArgsCaller.run
    ZygoteInit.java:1374 com.android.internal.os.ZygoteInit.main

Steps to Reproduce the Problem

image

Actual Behavior

App crash

SDK Version

"instabug-reactnative": "8.0.18",

React Native, iOS and Android Versions

"react": "16.4.1",
"react-native": "0.56.0",
Android API 26 (8.0.0) (OS build: R16NW.G965USQU3BRJ5)

Device Model

samsung S9 (SM-G965U)

Other info:

dpi 560
emulator false
freeDisk 56039325696
freeMemory 256881320
id d1f7bcb7-bebc-4a22-a16d-42f1f47bf5c9
jailbroken false
locale en_US
locationStatus allowed
manufacturer samsung
model SM-G965U
networkAccess wifi
orientation portrait
osBuild R16NW.G965USQU3BRJ5
osName android
osVersion 8.0.0
screenDensity 3.5
screenResolution 2792x1440
time 2018-12-15T04:43:09.000Z
totalMemory 268435456
@HeshamMegid HeshamMegid transferred this issue from Instabug/Instabug-React-Native Dec 18, 2018
@HeshamMegid
Copy link
Contributor

@SudoPlz we're looking into this crash.

I've moved the issue to our Android SDK repo since it's causing the crash.

salmamali added a commit to Instabug/Instabug-React-Native that referenced this issue Jan 6, 2019
@salmamali
Copy link

@SudoPlz
This custom build fixes the issue. To install:

npm install --save https://github.com/Instabug/instabug-reactnative#customBuild/snapshot_8.0.14.10

And add the following to your project level build.gradle

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven {
            url 'https://maven.google.com/'
            name 'Google'
        }
        maven {
            url "https://oss.sonatype.org/content/repositories/snapshots" // Add this to use custom builds
        }
    }
}

@SudoPlz
Copy link
Author

SudoPlz commented Jan 7, 2019

Hey @salmamali thanks for the update.
What is the public release version for that?
It takes a lot of time to use custom versions so we only care about the public release version to update your sdk to that.

Thank you!

@HeshamMegid
Copy link
Contributor

@SudoPlz this is planned to be included in the next release, scheduled for the second week of Feb.

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

No branches or pull requests

4 participants