-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
APK crashes upon launch. logcat error: null pointer dereference (occurs with imported modules) #2358
Comments
I am facing this issue as well. It is just a small application of two screens with fade transition in between with 5 buttons on first screen where one of them is copyright button which shows copyright notices in a website. I implemented it using Android-for-Python module for it which is the only button works on apk I built. Rest 4 buttons crashes showing this exception and there is a text field and FitImage widget too which was working fine. Since the button wasn't working, I cannot navigate to second screen as well. It works good on IDE. I am not sure what am I missing so. Please someone guide correct way to resolve this issue. |
I tried the build with kivy md 1.0.2 version. Its working fine now |
@shoumikdas are you still encountering this issue? |
I am experiencing the same issue and the logs are also similar " Cause: null pointer dereference". But this problem is happening only on some devices, experienced on vivo devices specifically with android version -12 and - 13. On the other hand I am using Samsung M31s Android 12, it's working perfectly fine. Here's the code which leads to app crash:
|
Hi @yaitskeshav ! I'm closing this issue since yours could be unrelated and the original author did not reply yet. (And some additional context was needed) Can you please try to reduce your code to the bare minimum (also by removing KivyMD from the equation), and file a new issue if it persists? |
Checklist
p4a.branch = develop
)Versions
Description
I have built a simple Kivy app with 2 screens which transition into one another at the click of a button on each screen. The screen uses canvas and colour. The apk compiles with the default buildozer spec file without any error. However, when I install the apk file on an android device, it crashes soon after the splash screen. The code uses standard Python and Kivy modules and only one custom module for checking internet connectivity. The code does not use any global variable, global function, system call or null value (None) reference. Interestingly, if I do not import any custom module, the code runs perfectly fine. But it is not possible to embed every custom module in the main python file. I have tested multiple scenarios on multiple devices and also sought help on the Kivy User Support Google Group as well but the root cause could not be identified. The code (Kivy app) runs perfectly fine without any error or warning on my Ubuntu system. Basically the first screen has a button which, when clicked, checks for internet connectivity. If a valid connection is found, it transition to the second screen. If there is no internet connection, it does nothing. The second screen has a logout button which brings the user to the first screen.
The code files are attached for reference.
screens.zip
A logcat output shows the following error:
--------- beginning of crash
11-16 09:19:19.961 2803 29315 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8 in tid 29315 (Preview3AAThrea), pid 2803 (provider@3.0-se)
11-16 09:19:20.044 31254 31254 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-16 09:19:20.045 31254 31254 F DEBUG : Build fingerprint: 'samsung/m10ltedd/m10lte:10/QP1A.190711.020/M105FDDU3CTI3:user/release-keys'
11-16 09:19:20.045 31254 31254 F DEBUG : Revision: '4'
11-16 09:19:20.045 31254 31254 F DEBUG : ABI: 'arm'
11-16 09:19:20.047 31254 31254 F DEBUG : Timestamp: 2020-11-16 09:19:20+0530
11-16 09:19:20.047 31254 31254 F DEBUG : pid: 2803, tid: 29315, name: Preview3AAThrea >>> /vendor/bin/hw/vendor.samsung.hardware.camera.provider@3.0-service <<<
11-16 09:19:20.047 31254 31254 F DEBUG : uid: 1047
11-16 09:19:20.047 31254 31254 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8
11-16 09:19:20.048 31254 31254 F DEBUG : Cause: null pointer dereference
11-16 09:19:20.048 31254 31254 F DEBUG : r0 00000000 r1 00000000 r2 00000001 r3 00000000
11-16 09:19:20.048 31254 31254 F DEBUG : r4 ed439a80 r5 00000000 r6 00000001 r7 e5870058
11-16 09:19:20.048 31254 31254 F DEBUG : r8 ee41f300 r9 ed439a80 r10 f064d260 r11 e5870060
11-16 09:19:20.048 31254 31254 F DEBUG : ip ef83863c sp e58681a0 lr ef7ab3cb pc ef7ab3cc
11-16 09:19:20.068 31254 31254 F DEBUG :
11-16 09:19:20.068 31254 31254 F DEBUG : backtrace:
11-16 09:19:20.068 31254 31254 F DEBUG : #00 pc 0006a3cc /vendor/lib/libexynoscamera3.so (android::ExynosCameraFrame::getFrameDoneFirstEntity(unsigned int)+12) (BuildId: a9243cc5d0a5792ad1baf4e7cb2b99ed)
11-16 09:19:20.069 31254 31254 F DEBUG : #1 pc 000be51f /vendor/lib/libexynoscamera3.so
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: