dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

dx serve hangs the 8gb ram computer

Open silicology1 opened this issue 2 months ago • 4 comments

Dioxus is not usable with 8gb ram computer. Computer hangs after some time with dx serve

silicology1 avatar Dec 16 '25 10:12 silicology1

Can you share some more information about your setup from the issue template including:

  • the platform
  • your dioxus and dx version
  • steps to reproduce the issue
  • the logs you see before it freezes with the --trace and --verbose flags
  • how long it freezes for

dx on its own takes ~300mb when serving the web template project

ealmloff avatar Dec 16 '25 14:12 ealmloff

hello. i'm experiencing the same problem, i think. but it doesn't have anything to do with ram, dx process takes up barely any resources and just hangs.

the platform

windows 10

your dioxus and dx version

both version 0.7.2

steps to reproduce the issue

simply running dx serve, sometimes it works, sometimes it doesn't, more times than not it doesn't

the logs you see before it freezes with the --trace and --verbose flags

the only log with either/or is just warning: Waiting for cargo-metadata... and after that nothing

how long it freezes for

~~infinitely~~

maybe i just didn't have enough patience. simply letting it sit for about 40 minutes it finally got unstuck and started compiling

l5cs avatar Dec 24 '25 20:12 l5cs

That could be caused by rust-analyzer or another process holding the lock to the build cache

ealmloff avatar Dec 26 '25 13:12 ealmloff

lock to the build cache

i've been trying out different setups and honestly nothing works. even doing it first thing on pc restart it hangs for no reason as there can't possibly be anything occupying the build cache 🥀

l5cs avatar Dec 29 '25 16:12 l5cs