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 · 0 comments
Open
1 task

Application Freezing when Exporting Graph as SVG #2115

capricornunicorn123 opened this issue Jul 5, 2024 · 0 comments
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
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
2 participants