Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi 10 Seattle crashes on Android versions below 6.0


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 22 - Last Post: Aug 31, 2016 1:30 PM Last Post By: Pietro Gueriiero
Remi Arts

Posts: 40
Registered: 11/15/13
Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 22, 2016 11:54 PM
I've build an app in both Delphi XE8 and Delphi 10. The Delphi XE8 version of my app crashes on Android 6.0 devices and the Delphi 10 version of my app crashes on Devices with Android version lower then 6.0.

I've created a new project file and all for the Delphi 10 version of my app. When I debug and the app crashes I don't get any feedback, it just stops.

It mostly seems to crash when I close my second form and go back to the first form. But as I said I can't debug.

I've also tried to compile with different Android SDK versions and NDK versions.

Edited by: Remi Arts on Feb 23, 2016 4:39 AM
loki loki

Posts: 787
Registered: 7/1/02
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2016 3:58 AM   in response to: Remi Arts in response to: Remi Arts
Remi Arts wrote:
I've build an app in both Delphi XE8 and Delphi 10. The Delphi XE8 version of my app crashes on Android 6.0 devices and the Delphi 10 version of my app crashes on Devices with Android version lower then 6.0.

I've created a new project file and all for the Delphi 10 version of my app. When I debug and the app crashes I don't get any feedback, it just stops.

It mostly seems to crash when I close my second form and go back to the first form. But as I said I can't debug.

hmm hard to say why, try to see it's it's not a problem with bitmap (i don't remembered but i think xe7 can not work on lolipop without a patch, don't know if the same for xe8), look also if you are not using some thread that produce some conflict, etc...
i will remove components in the app still the application don't crash to see what cause the crash
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2016 5:35 AM   in response to: loki loki in response to: loki loki
loki loki wrote:
Remi Arts wrote:
I've build an app in both Delphi XE8 and Delphi 10. The Delphi XE8 version of my app crashes on Android 6.0 devices and the Delphi 10 version of my app crashes on Devices with Android version lower then 6.0.

I've created a new project file and all for the Delphi 10 version of my app. When I debug and the app crashes I don't get any feedback, it just stops.

It mostly seems to crash when I close my second form and go back to the first form. But as I said I can't debug.

hmm hard to say why, try to see it's it's not a problem with bitmap (i don't remembered but i think xe7 can not work on lolipop without a patch, don't know if the same for xe8), look also if you are not using some thread that produce some conflict, etc...
i will remove components in the app still the application don't crash to see what cause the crash

I'm not using a bitmap. And also have tried deleting lot of my components to check if they cause the crash. But haven't find it yet.
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 13, 2016 11:46 PM   in response to: loki loki in response to: loki loki
I found out what the problem was for older android versions with my Delphi 10 version of the project.

Through commenting out code I found out that the TCloseAction.caFree crashes the app in the formclose event. I can't remove this otherwise the form memory doesn't get freed. I tried multiple methods but only this totaly frees all the memory of a form in a Firemonkey multi device project.

After finding this out I found that it crashes when I add a TVertScrollBox to a TTabItem. On my Form I have multiple tabs. And on one of them I have a Listbox that I fill runtime with items and below that a memo. In order to use this memo correctly I added a TVertScrollBox so when the keyboard is shown the keyboard doesn't hide the memo. When I added the VertScrollBox in the designer my listbox doesn't draw the items correctly, so that's why I add it runtime. But this causes the crash on older android versions. Apparently it doesn't like to get freed in the onClose event for some reason.

So for the final solution i'm left with putting the memo in the top of the TTabItem so it never gets hidden behind the keyboard and removing the TVertscrollbox from designer/runtime. Now my ListBoxItems get drawn correctly and my app doesn't crash on older android versions anymore.
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Delphi 10 Seattle crashes on Android versions below 6.0 [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 23, 2016 10:13 AM   in response to: Remi Arts in response to: Remi Arts
Am 23.02.2016 um 13:39 schrieb Remi Arts:
I've build an app in both Delphi XE8 and Delphi 10. The Delphi XE8 version of my app crashes on Android 6.0 devices and the Delphi 10 version of my app crashes on Devices with Android version lower then 6.0.

I've created a new project file and all for the Delphi 10 version of my app. When I debug and the app crashes I don't get any feedback, it just stops.

It mostly seems to crash when I close my second form and go back to the first form. But as I said I can't debug.

I've also tried to compile with different Android SDK versions and NDK versions.

Edited by: Remi Arts on Feb 23, 2016 4:39 AM

Hello,

the app I develop in XE10 runs on Android 5 and 6 without much problems.
Now let's explore what your app does and when it crashes. If you can't
debug do this:

1. start monitor.bat from your Android SDK installation. It should show
your device and give you access to the log cat log messages
2. pepper your app with debug log messages. You can use
log.d('my message'); This is in FMX.types. Then look which of your
messages appear in the log and which do not.

Greetings

Markus
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0 [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 7:03 AM   in response to: Markus Humm in response to: Markus Humm

Hello,

the app I develop in XE10 runs on Android 5 and 6 without much problems.
Now let's explore what your app does and when it crashes. If you can't
debug do this:

1. start monitor.bat from your Android SDK installation. It should show
your device and give you access to the log cat log messages
2. pepper your app with debug log messages. You can use
log.d('my message'); This is in FMX.types. Then look which of your
messages appear in the log and which do not.

Greetings

Markus

I've tried to read the log cat for any error messages but could only find that the application died.

I also found out that if I go to an other form first my app doesn't crash. But the weird thing is the other form doesn't set any properties or something. I have even excluded all de code from the build that's done in the other form and still if i go to that screen my app doesn't crash.

So maybe it's an event or something? Or some component, but this all doesn't make any sense to me!
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0 [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 7:16 AM   in response to: Markus Humm in response to: Markus Humm
This is what logcat shows

02-24 16:13:08.164: I/ActivityManager(872): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity bnds=[24,952][192,1152]} from uid 10097 on display 0
02-24 16:13:08.167: V/WindowManager(872): addAppToken: AppWindowToken{3f573b78 token=Token{173144db ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867}}} to stack=1 task=4867 at 0
02-24 16:13:08.239: I/ActivityManager(872): Start proc 22201:nl.nocore.DKS/u0a580 for activity nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity
02-24 16:13:09.321: V/WindowManager(872): Adding window Window{3b817453 u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity} at 3 of 10 (before Window{1a59aab6 u0 Starting nl.nocore.DKS})
02-24 16:13:09.393: I/ActivityManager(872): Displayed nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity: +1s194ms
02-24 16:13:09.393: I/Timeline(872): Timeline: Activity_windows_visible id: ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867} time:804532608
02-24 16:13:10.921: I/Timeline(872): Timeline: Activity_windows_visible id: ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867} time:804534136
02-24 16:13:14.283: I/WindowState(872): WIN DEATH: Window{3b817453 u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity}
02-24 16:13:14.315: I/ActivityManager(872): Process nl.nocore.DKS (pid 22201) has died
02-24 16:13:14.315: W/ActivityManager(872): Force removing ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867}: app died, no saved state

Edited by: Remi Arts on Feb 24, 2016 7:18 AM

