B4J Question [FIXED] ABMMini bug

JackKirk

Well-Known Member
Licensed User
Longtime User
I have been playing around with ABMMini the last little while and have been ignoring a bug that keeps cropping up - at least my end.

STEPS TO REPRODUCE:

Step 1


Install ABMMini on your D: drive - see:

https://www.b4x.com/android/forum/t...-absolute-beginners-update-2022-09-08.117237/

Step 2

Leave everything asis - so when you run it it is listening on localhost:51042/template

Step 3

On an iPhone (mine is iPhone 7), launch Safari and set URL localhost:51042/template

If this does not work, work out localhost IP (e.g. 192.168.1.109) and set URL 192.168.1.109:51042/template

Everything should run as advertised.

Step 4

On an Android (mine is Pixel 3 running Android 12), launch Chrome then follow exact same steps as Step 3 re URL.

The server constantly cycles thru:

Connected
Waiting for value (115 ms)
Waiting for value (109 ms)
Waiting for value (103 ms)
Disconnected
null
null
Connected
Waiting for value (103 ms)
Waiting for value (110 ms)
Waiting for value (105 ms)
Disconnected
null
null
Connected
Waiting for value (104 ms)
Waiting for value (110 ms)
Waiting for value (105 ms)
Disconnected
null
null
Connected
Waiting for value (115 ms)
Waiting for value (110 ms)
Waiting for value (101 ms)
Disconnected

Step 5.

To stop this behaviour, on Android phone open another tab on Chrome then go back to original tab - now everything works as advertised.

I'd be interested in knowing if someone else can reproduce it on a different Android release.
 
Last edited:

JackKirk

Well-Known Member
Licensed User
Longtime User
I just installed ABMMini as above on an AWS EC2 Windows 10 instance then set it running.

I then went to AWS Device farm and launched a Pixel 8 running Android 14 and got exactly the same buggy behaviour.

And just for completeness I again went to AWS Device farm and launched a Pixel 2 running Android 9 and got exactly the same buggy behaviour.
 
Upvote 0

JackKirk

Well-Known Member
Licensed User
Longtime User
This is an old project that hasn't been updated since a long time and a lot has changed since then (both in B4J jServer and ABM). I updated the ABMMini project now with my latest ABMaterial, ABMServer libraries and www files.
Alain,

Many thanks for this update - it solves all the problems in my posts 1 and 2 above.

For anyone interested download ABMMini240517.zip (note the 240517) from:

https://www.b4x.com/android/forum/t...-absolute-beginners-update-2024-05-17.117237/
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…