Small bug in AM 1.36

Post your questions and help other users.

Moderator: Martin

Econdoc
Posts: 153
Joined: 28 May 2016 20:06

Small bug in AM 1.36

Post by Econdoc » 03 Nov 2018 16:12

On my Samsung Galaxy Tab S3 tablet (Android 8.0.0), the connectors (lines) for all Automagic flows are no longer visible in Dark mode. The connectors work okay in light mode.
I do not have this problem on other devices.

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Small bug in AM 1.36

Post by Desmanto » 03 Nov 2018 18:41

Seem the missing connector bug randomly hit some devices, especially in Oreo. A simple reboot usually fix it, but somehow it can still appear intermittently.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

akela
Posts: 6
Joined: 30 Oct 2018 18:03

Re: Small bug in AM 1.36

Post by akela » 03 Nov 2018 19:10

It's definitely a bug in AM 1.36. Rebooting and switching to the light theme are temporary. Toggling between dark and light theme may show the connector lines at first, but when I start touching and editing the flow, the lines disappear for good. They are there, but invisible.

Here is my WORKAROUND that fixes it permanently:

1. Backup all the flows/widgets (Automagic Settings --> Send flows/widgets).
2. UNINSTALL completely AM (first, make sure to disable "Admin device functions" in AM settings).
3. Restart the phone.
4. Re-install AM from Play Store.
5. Restore all the flows/widgets (Automagic Settings --> Import flows/widgets).

With a clean reinstallation, the connector lines are now displayed permanently.
Last edited by akela on 14 Jan 2019 12:54, edited 2 times in total.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Small bug in AM 1.36

Post by digitalstone » 03 Nov 2018 19:26

What a peculiar issue.
It's as if a different "lineDrawMethod" (to C-Sharpify it) was used in the new light theme which the classic one wasn't written.
The older method seems not welcome with certain phones.
If this is the case, then maybe the classic theme could use this newer method of line drawing.
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Small bug in AM 1.36

Post by Martin » 05 Nov 2018 14:27

There was actually no change in drawing lines with 1.36 but switching the theme restarts the app process which might help to temporarily workaround the issue. I suspect that the bug is caused by some internal error of the ROM but since I never hit this issue myself I'm not sure and did not yet have a chance to analyze the cause.
It seems to mostly affect devices with Android 8.0 so far. Maybe the issue is already fixed in newer versions of Android or maybe there are just not enough users on newer Android versions so no one reported it yet.
A reboot usually helps to fix this issue. Turning off hardware acceleration in the workaround section might also help. If anyone can reproduce the issue I would be glad to get a system bug report, maybe I can identify the cause in the bug report (see system settings->'developer options' to take a bug report and please send the report to info@automagic4android.com).

Regards,
Martin

niftea
Posts: 9
Joined: 27 Oct 2016 18:31

Re: Small bug in AM 1.36

Post by niftea » 05 Nov 2018 19:05

I had the same problem. Invisible lines in the flows after upgrade to 1.36. I have Oreo 8.0.
Rebooting only helped temporarily, then it happened again.

As already suggested, uninstall and reinstall AM fixed the issue.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Small bug in AM 1.36

Post by Martin » 21 Nov 2018 20:16

I've got a bug report that shows that the system optimizes and deoptimizes the method that draws the flow quite frequently. Honestly I have no idea what this means but it could indicate a problem in the optimizing compiler of Android 8.0 and could also explain why uninstall/reinstall helps. At least there have been quite a lot of changes in Android 8.0 in this area: https://source.android.com/devices/tech ... provements
I'll try to implement a workaround in the next EAP build. Would be great if anyone affected by the problem could test 1.37 once I publish an EAP build.

Regards,
Martin

dgiorgi
Posts: 9
Joined: 20 May 2013 17:42

Re: Small bug in AM 1.36

Post by dgiorgi » 04 Jan 2019 17:37

I have the same problem.

Step to reproduce:
1)set light theme (the lines are ok)
2)set the dark theme (the lines are ok)
3)move the flow with your finger (the lines are no longer visible)
4)set light theme (the lines are ok)
5)set the dark theme (the lines are ok)
6)move the flow with your finger (the lines are no longer visible)

Only the continuous lines are hidden, the arrows are visible, the dotted lines are visible.

Automagic 1.36.0
Android 8.0
Sony Xperia F5321
Attachments
Screenshot2.png
Screenshot2.png (79.5 KiB) Viewed 18948 times
Screenshot1.png
Screenshot1.png (80.25 KiB) Viewed 18948 times

dgiorgi
Posts: 9
Joined: 20 May 2013 17:42

Re: Small bug in AM 1.36

Post by dgiorgi » 04 Jan 2019 17:51

Today, after recharging my smartphone, the problem no longer appears. :o

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Small bug in AM 1.36

Post by Martin » 06 Jan 2019 20:00

I've made a small change in the EAP build of version 1.37 that might fix this strange issue but I can not confirm that the fix works since I was not able to reproduce the problem on any of my devices yet.

Post Reply