Page 1 of 1

black screen with LC9, ok with LC8.1.9

Posted: Mon Apr 16, 2018 11:41 am
by bangkok
-windows 8.1

-java jdk 1.8.0_66

-a new stack with 1 field and 1 button (quit), and white background

-android device with 5.1

-android sdk manager (see screen shot)

->apk created with LC9 = black screen

->apk created with LC8.1.9 = okay, app opens fine

any idea ?

Re: black screen with LC9, ok with LC8.1.9

Posted: Mon Apr 16, 2018 12:10 pm
by sphere
No, Sorry.
LC9 and APK on Android 6.0 (but minimum adroid 4.1) Works OK with me.

There was a similair bug with Android 7, don't know if this was solved yet.
But there is a work around by Panos for that on LC's Bug site.

Most probably you have the accelerated in your "on preOpenStack" handler?

Re: black screen with LC9, ok with LC8.1.9

Posted: Mon Apr 16, 2018 12:14 pm
by bangkok
sphere wrote:
Mon Apr 16, 2018 12:10 pm
Most probably you have the accelerated in your "on preOpenStack" handler?
No handler at all. It's really a bare stack : 1 field, 1 button.

Re: black screen with LC9, ok with LC8.1.9

Posted: Mon Apr 16, 2018 3:02 pm
by LiveCode_Panos
Hi all,

Works fine for me here.

@ bangkok
Could you attach the stack here? Moreover, what is the device you are using? Do you have access to a different device?

Best,
Panos
--

Re: black screen with LC9, ok with LC8.1.9

Posted: Mon Apr 16, 2018 7:51 pm
by bangkok
LiveCode_Panos wrote:
Mon Apr 16, 2018 3:02 pm
Could you attach the stack here? Moreover, what is the device you are using? Do you have access to a different device?
Here is the stack.

I use an android 5.1 terminal with a built-in barcode scanner.

Never had "black screen" problem.

The app is fine when compiled with LC 8.1.9 : same stack, same device.

Moreover, i've just tried on another PC : windows 10, jdk 1.8.0_101 (different version)... same results.

Re: black screen with LC9, ok with LC8.1.9

Posted: Tue Apr 17, 2018 8:49 am
by LiveCode_Panos
Hi bangkok,

Thank you for the stack. I have tested on two Android devices (one running Android 8 and one running Android 5) and I cannot reproduce the problem.

What happens if you set the minimum Android version to 2.3.3 (in the Android Standalone Settings)?

Best,
Panos
--

Re: black screen with LC9, ok with LC8.1.9

Posted: Tue Apr 17, 2018 9:32 am
by bangkok
LiveCode_Panos wrote:
Tue Apr 17, 2018 8:49 am
What happens if you set the minimum Android version to 2.3.3 (in the Android Standalone Settings)?
No change. Black screen when compiled with LC 9

I did another test : on a samsung phone with android 5.1.1.

It works fine with LC 8.1.9 and LC 9

This is so frustrating....

Why I get such a different behavior on the first device ?

A part from widgets, what are the big changes for android between LC version 8.1.9 and version LC 9 ?

Or do you think it might be a parameter to set on the android device , something special although small that could lead to 8.1.9 compilation success and LC 9 failure ?

Re: black screen with LC9, ok with LC8.1.9

Posted: Tue Apr 17, 2018 1:26 pm
by LiveCode_Panos
Hi bangkok,

Thank you for the update. OK, so it seems that there is something specific to this device that LC 9 does not like.

We have done a lot of changes between LC 8 and 9, one of them is that we use a different version of the android toolchain to build the android engines.

What are the specs of the device that does not work with LC 9 (model, arch etc)?

Best,
Panos
--

Re: black screen with LC9, ok with LC8.1.9

Posted: Wed Apr 18, 2018 8:57 am
by bangkok
LiveCode_Panos wrote:
Tue Apr 17, 2018 1:26 pm
What are the specs of the device that does not work with LC 9 (model, arch etc)?
Hello Panos,

It's a OCBS-D8000 (from Shenzhen OCOM Technologies Limited)

You'll find all the specs on this page (alibaba's page with technical presentation of the device) :

https://tinyurl.com/ycflc7xx

(PS the device is brand news, received it just a few days ago. No weird apps added, no update done, just the battery charged and the LC app installed for testing,that's all)

Re: black screen with LC9, ok with LC8.1.9

Posted: Thu May 31, 2018 10:01 am
by bangkok
Another case, from Jacques.

http://lists.runrev.com/pipermail/use-l ... 47437.html

-not the target version (in the manifest)
-not the minimum version
-was ok with a previous build of LC 9 (dp11)


... the mystery deepens.
;-)

Re: black screen with LC9, ok with LC8.1.9

Posted: Thu May 31, 2018 6:02 pm
by jacque
I wonder if it's the Java version I'm using, sometime between the old build and my new one I updated Java. I need to test with a plain stack and get back to Panos. I don't think it's LC 9 in general because the older build used 9.0dp11, and that works. Maybe something else changed.