FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Pockr | Part 5 — Debugging the VM Restart Loop
How-ToTools

Pockr | Part 5 — Debugging the VM Restart Loop

via Dev.toAi2th12h ago

A Race Condition in Kotlin Part 5 of 6 — building Pockr, a single APK that runs Docker on non-rooted Android. ← Part 4: Making Docker Run Without Kernel Modules The Symptom Alpine Linux takes ~5 minutes on first boot to set up Docker, install Python packages, and start the API server. During that time, the app shows a loading state. On real device testing (Firebase Test Lab), we kept seeing a cycle: VM starts → health check fails at ~35s → VM restarts → repeat Alpine was never given enough time to finish first-boot setup. Docker Hub pulls never happened. Reading the Logcat The logcat told the story: VmManager: Starting VM... VmManager: VM process launched VmApiClient: Health check failed: timeout ← 35s in VmManager: Starting VM... ← restarted! VmManager: Stopping existing VM before restart ← killed Alpine mid-boot VmManager: VM process launched VmApiClient: Health check failed: timeout ← again VmManager: Starting VM... ← restarted again The VM was restarting every ~35 seconds — exactly

Continue reading on Dev.to

Opens in a new tab

Read Full Article
4 views

Related Articles

How-To

How to Install and Start Using LineageOS on your Phone

Lobsters • 57m ago

How-To

What Should Kids Learn After Scratch? Comparing Programming Languages

Medium Programming • 4h ago

BYD rolls out EV batteries with 5-minute ‘flash charging.’ But there’s a catch.
How-To

BYD rolls out EV batteries with 5-minute ‘flash charging.’ But there’s a catch.

TechCrunch • 4h ago

Trump gets data center companies to pledge to pay for power generation
How-To

Trump gets data center companies to pledge to pay for power generation

Ars Technica • 6h ago

Building an Interactive Fiction Format with Codex as a Development Partner
How-To

Building an Interactive Fiction Format with Codex as a Development Partner

Medium Programming • 8h ago

Discover More Articles