-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
High CPU usage from mono-sgen building windows without asar on OS X #351
Comments
To fix it, we should get rid of Squirrel.windows original exe and rewrite it to some normal, non-***-windows platform. This work is started — we don't use *** nuget to pack anymore. I guess, it is a new Squirrel.windows 1.3.0 issue — so, please, file issue to https://github.com/Squirrel/Squirrel.Windows/issues Also, please attach debug log here — set env |
Here's the log. Sadly it doesn't say much. Removing /Users/asredzki/tesla/releng/canode/dist/win-x64
Packaging app for platform win32 x64 using electron v0.37.6
electron-windows-installer Created NuSpec file:
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
SNIP
</metadata>
</package> +0ms
electron-windows-installer Spawning mono /Users/asredzki/tesla/releng/canode/node_modules/electron-winstaller-fixed/vendor/Update-Mono.exe --releasify /Users/asredzki/tesla/releng/canode/dist/win-x64/.tmp/in.nupkg --releaseDir /Users/asredzki/tesla/releng/canode/dist/win-x64 --loadingGif /Users/asredzki/tesla/releng/canode/node_modules/electron-winstaller-fixed/resources/install-spinner.gif --setupIcon /Users/asredzki/tesla/releng/canode/build/icon.ico --no-msi +6s After the last line of this log appeared (which was just a few seconds into the build), the process ran for about 12 minutes before exiting silently. |
Please specify your OS, |
And please file issue to Squirrel.windows. |
OS X version: @develar I just discovered that this is not related to the latest release, this occurred because I disabled |
FYI code signing does not change whether the build time is painfully long. ~10 mins per windows arch on an OS X machine with 3.1GHz i7 & 16gb of ram. |
@ArekSredzki If you disabled ASAR and mono hangs — it is well known issue. Please see electron/windows-installer#55 I am sorry, but unlikely it will be fixed soon. It is a Squirrel.windows bug and Squirrel.windows written in C# and requires windows. So, it is very hard to fix it (requires a lot of time to learn new unpleasant platform and it is a *** windows). Please file issue to Squirrel.windows. Why you have to disable ASAR? I can fix some issues in this area. |
Please attache here file |
@develar Thank you for the support, it is much appreciated. I am definitely interesting in supporting ASAR. Your continued support in doing so would be 👍 Debugging the issue was very painful because the process clearly would not start but also didn't emit an I tried to make use of Something of interest was that when I unpacked the application I didn't see anything named Any pointers are appreciated. Also, here is the contents of
|
So, I see, it is easy to fix. I will try (use 7z to zip as solution). asar-unpack — I will check. |
@develar Care to elaborate about 7z? |
Are you referring to using |
nupkg is a plain zip file. What I want to do — Squirrel.windows uses some zip lib to pack ( |
@develar Oh excellent! I had assumed that .nupkg was fancier than that 😄 Out of curiousity, did this commit relate to this issue or something else to do with nuget? |
Yes. 4x-8x speed up nuget pack :) Ideally, we should get rid of Squirrel.Windows and implement compatible releasify tool. |
@develar I'm confused then. Why am I still experiencing the slow compression? I'm on 3.9.0 And why replace it rather than fix it? |
Because fix was not complete. nuget part was only fixed (it seems, the same zip issue — because nuget uses the same/simular "broken" (?) zip lib).
Because nuget is a junk. Squirrel.Windows will be also fixed in this way — we will implement zip on our side in a cross-platform way and pass result to Squirrel.Windows (i.e. I am not going to fix it properly on Squirrel.Windows side because it is not possible — Squirrel.Windows written in C#). |
@develar Thank you for the further information. Excited to make use of it. Any hints on how to get Note: I had previously referenced |
It is not possible, so, you need to use Please specify path that you tried to execute — in the FYI: this issue is definitely will be fixed, because I hate Squirrel.Windows pack and it makes our CI win tests slow and unreliable. Don't expect fix in a few days, but this/next week may be. |
@develar Thanks. Having unpacked the folder in which the file exists, does one have to add The module that I am trying to fork is not in |
this issue is progress, but slow (step by step, to not break anything). |
@ArekSredzki Mostly fixed in the 3.21.0, but problematic code still in use. Will be finally addressed soon. |
Thanks @develar I appreciate it! |
👍🏼👍🏼👍🏼👍🏼 |
Hi
Today I upgraded to the 3.9.0.
I'm very excited about the ability to sign windows builds on osx, but there appears to be a critical bug.
Building windows binaries now takes significantly longer.
The culprit here is
mono-sgen
.The process performs the various actions that it must for about thirty seconds, and then
mono-sgen
kicks in at 99% CPU usage for about ten minutes.If you could take a look at soon that would be much appreciated.
The text was updated successfully, but these errors were encountered: