Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Cross-Platform-Entwicklung (https://www.delphipraxis.net/91-cross-platform-entwicklung/)
-   -   [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize; (https://www.delphipraxis.net/194789-%5Bfmx-android%5D-tokyo-10-2-2-app-crasht-vor-application-initialize%3B.html)

Rollo62 5. Jan 2018 15:53

[Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Liste der Anhänge anzeigen (Anzahl: 1)
Hallo zusammen,

ich habe mich wieder etwas mit Tokyo 10.2.2 unter Android auseinandergesetzt.
Bei anderen Plattformen funktioniert es gut, aber wie bekannt aus anderen Threads macht Android einige Schwierigkeiten.

Ich habe mich nach einem größerem (Neujahrs)Update Aller System und auch einem Cleanup und Check der problematischen Apps etwas weiter an das Problem herangetastet.

Ich vermute das es, zumindest bei mir, mit dem Einsatz von FireDAC.Phys.SQLite zusammenhängen könnte.
Ich habe ein Minimalbeispiel angehängt.

Es braucht gar keine FireDac Komponenten, schon das Einfügen FireDAC.Phys.SQLite in die Uses Liste reicht um bei mir einen solchen Crash zu zeigen,
bevor man irgendetwas Debuggen oder Loggen kann.

Die App zeigt kurz einen Splashscreen, und geht dann mit "App wirde beendet" raus.
Die Module werden bis zu "Module Load: base.odex", siehe unten, geladen, dann crasht es weg.

Hat vielleicht jemand ähnliches festgestellt, und einen Workaround dafür ?

Ich weiss das man auf FD-Sqlite auch per direktem, schlanken Wrapper zugreifen kann, aber das möchte ich eigentlich nicht, denn meine Apps nutzen FD bereits seit XE8 ohne größere Probleme, bis Rx10.2.2.

Rollo


Log der EventLog Seite:
Zitat:

GNU gdb (GDB) 7.3.1-gg2 (Embarcadero:gdb-28849) (Thu Jun 22 16:41:18 UTC 2017) Process T124_AndCrashFdPhysSqlite.apk (8778)
Copyright (C) 2011 Free Software Foundation, Inc. Process T124_AndCrashFdPhysSqlite.apk (8778)
with modifications copyright 2017 Embarcadero Technologies, Inc. Process T124_AndCrashFdPhysSqlite.apk (8778)
linked with iconv (GNU libiconv 1.14) written by Bruno Haible, copyright (C) 2000-2011 Free Software Foundation, Inc. Process T124_AndCrashFdPhysSqlite.apk (8778)
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. Process T124_AndCrashFdPhysSqlite.apk (8778)
This GDB was configured as "--host=i586-pc-mingw32msvc --target=arm-linux-androideabi". For bug reporting instructions, please see: Process T124_AndCrashFdPhysSqlite.apk (8778)
<http://www.gnu.org/software/gdb/bugs/>. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: linker. Has Debug Info. Base Address: $F55C2440. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libcutils.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libutils.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: liblog.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libbinder.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnativeloader.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libandroid_runtime.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libwilhelm.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libc++.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libc.so. Has Debug Info. Base Address: $F43382F0. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libm.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libbacktrace.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnativehelper.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmemtrack.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libandroidfw.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libexpat.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnetutils.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libui.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libgui.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libinput.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libinputflinger.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libcamera_client.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libcamera_metadata.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libskia.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libsqlite.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libEGL.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libGLESv1_CM.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libGLESv2.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libvulkan.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libETC1.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libhardware.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libhardware_legacy.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libselinux.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libsonivox.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libcrypto.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libssl.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libicuuc.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libicui18n.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmedia.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libjpeg.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libusbhost.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libharfbuzz_ng.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libz.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libaudioutils.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libpdfium.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libimg_utils.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnetd_client.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libradio.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libsoundtrigger.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libminikin.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libprocessgroup.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnativebridge.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libradio_metadata.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmemunreachable.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libhwui.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright_foundation.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright_http_support.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libbase.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libunwind.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstdc++.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libsync.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libpng.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libft2.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libdng_sdk.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libpiex.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libwpa_client.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libpcre.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libpackagelistparser.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnbaio.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libspeexresampler.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libprotobuf-cpp-lite.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libRS.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libRScpp.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libdrmframework.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmediautils.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libopus.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright_omx.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright_yuv.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libvorbisidec.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libpowermanager.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright_enc_common.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright_avc_common.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: liblzma.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libbinary_parse.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libimage_type_recognition.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libtiff_directory.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libRS_internal.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libbcinfo.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libLLVM.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libart.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libsigchain.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: liblz4.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-core-libart.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-conscrypt.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-okhttp.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-core-junit.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-bouncycastle.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-ext.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-framework.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-telephony-common.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-voip-common.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-ims-common.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-apache-xml.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: boot-org.apache.http.legacy.boot.oat. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libandroid.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libcamera2ndk.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libGLESv3.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libjnigraphics.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmediandk.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmediadrm.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libOpenMAXAL.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libOpenSLES.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libwebviewchromium_plat_support.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libart-compiler.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libvixl.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libjavacore.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libopenjdk.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libopenjdkjvm.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: memtrack.tegra132.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmedia_jni.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libmtp.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libexif.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libstagefright_amrnb_common.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libjavacrypto.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libkeystore-engine.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libkeystore_binder.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libkeymaster_messages.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libsoftkeymasterdevice.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libkeymaster1.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libEGL_tegra.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvglsi.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvrm.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvrm_graphics.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvos.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvwsi.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvrmapi_tegra.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvddk_2d_v2.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvcms.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvgr.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvblit.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libnvddk_vic.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libGLESv1_CM_tegra.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libglcore.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libGLESv2_tegra.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libcompiler_rt.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: libwebviewchromium_loader.so. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)
Module Load: base.odex. No Debug Info. Base Address: $00000000. Process T124_AndCrashFdPhysSqlite.apk (8778)



Rollo

Rollo62 8. Jan 2018 14:13

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Äähem (räusper) :oops:
Es scheint ich bin der Einzige mit so einem üblen Crash ...

Könnte bitte jemand das Testprojekt im Anhang unter Rx10.2.2 Pro Android austesten ?

Ich habe ein ziemlich jungfräuliches 10.2.2 RadStudio Pro, und das Demo crasht vor dem Start ohne das irgendwelche nennenswerten Komponenten drauf sind (ausser Label und Memo).
- installiert habe ich nur das aktuellste IdeFixPack und TestInsight

Unter Berlin kein Problem, alles perfekt unter 10.2.1 startete es zumindest/auch andere komplexe Apps, und jetzt so etwas.

Rollo

Mavarik 9. Jan 2018 09:12

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Also.

Bei start bekomme ich einen Fehler - aber vom SDK/NDK
adb: error cannot stat c:\DeineApp\bin\Deineapp.apk no such file or directory

Stat? start... Aber c:\Appname ???

Ich sehe den Fehler nicht, aber meine App 300.000 LOC inkl. FireDAC.Phys.SQLite läuft "ohne" Probleme mit 10.2.2

Wenn ich einen neue App mit 10.2.2 erzeuge und dann einfach nur ein FDPysSQLiteDriverLink aufs Formular klicke funktioniert es...

Grüsse Mavarik

Rollo62 9. Jan 2018 10:07

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Hallo Frank,

hast du versucht mal die Unit in ein neues Projekt zu nehmen ?
(Ich hatte das ja auch schon in ein Neues Projekt angelegt).

Ist doch Alles auf RadStudio default ...

Läuft es denn wen du die Zeile FdSqlitePhys auskommentierst ? (Bei mir geht es dann zumindest).

Das ist ja sehr seltsam, wie kann eine vollkommen neue und leere App (app)stürzen :gruebel:

Könntest du mir bitte die Messages und Fehler schicken bei Laden, was RadStudio da rauswirft ?

Rollo

Mavarik 9. Jan 2018 11:05

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Liste der Anhänge anzeigen (Anzahl: 1)
Wie gesagt, warum es mit Deiner App nicht geht, sehe ich nicht.

Eine neue App funktioniert bei mir.

Mavarik

Rollo62 9. Jan 2018 16:46

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Dankesehr für die Bemühungen.

So ein Popup kommt bei mir nicht, es fliegt einfach nur raus und Android macht ein Popup das die App nicht gestartet wereen kann.

Das ist ein minimalstes Programm, und ich habe nochmal alle Files nach Referenzen durchsucht.
Da sind keine speziellen Referenzen zu adb drin, am ehesten dies in .DPROJ
Code:
                <DeployFile LocalName="$(NDKBasePath)\prebuilt\android-arm\gdbserver\gdbserver" Configuration="Debug" Class="AndroidGDBServer">
                    <Platform Name="Android">
                        <Overwrite>true</Overwrite>
                    </Platform>
                </DeployFile>
Ich vermute mal das es wirklich mit den libXxx zu tun hat, falsche Build-Versionen, interne Fehler, o.ä.
Der Crash passiert bei mir übrigens nicht nur beim Debuggen, bei Release crasht es genauso.

Ok, dann muss ich wohl noch etwas bei Berlin bleiben, und auf das nächste Update hoffen :(

Schade, denn ansonsten fühlte sich diese Version schon viel flotter an als die Fixes davor.

Rollo

Mavarik 9. Jan 2018 16:57

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Ich habe einfach das Android SDK/NDK gelöscht und beim ersten start neu durch GetIt geladen...

Hast Du mal ne neue App Versucht, sonst schick ich Dir eine...

Mavarik

Rollo62 9. Jan 2018 17:01

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Die ich im Anhang habe war auch eine ganz neue App.

Ich hatte gerade doch noch mal eine ganz neue probiert, weil ich es gar nicht glauben will:
- New MultiDevice Project
- Speichern
- Auf Android schalten
- Start mit Debug

--> läuft

Dann baue ich die Zeile in die Unit ein ein:
Delphi-Quellcode:
uses
  System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
  FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs
  //
  , FireDAC.Phys.SQLite  // !!! Adding this line causes Crash under Android 7.1.1
  ;
- Start mit Debug

--> Crash

Ich kann jetzt nochmal versuchen Alles neu zu installieren, aber Weihnachtsferien sind schon vorbei :(
Wird wohl etwas dauern.

Rollo

Mavarik 9. Jan 2018 17:13

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Dann "bau" das doch bitte nicht ein, sondern Klick die Komponente aufs Form...
Dann werden doch 4 Units in die Uses eingefügt.

Rollo62 9. Jan 2018 17:15

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Das hatte ich natürlich auch so gemacht.

Ich habe das nur eingebaut weil ich das schon so weit zerlegt hatte
und schon diese Zeile den Crash verursacht.
Vermutlich NUR diese Zeile.

Rollo

Mavarik 9. Jan 2018 17:33

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Zitat:

Zitat von Rollo62 (Beitrag 1390662)
Das hatte ich natürlich auch so gemacht.

Ich habe das nur eingebaut weil ich das schon so weit zerlegt hatte
und schon diese Zeile den Crash verursacht.
Vermutlich NUR diese Zeile.

Rollo

Bedeutet so geht es auch bei Dir?

Rollo62 9. Jan 2018 17:43

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Ok, ich hab das SDK gelöscht und neu installiert per GetIt.
Jetzt hat er hier API22 eingestellt
und das in CatalogRepository installiert
AndroidNDK-9c_x86
AndroidSDK-24.3.3
AndroidSDKAndTools-XE9

Was soll ich sagen, jetzt läuft die App wieder, und anscheinend auch meine größeren Apps :oops:

Also ich hatte Probleme mit Android 5.0 Kompatibilität, und hatte versucht die API von AndroidStudio einzuspielen.
Aber offensichtlich war das API 22 und nicht API23, wie ich versucht hatte.
Verdammte Versionshölle.

Kann es sein das Emba speziell angepasste SDKs/NDKs hat, oder sind das die Gleichen (wovon ich immer ausgehe) ?

Muss weiter Testen.

Dankesehr für die Unterstützung, ich hoffe das ich bald komplett auf Tokyo wechseln kann, mit iOS/MacOs bin ich ja schon, Android fehlt noch.

Rollo

Rollo62 9. Jan 2018 17:44

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Zitat:

Vermutlich NUR diese Zeile.
Ja, das war ja das seltsame.
NUR diese eine Zeile mit Sqlite machte den Crash.

Aber jetzt mit ganz anderer API22 (statt vorher 23), scheints wieder zu Laufen ...

Rollo

himitsu 9. Jan 2018 17:48

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Zitat:

- Start mit Debug

--> Crash
Vielleicht hab ich die Infos übersehn, aber wo knallt es denn?

Der Debugger wird doch hoffentlich auch ein bissl was anzeigen.
Stacktrace usw.

Rollo62 9. Jan 2018 20:20

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Es crasht vor dem Eintritt in die Pascal-Routinen, also vor Initialize.
In C würde ich vor main sagen :stupid:

Es scheint sich geklärt zu haben, das wird mit den unterschiedlichen API-Versionen zu tun gehabt haben.

Unter Belin konnte ich mit Updates der API arbeiten, und habe komplexere Apps am Laufen mit API-23.

Unter Tokyo scheint es API-22 sein zu müssen, denn dies hat der GetIt Installer installiert.

Ich bin noch am Testen, aber es scheint jetzt unter Android wieder brauchbar zu werden nach dem letzten 10.2.2 Update.

Die APIs hatte ich unter Berlin mit dem Android-Studio verwaltet, unter Tokyo scheint dies das Problem gewensen zu sein.

Ich bin aber noch am Testen.

Der Grund warum ich vom GetIt SDK abgewichen bin waren Probleme mit älteren Phones, auf z.B. Android-5, dise waren unter Belin mit höherem APi oder Update des API gelöst.
Ich bin noch dabei für mich eine Liste der nötigen/möglichen APIs zu Erstellen, ach weil anscheinend ab Android 7 etwas Unruhe in die APIs gekommen war.

Eine problematische/beunruhigende Frage wäre noch:
Warum hat es bei Frank auch gecrasht (minimale App, nur mit FireDac.Sqlite.Phys in den Uses) ?
Die TestApp hängt unten im 1. Post dran, kannst du ja gerne auch mal checken.
Die läuft jetzt jedenfalls wieder, nach der Neuinstallation von SDK/NDK via GetIt.

Rollo

Rollo62 10. Jan 2018 07:07

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
In dem Ganzen Versionsdschungel bin ich vielleicht auf der falschen Fährte ?
EDIT: Diese schöne Liste will ich euch auch nicht vorenthalten ...

Laut Emba braucht Tokyo:
Zitat:

Bei der Installation des Produkts installiert RAD Studio die Android SDK-Tools Revision 24.3.3 und das Android NDK. Enthalten sind:

Die Android OS-Version 6.0 (API-Level 23)
Das Android NDK (android-ndk-r9c)

Warnung: RAD Studio unterstützt diese Android-Entwicklungstools. Verwenden Sie keine anderen Versionen oder aktualisieren Sie sie nicht unabhängig von RAD Studio.
(Ok, die Warnung würde ich jetzt ernster nehmen) :stupid:

Aber trotzdem,
gestern neu mit GetIt installiert wirft mir das Setup nur
SDK: platforms\android-22 raus
NDK: platforms\android-3 bis android-19 raus

Infos:
API-Level:

SDK Version History
- SDK "Zusatz" aktuell: 24.3.3
- BuildTools: 22.0.1
- Platforms: android-22 OK, hier ist mal die gewünschte 22, aber 23 ist noch eins höher
- Platform tools: ???



SDK Tools History
Zitat:

  1. SDK Tools, Revision 24.3.3 (June 2015)
    Dependencies:
  2. Android SDK Platform-tools revision 19 or later.
  3. General Notes:
    Fixed issues with using Ant build tasks with the Eclipse ADT build structure.
    Fixed the emulator boot problem on Mac OS X 10.8.5.

--> Diese "aktuellen" SDK-Tools sind von 2015, und verweisen auch auf womöglich API 19

NDK revision history
Zitat:

  1. Header fixes:
    Changed prototype of poll to poll(struct pollfd *, nfds_t, int); in poll.h.
    Added utimensat to libc.so for Android API levels 12 and 19. These libraries are now included for all Android API levels 12 through 19.
    Introduced futimens into libc.so, for Android API level 19.
    Added missing clock_settime() and clock_nanosleep() to time.h for Android API level 8 and higher.
    Added CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE, CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM, and CLOCK_BOOTTIME_ALARM in time.h.
    Removed obsolete CLOCK_REALTIME_HR and CLOCK_MONOTONIC_HR.

- NDK "Zusatz" aktuell: 9c_x86
- NDK Platforms: android-3 bis android-19 ??
- Release: r9c

--> Nirgends die Rede von API-Level 22 hier, also sind die NDKs doch nur bis API-level 19, oder nicht ?

Laut Android sieht die History folgendermassen aus.

Stimmen diese "API-nummern" bei SDK und NDK etwa nicht überein, sind das womöglich nur unabhängige "revision" Nummern ?

FAZIT: Für mich sieht es in etwa so aus:
FMX fordert:
SDK API-Level android-23
NDK r9c

GetIt installiert:
SDK API-Level android-22: NICHT OK, das scheint mir da nur die 22 statt 23 zu sein
SDK-Tools: 24.3.3 (ist nirgends spezifiziert, scheint aber android-19 zu sein)
NDK r9c: OK, (aber auch hier sehe ich nur android-19, nirgends den Hinweis auf android-23)

Wer kann denn etwas mehr Licht in dieses Dunkel der Versionitis bringen,
welche Version darf/muss da sein bei den SDK/NDK und Tools ?

Rollo

mensch72 10. Jan 2018 09:16

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
ich habe eine kleine Übersicht mit "geht gut"/"geht nicht" für Android hier schon mal irgendwo gepostet.

Bei mir war "Tokyo" damals am neuesten JAVA und dem neuesten NDK gescheitert.
- Emba installiert altes "8.x.86er" Java... neu "8.x.14x" oder gar Java "9.0.1" wollte nicht
- gleiches beim NDK, hier geht die Emba Variante, und die "neueste" ging nicht
- SDK !unter Tokyo! "exportieren", Das als TextFile manuell per TextEditor bearbeiten(also alle Path und Files so ändern, das es gemeinsam mit AndoidStudio geht), dann SDK wieder "importieren"... fertig ist eine "beliebige" AndroidSDK Version, bzw. so auch recht einfach mehrere.
- Achtung: man exportiere KEIN SDK von Berlin, um es in Tokyo zu importieren, da hat sich was mit dem "GrundJava" intern geändert, man bekommt dann stets die Info das JAVA Path x,y nicht da, was auch stimmt nur kann man es per Dialog nirgends in der GUI wieder einstellen. Steht dann nur irgendwo in Registry und nervt... mir war damals die Zeit zu schade und ich bin einfach ein VM Backup zurück gegangen


=> ich habe mittlerweile etwas weiter "geforscht" und habe ein aktuelles Java8 sowie ein etwas aktuelleres NDK mit verschiedenen SDKs(API19,API22,API25) verwaltet per AndroidStudio am laufen. (BLE, Sensoren und Debug funktionieren mit Android 4.4 bis 8.0 mit Google Nexus Geräten)

Wenn Zeit, "exportiere" ich all mal meine SDKs unter Tokyo und lade sie als ZIP hier hoch... dann einfach per Texteditor dort alles auf die eigenen Verzeichnisse anpassen und importieren... dann sollte es wie bei mir funktionieren:)

Rollo62 10. Jan 2018 09:49

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Ich dachte ich hätte Tokyo unter Api-25 auch schon am Laufen, aber dann passiert mal dies, mal das.
- Mal gehen die Sensoren, mal nicht.
- Mal läuft es bis runter zu Android 5.0 (wäre meine Zielvorhgabe), mal nicht.

Wir können gerne mal eine "saubere" Prozessbeschreibung und Tests zur Installation von neuesten APIs,
denn Emba macht das wohl nicht für uns :(
Die nötigen APIs können wir gerne mal abgleichen.

Bin auch weiter am forschen, aber ich muss im Moment noch andere Feature-Updates bei mir fertigmachen, dann kann ich weiter mit Android spielen.

Jedenfalls die gute Nachricht scheint zu sein: Rx10.2.2 läuft wieder mehr oder weniger mit Android :thumb:
Zumindest für meine Apps (habe momentan 3 getestet, und einige Emba Demos).
Die Details was geht/was nicht muss ich aber noch rausfrickeln.

Edit:
Zu "eigenen Verzeichnissen", ich hatte etwas gefunden das RadStudio nur CatalogRepository als Ziel akzeptiert (so wie von GetIt angelegt).
Hast du da vielleicht auch etwas zu herausgefunden ?

Rollo

mensch72 10. Jan 2018 10:52

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Liste der Anhänge anzeigen (Anzahl: 2)
beim NDK verwende ich produktiv derzeit noch das Verzeichnis und die Version von GetIT
beim SDK verwende ich schon wieder die vom AndroidStudio verwalteten und woanders abgelegten Dateien und Pathe


ach ja, "SDK anlegen" per RadStudio funktioniert bei mir nicht, ich exportiere ein SDK, bearbeite es als Textfile und importiere es wieder.
Alleine weger der Archivierung und dem Transfer der Einstellung auf andere Installationen wull und muss ich das so machen:)

Rollo62 10. Jan 2018 11:24

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Bei mir ist gerade die aktuelle GetIt configuration drin, auf etwas anderem Pasispfad.
Aber ansonsten ähnlich, bis auf ein paar Unterschiede.

Wie du unten schreibst hast du anscheinen auf API26 und BuildTools 26.0.3 upgedatet.
NDK sollte gleich sein, aber bei Beiden unterschieden sich die Pfade ein wenig.
- Ich habe es angelegt mit neues Projekt, dann kompilieren, startet den GetIt-Installer.
- Du hast womöglich via Tools\GetIt installiert

Trotzdem seltsam das es dabei Unterschiede gibt.

Der NDK Basispfad AndroidNDK-9c_x86 statt ...19.028979.1978 deutet ein wenig darauf hin das diese Packages von Emba angelegt wurden (...19.028979.1978), und nicht das Orginal Android NDK verwendet wird.

Hast du mal gecheckt ob die Files in den Verzeichnissen r9c von Emba und r9c von Android 1:1 gleich sind ?
Leider habe ich im Moment kein Android r9c installiert, sonst hätte ich selbst mal eben nachgeschaut.
Ich vermute das Emba da vielleicht noch die ein oder andere Library angepasst hat.

Zitat:

SDK-Basispfad
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidSDK-24.3.3

ZipAlign
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidSDK-24.3.3\build-tools\22.0.1\zipalign.exe // statt 26.0.3

Aapt
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidSDK-24.3.3\build-tools\22.0.1\aapt.exe // statt 26.0.3

API-level location
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidSDK-24.3.3\platforms\android-22 // statt 26



NDK-Basispfad
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidNDK-9c_x86 statt ...19.028979.1978

arm-abi toolchain
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidNDK-9c_x86\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-ld.exe

GDB-Server
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidNDK-9c_x86\prebuilt\android-arm\gdbserver\gdbserver

NDK-API
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidNDK-9c_x86\platforms\android-14

C++ Builder library pfad
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidNDK-9c_x86\platforms\android-14\arch-arm\usr\lib

Delphi library pfad
C:\Users\Public\Documents\Embarcadero\Studio\19.0\ CatalogRepository\AndroidNDK-9c_x86\sources\cxx-stl\gnu-libstdc++\4.8\libs\armeabi-v7a;C:\Users\Public\Documents\Embarcadero\Studio\1 9.0\CatalogRepository\AndroidNDK-9c_x86\platforms\android-14\arch-arm\usr\lib



Java
C:\Program Files\Java\jdk1.8.0_60\bin\keytool.exe
C:\Program Files\Java\jdk1.8.0_60\bin\jarsigner.exe

mensch72 10. Jan 2018 20:03

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
..."- Du hast womöglich via Tools\GetIt installiert"...
-> definitiv nicht!

Ich habe per "WebInstaller" installiert, dann glaube beim Erststart hat die IDE noch einiges per "GetIT" selbst installiert.
Dann habe ich die IDE beendet und im FileSystem alles was ich nicht brauche/will gelöscht. Habe also in der Variante nur das von Emba installierte Android-NDK behalten, aber alles was Android-SDK war hart gelöscht. (denn ich habe ja schon per AndroidStudio "irgendwo" ein komplettes aktuelles 26.0.3 SDK:) )

Wie zuvor schon gesagt, das ist und war mein "erster/etwas" funktionierender Stand.

Aktuell bin ich mit "aktuellerem Java" und "aktuellerem NDK" schon wieder einen Schritt weiter, nur habe leider gerade keinen Zugriff auf diese VMs :(

Rollo62 10. Jan 2018 20:31

AW: [Fmx,Android] Tokyo 10.2.2 App crasht vor Application.Initialize;
 
Ok, den WebInstaller kenne ich nicht.
Kann ich ja erst bei einem Haupt-Update wechseln (weiss noch gar nicht ob ich das wirklich möchte).

Bin bisher mit der ISO sehr gut gefahren, und die funktioniert auch wen die Server bei Emba mal wieder down sind.

Soweit ich das weiss ist der WebInstaller auch auf GetIt basierend, komisch ist dann nur das es anscheinend immer andere Verzeichniseinträge gibt.
Die Wege zum SDK wären
1. bei der ISO-Install mitinstallieren lassen
2. per WebInstall (auch GetIt ?)
3. per GetIt, wenn Delphi schon installiert ist
4. per 1. Android Projekt (war meiner Meinung nach auch wieder über GetIt gesteuert wird)
5. von Hand per AndroidStudio parallel installiert

Hab ich noch was vergessen, oder falsch gedacht ?

Naja, die Pfade werden ja hoffentlich nicht so kritisch sein,
es geht ja mehr um das was am Ende dahinter steckt.
Da hoffe ich eigentlich schon das es immer über GetIt läuft, damit die gleichen
SDK-Images installiert werden, und nicht noch aus 4 Quellen redundante Daten einfliessen.

Ich habe mit meiner aktuellen Version im Moment auch alle Tests bestanden, ich glaube ich werde es mal wagen ein Update der Apps damit zu fahren.

Rollo


Alle Zeitangaben in WEZ +1. Es ist jetzt 10:15 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz