App Crashes on the screen with high resolution.

The place to discuss anything and everything about running your LiveCode on Android

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

App Crashes on the screen with high resolution.

Post by Jellobus » Wed Apr 20, 2016 8:07 pm

Hi all,

I found my app crashes on the device with higher resolution. the app is working fine on the device with low resolution, but on device with high resolution it suddenly crashes upon I touch the object to command change its layer.

Testing devices.
1.Samsung J2 : Android 5.1.1, Resolution: 540 x 960 pixels (~234 ppi pixel density)
2.Samsung note 5 : Android 5.1.1, Resolution:1440 x 2560 pixels (~518 ppi pixel density)
Both devices have the same OS version but the screen resolutions are different.

App built with LC 6.7.8

My stack uses fullscreenmode to "exactfit" on preOpenStack. the app launches normally on both devices but it crashes on the note 5 when object change its layer(I think...)
The cause of app crash could be something else than the resolution difference. I may missing something important for mobile app development...Could anyone suggest any idea to fix this issue? It will be very thanksful if anyone could help. thanks a lot in advance!

Kindly,


Louis

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: App Crashes on the screen with high resolution.

Post by paul_gr » Wed Apr 20, 2016 8:58 pm

Hi Louis
In 6.7.8 they made changes to Android Hardware Acceleration.
I don't know if you are using it or not.
Does the app work ok if you turn it off?

Paul

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: App Crashes on the screen with high resolution.

Post by Jellobus » Thu Apr 21, 2016 12:45 am

Hi Paul,

Do you mean to set acceleratedRendering to false?
AcceleratedRendering is set to true in the preOpenStak.
AcceleratedRendering is required because there are moving things.. If it is the cause, should I set compositorType differently?
Or build with different version of LC?

Thanks,

Louis

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: App Crashes on the screen with high resolution.

Post by paul_gr » Thu Apr 21, 2016 1:35 am

Sorry Louis,
I thought you might be using the Native Android Browser object and had Hardware Acceleration switched on.
Try turning off AcceleratedRendering and see how it goes.
You might also try using one of the later LC 7 builds to see if that helps stop your app crashes.

Paul

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: App Crashes on the screen with high resolution.

Post by Jellobus » Thu Apr 21, 2016 7:00 am

Hi Paul,

I tried with the latest LC 6 and 7.used "jdk-8u73-macosx-x64.dmg"
I confirm that the app still crashes at the same place. Also the app crashes on the note 5 in which android 6.0.1 is installed.

App working flawlessly on the device with low resolution. and crashes on the device with high resolution...
Can you suspect any thing regarding this issue?

Louis

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: App Crashes on the screen with high resolution.

Post by paul_gr » Thu Apr 21, 2016 8:01 am

Hi Louis,
The highest resolution Android device I have is the Galaxy J5 with a resolution of 294 ppi pixel density.
So I don't see any problems on this device.
It sounds like a bug. Might be a good idea to send a bug report to Livecode.
They would probably like to know about bugs like this.

http://quality.livecode.com/query.cgi


Paul

Jellobus
Posts: 317
Joined: Tue Dec 10, 2013 2:53 pm

Re: App Crashes on the screen with high resolution.

Post by Jellobus » Thu Apr 21, 2016 11:59 am

Paul, it could be bug...I need more investigation. thanks!

Post Reply