Artemis icon indicating copy to clipboard operation
Artemis copied to clipboard

High CPU usage on startup when running on Linux for first time.

Open ProjectSynchro opened this issue 2 years ago • 2 comments

Reposting this here because the issue is still a thing.

As discussed in the #bugs channel on discord: https://discordapp.com/channels/392093058352676874/392094276122574848/1063759728175497236

The console will show the below error constantly until the application is closed. consoleOutput.txt


05:09:06.182 ERR >> [PeriodicTask] The CancellationTokenSource has been disposed.
    $type           : System.ObjectDisposedException
    Message         : The CancellationTokenSource has been disposed.
    ObjectName      : 
    TargetSite      : Void ThrowObjectDisposedException(System.ExceptionResource)
    Source          : System.Private.CoreLib
    HResult         : -2146232798
    StackTrace      :    at Swan.Threading.PeriodicTask.ActionLoop()

This appears to be related to the integrated web server.

Disabling it causes the issue to go away

Current workaround: Set the 'Enable web server' option to No on first launch, then restart the application. image

ProjectSynchro avatar Jan 21 '23 15:01 ProjectSynchro

How do i find/build the linux build ?

NicTanghe avatar Mar 04 '23 17:03 NicTanghe

How do i find/build the linux build ?

Hey, you should be able to download one of the Linux build artefacts from Azure Pipelines. Keep in mind though that this is probably subject to change as there's a new system in the works.

Alternatively, you can install dotnet 6 for your distro and build from source (you don't need PowerShell obviously)

Aternate-alternatively, you can build a Flatpak using my Flatpak build repository, although keep in mind it is not an official method of building by any means, just means you avoid installing dotnet yourself, and it is integrated in the desktop environment correctly.

ProjectSynchro avatar Mar 06 '23 22:03 ProjectSynchro