Edited by: Remi Arts on Feb 24, 2016 7:19 AM
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: Delphi 10 Seattle crashes on Android versions below 6.0 [Edit] [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 12:39 PM   in response to: Remi Arts in response to: Remi Arts
Am 24.02.2016 um 16:20 schrieb Remi Arts:
This is what logcat shows

02-24 16:13:08.164: I/ActivityManager(872): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity bnds=[24,952][192,1152]} from uid 10097 on display 0
02-24 16:13:08.167: V/WindowManager(872): addAppToken: AppWindowToken{3f573b78 token=Token{173144db ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867}}} to stack=1 task=4867 at 0
02-24 16:13:08.239: I/ActivityManager(872): Start proc 22201:nl.nocore.DKS/u0a580 for activity nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity
02-24 16:13:09.321: V/WindowManager(872): Adding window Window{3b817453 u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity} at 3 of 10 (before Window{1a59aab6 u0 Starting nl.nocore.DKS})
02-24 16:13:09.393: I/ActivityManager(872): Displayed nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity: +1s194ms
02-24 16:13:09.393: I/Timeline(872): Timeline: Activity_windows_visible id: ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867} time:804532608
02-24 16:13:10.921: I/Timeline(872): Timeline: Activity_windows_visible id: ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867} time:804534136
02-24 16:13:14.283: I/WindowState(872): WIN DEATH: Window{3b817453 u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity}
02-24 16:13:14.315: I/ActivityManager(872): Process nl.nocore.DKS (pid 22201) has died
02-24 16:13:14.315: W/ActivityManager(872): Force removing ActivityRecord{395fd9ea u0 nl.nocore.DKS/com.embarcadero.firemonkey.FMXNativeActivity t4867}: app died, no saved state

Edited by: Remi Arts on Feb 24, 2016 7:18 AM

Edited by: Remi Arts on Feb 24, 2016 7:19 AM

Hello,

I gave you the advice to add your own messages in the apropriate event
handlers to see how far your code actually got.

Greetings

Markus
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0 [Edit] [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 11:33 PM   in response to: Markus Humm in response to: Markus Humm

Hello,

I gave you the advice to add your own messages in the apropriate event
handlers to see how far your code actually got.

Greetings

Markus

I also did that, and it got through all my code.
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 6:51 AM   in response to: Remi Arts in response to: Remi Arts
Delete your old AndroidManifest.template.xml files.
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 6:58 AM   in response to: Eli M in response to: Eli M
Eli M wrote:
Delete your old AndroidManifest.template.xml files.

Already am using a new manifest file.
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 7:04 AM   in response to: Remi Arts in response to: Remi Arts
How are you creating/closing your second form?
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 24, 2016 7:08 AM   in response to: Eli M in response to: Eli M
Eli M wrote:
How are you creating/closing your second form?

The same way i create/close all my other forms

And i've already excluded everthing i do in the create/close and still have the same problem
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 28, 2016 11:34 PM   in response to: Remi Arts in response to: Remi Arts
UPDATE:

When I build with DEBUG - DEVELOPMENT configuration de app seems more stable! It doesn't crash that often.
Silver yang

Posts: 21
Registered: 12/1/11
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Feb 29, 2016 7:04 PM   in response to: Remi Arts in response to: Remi Arts
Remi Arts wrote:
UPDATE:

When I build with DEBUG - DEVELOPMENT configuration de app seems more stable! It doesn't crash that often.

I have same issue when use Delphi 10 do Android APP.
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2016 4:20 AM   in response to: Remi Arts in response to: Remi Arts
Update:

My app seems to crash when I call TCloseAction.caFree in my formClose event in my 2th form.
Remi Arts

Posts: 40
Registered: 11/15/13
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 13, 2016 11:47 PM   in response to: Remi Arts in response to: Remi Arts
I found out what the problem was for older android versions with my Delphi 10 version of the project.

Through commenting out code I found out that the TCloseAction.caFree crashes the app in the formclose event. I can't remove this otherwise the form memory doesn't get freed. I tried multiple methods but only this totaly frees all the memory of a form in a Firemonkey multi device project.

After finding this out I found that it crashes when I add a TVertScrollBox to a TTabItem. On my Form I have multiple tabs. And on one of them I have a Listbox that I fill runtime with items and below that a memo. In order to use this memo correctly I added a TVertScrollBox so when the keyboard is shown the keyboard doesn't hide the memo. When I added the VertScrollBox in the designer my listbox doesn't draw the items correctly, so that's why I add it runtime. But this causes the crash on older android versions. Apparently it doesn't like to get freed in the onClose event for some reason.

So for the final solution i'm left with putting the memo in the top of the TTabItem so it never gets hidden behind the keyboard and removing the TVertscrollbox from designer/runtime. Now my ListBoxItems get drawn correctly and my app doesn't crash on older android versions anymore.
Pietro Gueriiero

Posts: 4
Registered: 12/22/07
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2016 3:53 AM   in response to: Remi Arts in response to: Remi Arts
Hello I'm facing with an hard problem

I'm trying Rad Studio 10 Berlin to Develop multi device Applications. I've configured the environment to switch the apps from WIn 32 to Android. It's all ok, but when I run the app, on every device the App stops before the device show me the Main window.

In this window I've placed only a TButton to test a simple app.

When I start the SDK monitor, I see the following logs:

08-31 12:45:39.281: D/PackageManager(501): Sending to user 0: act=android.intent.action.PACKAGE_ADDED dat=package:com.embarcadero.Project1 flg=0x8000000 Bundle[{android.intent.extra.REPLACING=true, android.intent.extra.UID=10166, android.intent.extra.user_handle=0}]
08-31 12:45:39.335: D/PackageManager(501): Sending to user 0: act=android.intent.action.PACKAGE_REPLACED dat=package:com.embarcadero.Project1 flg=0x8000000 Bundle[{android.intent.extra.REPLACING=true, android.intent.extra.UID=10166, android.intent.extra.user_handle=0}]
08-31 12:45:39.382: D/PackageManager(501): Sending to user 0: act=android.intent.action.MY_PACKAGE_REPLACED flg=0x8000000 pkg=com.embarcadero.Project1 Bundle[{android.intent.extra.user_handle=0}]
08-31 12:45:39.468: D/CapabilityManagerService New(28431): The package(com.embarcadero.Project1) updated
08-31 12:45:42.656: D/ECS_EnterpriseContainerService(501): <<< Intent data is >>> : package:com.embarcadero.Project1
08-31 12:45:42.656: D/ECS_EnterpriseContainerService(501): <<< Intent data is >>> : package:com.embarcadero.Project1
08-31 12:45:43.625: I/DEBUG(26472): pid: 31877, tid: 31911, name: cadero.Project1 >>> com.embarcadero.Project1 <<<
08-31 12:45:43.687: I/CrashAnrDetector(501): onPackageUpdateFinished : com.embarcadero.Project1
08-31 12:45:43.703: D/KidsModeInstallReceiver(28607): onReceive intent data = package:com.embarcadero.Project1
08-31 12:45:44.000: I/DEBUG(26472): #00 pc 0087b606 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): #01 pc 00382543 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): #02 pc 00382601 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): #03 pc 00379dbd /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): #04 pc 00379c79 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): 5f8cbb80 5eed8660 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): 5f8cbb8c 5eed7ad0 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): 5f8cbbb0 5e9dd547 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): 5f8cbbb4 5eed5b1a /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.007: I/DEBUG(26472): 5f8cbc44 5e9d4dc1 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.023: I/SmartCardBroadcastReceiver(28649): foundMatchingVendorPackage - Checking for com.embarcadero.Project1
08-31 12:45:44.054: I/DEBUG(26472): 5e65b000-5f03a000 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.382: E/SPPClientService(31924): [PackageInfoChangeReceiver] [handlePkgRemovedEvent] PackageName : com.embarcadero.Project1, true, false
08-31 12:45:44.515: D/CrashAnrDetector(501): pid: 31877, tid: 31911, name: cadero.Project1 >>> com.embarcadero.Project1 <<<
08-31 12:45:44.515: D/CrashAnrDetector(501): #00 pc 0087b606 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): #01 pc 00382543 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): #02 pc 00382601 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): #03 pc 00379dbd /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): #04 pc 00379c79 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): 5f8cbb80 5eed8660 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): 5f8cbb8c 5eed7ad0 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): 5f8cbbb0 5e9dd547 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): 5f8cbbb4 5eed5b1a /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): 5f8cbc44 5e9d4dc1 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.515: D/CrashAnrDetector(501): 5f8cbc5c 5e9d4c7d /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:44.523: D/CrashAnrDetector(501): processName:com.embarcadero.Project1
08-31 12:45:44.523: D/CrashAnrDetector(501): broadcastEvent : com.embarcadero.Project1 SYSTEM_TOMBSTONE
08-31 12:45:45.875: D/PkgBroadcastIntentOp(29602): Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=com.embarcadero.Project1
08-31 12:45:45.875: D/AuthPkgBcIntentOp(29602): Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=com.embarcadero.Project1
08-31 12:45:45.906: E/Drive.UninstallOperation(29602): Package still installed com.embarcadero.Project1
08-31 12:45:46.000: D/MS_IntentHandler(29602): Package broadcast action=android.intent.action.PACKAGE_REMOVED and uri=com.embarcadero.Project1
08-31 12:45:46.000: D/WearableController(29602): Received broadcast action=android.intent.action.PACKAGE_REMOVED and uri=com.embarcadero.Project1
08-31 12:45:46.085: D/gH_MetricsDatabase(29602): 0 metrics were deleted when clearing package com.embarcadero.Project1.
08-31 12:45:49.289: D/[FileShare][Server](32022): ServerBroadcastReceiver : onReceive: android.intent.action.PACKAGE_ADDED // package:com.embarcadero.Project1
08-31 12:45:49.570: I/SmartCardBroadcastReceiver(28649): foundMatchingVendorPackage - Checking for com.embarcadero.Project1
08-31 12:45:49.609: D/PkgBroadcastIntentOp(29602): Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.embarcadero.Project1
08-31 12:45:49.632: D/AuthPkgBcIntentOp(29602): Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.embarcadero.Project1
08-31 12:45:49.648: D/mws(29602): Processing package: com.embarcadero.Project1
08-31 12:45:49.664: D/MS_IntentHandler(29602): Package broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.embarcadero.Project1
08-31 12:45:49.679: D/WearableController(29602): Received broadcast action=android.intent.action.PACKAGE_ADDED and uri=com.embarcadero.Project1
08-31 12:45:49.835: D/GassUtils(29602): Found app info for package com.embarcadero.Project1:1. Hash: b2db47c49308a93548520f65cf7be13bf131f0d2404dd426b779049c7d2498e3
08-31 12:45:49.843: D/mws(29602): Found info for package com.embarcadero.Project1 in db.
08-31 12:45:50.156: I/Finsky(28384): [1] com.google.android.finsky.utils.bm.run(1302): Package state data is missing for com.embarcadero.Project1
08-31 12:45:50.796: D/PkgBroadcastIntentOp(29602): Received broadcast action=android.intent.action.PACKAGE_REPLACED and uri=com.embarcadero.Project1
08-31 12:45:50.820: D/mws(29602): Processing package: com.embarcadero.Project1
08-31 12:45:50.851: D/MS_IntentHandler(29602): Package broadcast action=android.intent.action.PACKAGE_REPLACED and uri=com.embarcadero.Project1
08-31 12:45:50.898: D/GassUtils(29602): Found app info for package com.embarcadero.Project1:1. Hash: b2db47c49308a93548520f65cf7be13bf131f0d2404dd426b779049c7d2498e3
08-31 12:45:50.898: D/mws(29602): Found info for package com.embarcadero.Project1 in db.
08-31 12:45:52.046: I/ActivityManager(501): Process com.embarcadero.Project1 (pid 31877) (adj 0) has died.
08-31 12:45:52.320: I/DEBUG(26472): pid: 32145, tid: 32158, name: cadero.Project1 >>> com.embarcadero.Project1 <<<
08-31 12:45:52.421: I/DEBUG(26472): #00 pc 0087b606 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): #01 pc 00382543 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): #02 pc 00382601 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): #03 pc 00379dbd /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): #04 pc 00379c79 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): 5f8cbb80 5eed8660 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): 5f8cbb8c 5eed7ad0 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): 5f8cbbb0 5e9dd547 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.421: I/DEBUG(26472): 5f8cbbb4 5eed5b1a /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.429: I/DEBUG(26472): 5f8cbc44 5e9d4dc1 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.445: I/DEBUG(26472): 5e65b000-5f03a000 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): pid: 32145, tid: 32158, name: cadero.Project1 >>> com.embarcadero.Project1 <<<
08-31 12:45:52.640: D/CrashAnrDetector(501): #00 pc 0087b606 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): #01 pc 00382543 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): #02 pc 00382601 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): #03 pc 00379dbd /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): #04 pc 00379c79 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): 5f8cbb80 5eed8660 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): 5f8cbb8c 5eed7ad0 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): 5f8cbbb0 5e9dd547 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): 5f8cbbb4 5eed5b1a /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): 5f8cbc44 5e9d4dc1 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): 5f8cbc5c 5e9d4c7d /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:45:52.640: D/CrashAnrDetector(501): processName:com.embarcadero.Project1
08-31 12:45:52.648: D/CrashAnrDetector(501): broadcastEvent : com.embarcadero.Project1 SYSTEM_TOMBSTONE
08-31 12:46:00.132: I/ActivityManager(501): Process com.embarcadero.Project1 (pid 32145) (adj 0) has died.
08-31 12:46:00.453: I/DEBUG(26472): pid: 32216, tid: 32229, name: cadero.Project1 >>> com.embarcadero.Project1 <<<
08-31 12:46:00.546: I/DEBUG(26472): #00 pc 0087b606 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.546: I/DEBUG(26472): #01 pc 00382543 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.546: I/DEBUG(26472): #02 pc 00382601 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.546: I/DEBUG(26472): #03 pc 00379dbd /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.546: I/DEBUG(26472): #04 pc 00379c79 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.546: I/DEBUG(26472): 5f8cbb80 5eed8660 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.554: I/DEBUG(26472): 5f8cbb8c 5eed7ad0 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.554: I/DEBUG(26472): 5f8cbbb0 5e9dd547 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.554: I/DEBUG(26472): 5f8cbbb4 5eed5b1a /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.554: I/DEBUG(26472): 5f8cbc44 5e9d4dc1 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.578: I/DEBUG(26472): 5e65b000-5f03a000 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): pid: 32216, tid: 32229, name: cadero.Project1 >>> com.embarcadero.Project1 <<<
08-31 12:46:00.937: D/CrashAnrDetector(501): #00 pc 0087b606 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): #01 pc 00382543 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): #02 pc 00382601 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): #03 pc 00379dbd /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): #04 pc 00379c79 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): 5f8cbb80 5eed8660 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): 5f8cbb8c 5eed7ad0 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): 5f8cbbb0 5e9dd547 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): 5f8cbbb4 5eed5b1a /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): 5f8cbc44 5e9d4dc1 /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): 5f8cbc5c 5e9d4c7d /data/app-lib/com.embarcadero.Project1-4/libProject1.so
08-31 12:46:00.937: D/CrashAnrDetector(501): processName:com.embarcadero.Project1
08-31 12:46:00.937: D/CrashAnrDetector(501): broadcastEvent : com.embarcadero.Project1 SYSTEM_TOMBSTONE
08-31 12:46:08.382: I/ActivityManager(501): Process com.embarcadero.Project1 (pid 32216) (adj 0) has died.
08-31 12:46:08.390: W/ActivityManager(501): Force removing ActivityRecord{428f6148 u0 com.embarcadero.Project1/com.embarcadero.firemonkey.FMXNativeActivity}: app died, no saved state

Every suggestion will be appreciated.

Thanks to all.

Fox
Pietro Gueriiero

Posts: 4
Registered: 12/22/07
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2016 4:59 AM   in response to: Pietro Gueriiero in response to: Pietro Gueriiero
Hello again,

In summary these are my settings in Rad Studio 10:

Android API Level 17
Java SDK 1.8

The version of Rad Studio 10 Berlin is a trial version and I would to test how it works before to buy a complete license.

Thanks.
Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2016 12:06 PM   in response to: Pietro Gueriiero in response to: Pietro Gueriiero
Pietro wrote:

when I run the app, on every device the App stops before
the device show me the Main window.

What devices specifically are you running the app on?

--
Remy Lebeau (TeamB)
Pietro Gueriiero

Posts: 4
Registered: 12/22/07
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2016 12:41 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Pietro wrote:

when I run the app, on every device the App stops before
the device show me the Main window.

What devices specifically are you running the app on?

--
Remy Lebeau (TeamB)

Hello Remi,

and thanks for your answer, I tested the samples apps of Berlin Studio and a new simple app on various devices )with only one button in a Multidevices project) and with several device emulators created with Avd Manager. The devices are the following:

