Monarch popups not visible on Android (SOLVED)

Hi everyone!
When showing Monarch popups, I am having an issue where sometimes the popup is not shown. The music still plays normally in the background and all the other features still work, but the popup is not shown. Additionally, there is no error thrown from Monarch’s side. All the popup are implemented as collection proxies and not factories.

This issue happens only on Android and is not there on any other tested platforms (Linux, Windows, HTML5). I tried doing some debugging to explore what could be wrong, and it seems that the popup’s init function is called, but the update function is not.

So far I have not been able to figure out what may be wrong, so would appreciate any help regarding this.

Could you please create a minimal example I can try on my Android device?

1 Like

@britzl Can I send it to you via mail or something like that?

Sure, send it to bjorn@defold.se.

1 Like

Thanks, I’ve received it. I would recommend that you trim the example down to a single screen+popup and verify that you still have problems with this scenario. I would also check that there is no issue with the render order between the GUIs. You assign a render order for the popups, but none for the underlying screen (the shop gui). Are you sure the popups aren’t below the shop gui somehow? Do you get any errors in the console or in logcat?

I tried it today by assigning the underlying scenes a render order too, but that too did not work.

Nope. There are no errors in logcat or the log.txt written by Defold.

I have been able to isolate the bug to a single screen + popup. It seems that the bug only occurs when the underlying scene has timestep_below_popup set to 0. I also tried putting print statements in the popup’s init and update scripts, and only the statement in the init was printed, but not those in the update statement.

Here is a more generic and minimal example of the bug (Touch to spawn popup)
MonarchBug.zip (628.5 KB)

I’ve tested this on Android and I do get a visible popup when I press on the screen.

2 Likes

I approached this gain with an updated version of Defold and was finally able to get it working. Thanks a lot!

1 Like