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

Large (.vapi) files are extremely slow to load when Vala Symbol pane is active and may cause freeze #1513

Open
jeremypw opened this issue Jan 20, 2025 · 1 comment · May be fixed by #1515
Open

Comments

@jeremypw
Copy link
Collaborator

What Happened?

Activate the symbol pane and then tried to open a .vapi file with about 10,000 lines. Code froze pretty much indefinitely. With smaller .vapi files, 5000 lines tool 2 - 3 seconds to parse but 1 - 2000 lines there was minimal delay.

Steps to Reproduce

  • Activate the right-hand pane (Vala symbols)
  • Open a large .vapi file (e.g. clutter-1.0.vapi)
  • Observe interface frozen indefinitely (freeze may occur after a few seconds depending on resources available and whether editing is attempted before symbols loaded)

Expected Behavior

The Vala Symbol pane should cope gracefully with files with many, deeply nested symbols when resources become short.

OS Version

8.x (Circe)

Session Type

Secure Session (Wayland)

Software Version

Latest release (I have run all updates)

Log Output

Hardware Info

Running in a VM with comparatively limited resources (8 cores, 8GB memory). Also occurs to a lesser extent in OS7.1 running natively with 16 cores and 16GBmemory,

@jeremypw
Copy link
Collaborator Author

It is debatable whether it is necessary to parse .vapi files. Actual .vala files tend to be smaller and I have not noticed an issue with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant