Android white screen after build apk

Hi, I encountered a bug when I was trying to build an APK.

The app works fine in preview, but when I build and run the APK it won’t fill the colors of the rectangles I use. At first it seemed like I only got a white screen when starting the application.
When I checked adb logcat I could see that the app was doing the API requests and there were no errors, I later found out that the icons are also showing, but some of the icons was white so I couldn’t see them.
I did some troubleshooting and found out that this only happens when I set the fill color of the second rectangle using javascript (in the MainView.ux file), if I hardcode the value in the UX file it works as expected.

You can find the code here: Github. It happens on the second rectangle with the variable called ‘groundColor’ in MainView.ux. There is a file missing that contains the API key to using openweathermap.org, so if you want to test it you must get a key or comment out some of the code.

You can also find the build log and adb logcat here: Dropbox. I also included some pictures, see filename for description.

This was only tested on a Nexus 5 running Android 6.0.1.

Hi!

This sounds fishy, I just tested on a Nexus 5, Nexus 9 and Sony Xperia X. Works fine on those devices. Are you able to test on another device?

This is what it looked like on Nexus 5

The link to my Github is an old commit, I suspect you built from the latest commit on the master branch?

I tried to reintroduce the bug in the master branch, but I did not get the bug now. Not sure what fixed it, but the bug is still in the branch I linked in the original post if you want to test it.

Hi,

Same issue here. The project builds (fuse build -tandroid), but adb install …/myprojet.apk results in a white screen. It worked with Fuse 0.27.1. Using an Oppo R9 as testing device. Same issue with 1+.

fuse preview -tandroid launches the app, but does not let me see the logcat (or probably I’m doing something wrong).

marcmelo8@gmail.com wrote:

Hi,

Same issue here. The project builds (fuse build -tandroid), but adb install …/myprojet.apk results in a white screen. It worked with Fuse 0.27.1. Using an Oppo R9 as testing device. Same issue with 1+.

fuse preview -tandroid launches the app, but does not let me see the logcat (or probably I’m doing something wrong).

Issue solved, don’t know why.