Skip to content
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

The app flashes a white screen on startup #6158

Closed
1 task
georgel2020 opened this issue Mar 17, 2024 · 5 comments
Closed
1 task

The app flashes a white screen on startup #6158

georgel2020 opened this issue Mar 17, 2024 · 5 comments
Assignees

Comments

@georgel2020
Copy link

What happened?

When I open AFFiNE, it flashes several times as follows:

  • A white screen with a system title bar
  • An empty AFFiNE workspace page with shape placeholders
  • A white screen with a system title bar
  • Workspace content

The behavior is especially noticable with dark mode on.

Distribution version

Windows x64

What browsers are you seeing the problem on if you're using web version?

No response

Are you self-hosting?

  • Yes

Relevant log output

No response

Anything else?

Images

White screen with a system title bar

Empty AFFiNE workspace page with shape placeholders

Version

  • AFFiNE version: 0.13.0
  • Editor version: 0.13.0-canary-202403140735-2367cd5
  • Billing plan: Free
  • Workspace sync with AFFiNE Cloud
@affine-issue-bot
Copy link

affine-issue-bot bot commented Mar 17, 2024

Issue Status: Obsolete

Obsolete

The part of the product that was causing this issue has been removed or significantly reworked since it was created.

This is an automatic reply by the bot.

@pengx17
Copy link
Collaborator

pengx17 commented Mar 19, 2024

Should be related to layers of status checks on first load. Planned be resolved when auth is refactored in 0.14 next release

@EYHN
Copy link
Member

EYHN commented Mar 21, 2024

@pengx17 do you have any idea about A white screen with a system title bar

@pengx17
Copy link
Collaborator

pengx17 commented Mar 21, 2024

image I guess it is the time of the blocking script is being evaluated (above perf profile is generated with x6 cpu slow down).

Some possible solutions:

  • reduce the load of blocking js before first render. e.g., take the main react app as async module
  • add a non-js loading screen for electron entry
  • only show electron window after js is finished evaluating
  • v8 snapshot?

@EYHN
Copy link
Member

EYHN commented May 8, 2024

Please try the latest version again. If the problem persists, reopen this issue

@EYHN EYHN closed this as completed May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

3 participants