Git Product home page Git Product logo

Comments (8)

plateaukao avatar plateaukao commented on August 23, 2024 1

It should all crash for old versions. Because originally I don't expect any device will enter that line... so there's no implementation for that scenario. Thanks for verifying the fix for me. I'll have a release for this fix. :)

from einkbro.

plateaukao avatar plateaukao commented on August 23, 2024

Hi, @Kazurin-775

I just pushed a fix that might fix this issue. Could you fetch the latest codes and try again to see if it's really fixed? Thank you!

from einkbro.

Kazurin-775 avatar Kazurin-775 commented on August 23, 2024

Thanks for your quick reply! The app can be opened now (and it shows "EinkBro" on the bottom bar), but I still cannot interact with anything on the UI, or the app will still crash. This is the log when I tap on the menu button:

10-15 21:40:28.295  5911  5911 E AndroidRuntime: FATAL EXCEPTION: main
10-15 21:40:28.295  5911  5911 E AndroidRuntime: Process: info.plateaukao.einkbro, PID: 5911
10-15 21:40:28.295  5911  5911 E AndroidRuntime: kotlin.UninitializedPropertyAccessException: lateinit property ninjaWebView has not been initialized
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at de.baumann.browser.activity.BrowserActivity.showMenuDialog(BrowserActivity.kt:1481)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at de.baumann.browser.activity.BrowserActivity.initToolbar$lambda-10(BrowserActivity.kt:728)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at de.baumann.browser.activity.BrowserActivity.$r8$lambda$VRLLLoVHdallnoJKBTNARm8k9K4(Unknown Source:0)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at de.baumann.browser.activity.BrowserActivity$$ExternalSyntheticLambda3.onClick(Unknown Source:2)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at android.view.View.performClick(View.java:6298)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at android.view.View$PerformClick.run(View.java:24788)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:793)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:99)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6496)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
10-15 21:40:28.295  5911  5911 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
10-15 21:40:28.309  1902  2344 W ActivityManager:   Force finishing activity info.plateaukao.einkbro/de.baumann.browser.activity.BrowserActivity

(BTW, I may be able to help with debugging, so if there is anything I can do, please tell me.)

from einkbro.

plateaukao avatar plateaukao commented on August 23, 2024

Is it happening after some version? or you just try to install EinkBro on your miReader device for the first time, and it just don't work normally? it looks like ninjaWebView is no initialized in the first place, but it should have in normal case.

from einkbro.

plateaukao avatar plateaukao commented on August 23, 2024

I added some logic to make sure a proper webview being created. Could you try again with this version: c854c57

from einkbro.

plateaukao avatar plateaukao commented on August 23, 2024

If you can set breakpoint for debugging, please help to check if it enters this line while starting the app: https://github.com/plateaukao/browser/blob/main/app/src/main/java/de/baumann/browser/activity/BrowserActivity.kt#L713

from einkbro.

Kazurin-775 avatar Kazurin-775 commented on August 23, 2024

The latest code (c854c57) seems to be fully working! No glitches / crashes right now. Thanks!


If you can set breakpoint for debugging, please help to check if it enters this line while starting the app

Yes, the breakpoint is hit on app startup.

Is it happening after some version? or you just try to install EinkBro on your miReader device for the first time, and it just don't work normally?

I've tried the F-Droid build (v8.17.0) and the GitHub release (v8.18.0), both versions have the same problem. Haven't tried any earlier version yet.

from einkbro.

plateaukao avatar plateaukao commented on August 23, 2024

Here's the new version. :) https://github.com/plateaukao/browser/releases/tag/v8.18.1

from einkbro.

Related Issues (20)

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.