Samsung Galaxy Tab 3 (Android 4.2.2)
Samsung Galaxy Tab 7 (Android 5.0)
Mediacom WinPad W801 with dual operating system: Android 5.1

When I run the apps various errors are displayed in Adb monitor and usually the app freezes on firemonkey splash screen then the app become completely black and hangs up....
I switched several times the api level in Rad Studio options to the correct version for each device, but no result....

I used both JDK 1.7 and 1.8 ( as suggested with the embarcadero setup) and the related NDK, but no luck.

Maybe I'm doing something of wrong?

Maybe trial version on Berlin studio have some limitations?

Thank you in advance.

PS: if you are a coordinator of the community could you tell me how I can change my Name since I'm not Pietro Guerriero :-) Thanks.

Fox

Remy Lebeau (Te...


Posts: 9,447
Registered: 12/23/01
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2016 1:05 PM   in response to: Pietro Gueriiero in response to: Pietro Gueriiero
Pietro wrote:

Mediacom WinPad W801 with dual operating system: Android 5.1

That device has an Intel Atom CPU, which is not currently supported by Embarcadero's
compilers. It is possible to run FireMonkey Android apps (which are designed
for ARM CPUs only) on an Intel CPU only if the libHoudini library is installed
on the device. But you have to take extra steps to prepare your FireMonkey
project to allow libHoudini to run your app:

Running Delphi Applications on Android Intel
http://blog.marcocantu.com/blog/2015-october-running-android-intel.html

--
Remy Lebeau (TeamB)
Pietro Gueriiero

Posts: 4
Registered: 12/22/07
Re: Delphi 10 Seattle crashes on Android versions below 6.0  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 31, 2016 1:30 PM   in response to: Remy Lebeau (Te... in response to: Remy Lebeau (Te...
Remy Lebeau (TeamB) wrote:
Pietro wrote:

Mediacom WinPad W801 with dual operating system: Android 5.1

That device has an Intel Atom CPU, which is not currently supported by Embarcadero's
compilers. It is possible to run FireMonkey Android apps (which are designed
for ARM CPUs only) on an Intel CPU only if the libHoudini library is installed
on the device. But you have to take extra steps to prepare your FireMonkey
project to allow libHoudini to run your app:

Running Delphi Applications on Android Intel
http://blog.marcocantu.com/blog/2015-october-running-android-intel.html

--
Remy Lebeau (TeamB)

Hello again Remy,

Yes the mediacom tablet has a CPU Intel Atom, but the other models why crashes?

Thanks again.

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02