DioxusLabs / DioxusLabs/dioxus

Dioxus Applications can permanently corrupt themselves on at least Windows

Open
#3,604 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**

While recording the video for https://github.com/DioxusLabs/dioxus/issues/3603 I apparently completely corrupted my application. No restarting, no clean build, no nothing does ever result in the application starting again. Even reverting the entire code base to a hello world does not allow the application to start.

**Steps To Reproduce**

Steps to reproduce the behavior:

- I do not have a way to reproduce this. It just happens after moving the window between two screens of different DPI for a bit. Maybe you need multiple windows even.

**Expected behavior**

You should be able to start the application.

**Screenshots**

https://github.com/user-attachments/assets/414e7434-3a17-4e9e-88ac-de8b73be6acb

You can see the window popping up for a tiny bit. The window DOES exist and is in the task bar, but it seems to be "outside of any screen" or something:

![Image](https://github.com/user-attachments/assets/3fe1d651-e76b-4d80-85c0-058f57f117ee)

What I presume is happening is that moving the window between the screens made it store the location of the window somewhere invalid such that when restarting the application it tries to position the window there again, but it's not anywhere you can reach.

Weirdly the usual hotkeys for moving the window don't help either. I experienced the same bug earlier actually and then I was able to snap out of it by maximizing the window, but this seems to no longer be working.

**Environment:**
- Dioxus version: main @ https://github.com/DioxusLabs/dioxus/commit/eaf9f80abddd75a6963edf2f48e8e21765146122
- Rust version: 1.83.0
- OS info: Windows 11
- App platform: Desktop

**Questionnaire**

I'm interested in fixing this myself but don't know where to start

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.