Skip to content

Egui WASM program failing or not failing depending on whitespace/comments and other irrelevant details #119774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
hkBst opened this issue Jan 9, 2024 · 2 comments
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example O-wasm Target: WASM (WebAssembly), http://webassembly.org/ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.

Comments

@hkBst
Copy link
Member

hkBst commented Jan 9, 2024

Egui WASM program failing or not failing depending very sensitively on whitespace/comments and other irrelevant details, similar to #110230 but without the ICE.

See emilk/egui#3796 (comment) for description and test case.

rustc --version --verbose:

rustc 1.74.1 (a28077b28 2023-12-04) (gentoo)
binary: rustc
commit-hash: a28077b28a02b92985b3a3faecf92813155f1ea1
commit-date: 2023-12-04
host: x86_64-unknown-linux-gnu
release: 1.74.1
LLVM version: 17.0.6
<version>
@hkBst hkBst added the C-bug Category: This is a bug. label Jan 9, 2024
@rustbot rustbot added the needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. label Jan 9, 2024
@jieyouxu jieyouxu added the O-wasm Target: WASM (WebAssembly), http://webassembly.org/ label Feb 15, 2024
@jieyouxu
Copy link
Member

Actually this problem seems to be more fundamental and is possibly a compiler bug. I've now included below a minimal test case, which still works (for me), but which stops working when I remove comments or add blank lines or change button strings, or remove the game: Game, member from App.

Do you have any error outputs from rustc? What do you mean by "stops working"? Are there any Internal Compiler Errors (ICEs) shown?

@hkBst
Copy link
Member Author

hkBst commented Feb 15, 2024

Rustc does not give any error output, but acts like all is fine. Still the created web application does not work and shows an empty screen in the browser.

@jieyouxu jieyouxu added E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress. and removed needs-triage This issue may need triage. Remove it if it has been sufficiently triaged. labels Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example O-wasm Target: WASM (WebAssembly), http://webassembly.org/ S-needs-repro Status: This issue has no reproduction and needs a reproduction to make progress.
Projects
None yet
Development

No branches or pull requests

3 participants