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

Application Freezing when Exporting Graph as SVG #2115

Open
1 task
capricornunicorn123 opened this issue Jul 5, 2024 · 1 comment
Open
1 task

Application Freezing when Exporting Graph as SVG #2115

capricornunicorn123 opened this issue Jul 5, 2024 · 1 comment
Labels
bug Something isn't working ux Things related to the user experience

Comments

@capricornunicorn123
Copy link
Collaborator

Prerequisites

Description

When exporting to SVG, users are presented with the option to select the number of processors that they would like to dedicate to the export. Currently users can dedicate all of their processors to the export if they choose meaning that the application has to fight for time on these processors to continue to run the UI and background functions.

Steps to Reproduce

  1. Export a graph with 20000 nodes to an SVG file.
  2. Increase the number of available processors to the maximum value
  3. Interact with the application whilst exporting and watch for UI issues.

Expected behaviour:
Limit the number of processors available to the SVGExportPlugin to ensure some a free for the application

Actual behaviour:
users can dedicate all processors to the export

Reproduces how often:
whenever the users choose to increase the number of available processors

Additional Information

The issue can easily be fixed by amending the maximum number of processors available for the export in the file au.gov.asd.tac.constellation.plugins.importexport.svg.SVGExportPlugin.Java

IntegerParameterType.setMinimum(exportCores, 1);
IntegerParameterType.setMaximum(exportCores, Runtime.getRuntime().availableProcessors());

The trick will be to determine how many processors should be left for the application.

@antares1470 antares1470 added bug Something isn't working ux Things related to the user experience labels Jul 8, 2024
@Quasar985
Copy link
Collaborator

I've attempted to reproduce this problem, but I believe this has been mostly fixed since the "Export to SVG Enhancements" PR. The UI seemed to be responsive while exporting a graph of roughly 50,000 node and 50,000 transactions, and exporting took only around 20 seconds to complete. This was using 12 export processors, the maximum available to me.

If others have no problems, I think this issue could be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ux Things related to the user experience
Projects
None yet
Development

No branches or pull requests

3 participants