Giter Site home page Giter Site logo

Build Issues about dislock HOT 15 CLOSED

DeastinY avatar DeastinY commented on May 26, 2024
Build Issues

from dislock.

Comments (15)

lkorth avatar lkorth commented on May 26, 2024

Can you provide the stack trace of the crash when you build it with gradle?

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024
05-23 21:37:24.420: E/AndroidRuntime(12348): FATAL EXCEPTION: main
05-23 21:37:24.420: E/AndroidRuntime(12348): Process: com.lukekorth.pebblelocker, PID: 12348
05-23 21:37:24.420: E/AndroidRuntime(12348): java.lang.RuntimeException: Unable to resume activity {com.lukekorth.pebblelocker/com.lukekorth.pebblelocker.PebbleLocker}: java.lang.NullPointerException
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2808)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2837)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2270)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.ActivityThread.access$800(ActivityThread.java:145)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.os.Handler.dispatchMessage(Handler.java:102)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.os.Looper.loop(Looper.java:136)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.ActivityThread.main(ActivityThread.java:5081)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at java.lang.reflect.Method.invokeNative(Native Method)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at java.lang.reflect.Method.invoke(Method.java:515)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at dalvik.system.NativeStart.main(Native Method)
05-23 21:37:24.420: E/AndroidRuntime(12348): Caused by: java.lang.NullPointerException
05-23 21:37:24.420: E/AndroidRuntime(12348):    at com.lukekorth.pebblelocker.util.IabHelper.startSetup(IabHelper.java:267)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at com.lukekorth.pebblelocker.PremiumFeatures.checkForPreviousPurchases(PremiumFeatures.java:96)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at com.lukekorth.pebblelocker.PebbleLocker.onResume(PebbleLocker.java:149)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.Activity.performResume(Activity.java:5310)
05-23 21:37:24.420: E/AndroidRuntime(12348):    at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2798)
05-23 21:37:24.420: E/AndroidRuntime(12348):    ... 13 more

Looks quite strange

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

wow, holy shit that was fast :D
Yeah sure, sec - maybe trying a reboot - as it says "resume" something might still be stuck

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

Build only show lint errors, adding their logs in a sec
http://pastebin.com/de4FaRx5

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

http://pastebin.com/6awvdSPU
LINT issues (html)

from dislock.

lkorth avatar lkorth commented on May 26, 2024

Are you running this on GenyMotion? In IabHelper:267 the following line is blowing up.

if (!mContext.getPackageManager().queryIntentServices(serviceIntent, 0).isEmpty()) {

I had this same problem testing it on an emulator, but I didn't spend any time on it at the time. It looks like it's possible for getPackageManager to return null

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

Right now I am using the haxm, but this is dieing on my nexus 4 as well.
will modify the line and rebuild real quick - interesting

from dislock.

lkorth avatar lkorth commented on May 26, 2024

Pushed a fix to prevent the NPE to develop

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

hmm, seems this did not fix it.
Just did a clean and rebuild, deleted the app from the device and installed it again.

05-23 21:58:01.431: E/AndroidRuntime(6197): FATAL EXCEPTION: main
05-23 21:58:01.431: E/AndroidRuntime(6197): Process: com.lukekorth.pebblelocker, PID: 6197
05-23 21:58:01.431: E/AndroidRuntime(6197): java.lang.RuntimeException: Unable to resume activity {com.lukekorth.pebblelocker/com.lukekorth.pebblelocker.PebbleLocker}: java.lang.NullPointerException
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2808)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2837)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2270)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.ActivityThread.access$800(ActivityThread.java:145)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1206)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.os.Handler.dispatchMessage(Handler.java:102)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.os.Looper.loop(Looper.java:136)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.ActivityThread.main(ActivityThread.java:5081)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at java.lang.reflect.Method.invokeNative(Native Method)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at java.lang.reflect.Method.invoke(Method.java:515)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at dalvik.system.NativeStart.main(Native Method)
05-23 21:58:01.431: E/AndroidRuntime(6197): Caused by: java.lang.NullPointerException
05-23 21:58:01.431: E/AndroidRuntime(6197):     at com.lukekorth.pebblelocker.util.IabHelper.startSetup(IabHelper.java:270)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at com.lukekorth.pebblelocker.PremiumFeatures.checkForPreviousPurchases(PremiumFeatures.java:96)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at com.lukekorth.pebblelocker.PebbleLocker.onResume(PebbleLocker.java:149)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.Activity.performResume(Activity.java:5310)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2798)
05-23 21:58:01.431: E/AndroidRuntime(6197):     ... 13 more

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

maybe I screwed the update :D

from dislock.

lkorth avatar lkorth commented on May 26, 2024

No, you got the commit. I'll try it this time instead of just pushing it

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

yeah. Just did a clean checkout of the branch.

05-23 21:58:01.431: E/AndroidRuntime(6197): Caused by: java.lang.NullPointerException
05-23 21:58:01.431: E/AndroidRuntime(6197):     at com.lukekorth.pebblelocker.util.IabHelper.startSetup(IabHelper.java:270)
05-23 21:58:01.431: E/AndroidRuntime(6197):     at com.lukekorth.pebblelocker.PremiumFeatures.checkForPreviousPurchases(PremiumFeatures.java:96)

I think I forgot to tell you something.
The reason I am build this is because I am setting up a system without gapps.
Maybe it's somehow failing because it can't get connection to the inapppayment/premiumfeature services ?

from dislock.

lkorth avatar lkorth commented on May 26, 2024

develop now has a fix for the NPE. It should work just fine without gapps

from dislock.

DeastinY avatar DeastinY commented on May 26, 2024

Are premiumfeaturechecks disabled in debug ? just installed debug (tried release the times before ) and got the same issue, so it might as well not be related.

from dislock.

lkorth avatar lkorth commented on May 26, 2024

The checks still run in debug, but it defaults you to the paid version

from dislock.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.