Called from the wrong thread

Code wrong-thread

What happened

An app belongs to the thread that created it (its UI thread). Only setting the view, the state or the theme works from other threads; every other call made from another thread is refused and changes nothing.

How to fix it

Make that call on the thread that created the app, or send the change with set_view / set_state / set_theme, which any thread may call. Free the app on its own thread too.

Still stuck? Ask your AI.

This copies the problem and the Aster notes. Paste it into the same chat where your AI wrote the app.

All error help

Made for fun.

See the work

A record of what gets built at home with AI coding agents, and how.