-
Notifications
You must be signed in to change notification settings - Fork 1k
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
New stub executable failing on non-Semver compliant packages #892
Comments
Same problem here. It starts the stub.exe needs about 644kb RAM and freezes... Is there any more detailed description?? |
Same problem here with version 1.5 |
Can you tell me the name of the executable you're having issues with? |
Sorry for the late reply. This is similar to how my installed tree looks. If I can find time I need to dive into it some and figure out how this stub works and try to add some debugging to it if possible to work out if it's simply unable to execute the application and if so, why it cannot. |
Same problem with version 1.5 |
1 similar comment
Same problem with version 1.5 |
I can confirm the same issue in Windows 7 for both WPF (32bit and 64bit) and Console applications. The stub.exe always crashes (ie: %LocalAppData%\MyApp\Myapp.exe), but if I try the exe under app-x.x.x.x then that one works. I've tried reverting to 1.4.4, but I can't ever get that one to work, it errors with:
|
I am afraid of updating to 1.5 should I ? |
@wocar You can try if it works, for me it doesn't. |
Wait, it crashes? What's the error? |
I don't know if this is related to this issue exactly, but I noticed that the StubExecutable does not support version numbers more than "x.x.x"; i.e., my app would not run from the stub with a version number of "2.1.0.1", but it worked fine with "2.1.0" |
So is that the issue?
I'm a bit worried/disappointed because we depend a lot on Squirrel for many
programs we have. And breaking an upgrade will cause a lot of issues + time
trying to reinstall on all the clients 😐
El El lun, 12 de diciembre de 2016 a la(s) 11:43 p.m., matthewc-mps-aust <
[email protected]> escribió:
… I don't know if this is related to this issue exactly, but I noticed that
the StubExecutable does not support version numbers more than "x.x.x";
i.e., my app would not run from the stub with a version number of
"2.1.0.1", but it worked fine with "2.1.0"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#892 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIycYYZ2J1BFxF9fqjwSdLyHvcephSxEks5rHjCUgaJpZM4LEdow>
.
|
I suspect this is the issue, we use a Semver library to compare version numbers, and shipping a non-Semver one was always incorrect but apparently seemed to work. NuGet packages are always Semver-versioned. |
I see. Will there be a solution for that one? |
I've just tried a Semver-versioned package (1.0.0-rc1) and it works - once I tweaked it to strip the "-rc1" from the args before passing to the SquirrelAwareApp.HandleEvents (it was crashing trying to convert that to a System.Version - shouldn't it be creating a SemanticVersion object?). I also had to use NuGet.Core 2.14.0-rtm-832 to create the nupkg because the current NuGet doesn't like packing with a SemVer, but that's not Squirrel's issue... |
I can also confirm that dropping Revision from the assembly version fixes the issue I was encountering. Heads up to anyone using @poma's 'docs/using/visual-studio-packaging.md' that is should most likely be updated (see my comment in #630). Not to be semver stickler but maybe 1.5 should have actually been 2.0.0? Since going to semver looks like a breaking change :S. |
NuGet packages have always been required to have SemVer versions, it just happened that some people got away with it and ignored the warning that NuGet prints out |
@paulcbetts I meant that having the Stub.exe enforcing SemVer potentially breaks existing systems if they upgrade. But then again... if they were always supposed to be SemVer... then it's not technically a breaking. I hate logic semantics (no pun intended). I retract my 2.0.0 suggestion. |
@pdinnissen You're not wrong, but like, lots of stuff would be broken, including how we check for if you have the latest version (i.e. I'd be very very surprised if 2.0.0.0 => 2.0.0.1 would actually update the app) |
I just tested that a couple of days ago. It does in v1.4.1, but it is impractical. |
Ok, just to get sure: neglecting the fourth version number ensures that every thing works fine again? e.g. instead of 4.2.5.1 -> 4.2.5.2: 4.2.5 -> 4.2.6 |
@muffmolch Correct. |
It looks like we've gotten to the bottom of this. To be super clear, I'm not happy that anyone is broken, and we do our best to have as few breaking changes as absolutely possible, but in this case I don't know how we can support this, since the Semver assumption is built into so many places in the app. Sorry again for the stress! |
sorry, but it still does not work for me! Do I have to change anything else to get it work again? My install folder looks like that: .\Local\RunCMake\app-5.7.3.0 The properties of my RunCMake in start menu ist: The dummy RunCMake.exe needs about 800kB Memory, is pending some seconds an closes.. No app ist starting! |
@muffmolch You need to drop the last '.0' in your version for when you pack your nuget package. |
ah! I see! no it works like a charm |
Is it going to be fixed?
El El mié, 21 de diciembre de 2016 a la(s) 10:01 a.m., Sören Textor <
[email protected]> escribió:
… ah! I see! no it works like a charm
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#892 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIycYRYfoeQ4CyQ_bR7Oqd43ROXSiF_Sks5rKU0zgaJpZM4LEdow>
.
|
Fixed? Why? it works and just take a closer look at paulcbetts post and you'll see the answer for you question ;-) |
The only thing that needs a fix is documentation. I'm currently don't have time to verify @pdinnissen's solution to #630 so it would be nice if someone posts a quick update to docs. |
There should have been a big bold warning that explains the issue in the release notes at least. Phew, gotta revert the updates now. |
This issue wasn't known at the time of release. Next release we'll make sure that releasify throws on this case so people don't get into it |
We're seeing the same issue here and the execution stub is recognized as a virus by antivirus scanners... @paulcbetts is there a version where releasify includes this already? We'd love to test that one ;) |
@kjellski a reliable way? Check the version number of your Nuget package. Does it have a fourth digit? If so, you're affected |
The fix is to remove the 4th digit, there will be no change to Squirrel to allow non Semver version numbers |
@paulcbetts we're using squirrel only through electron-builder(https://github.com/electron-userland/electron-builder). We don't produce any Nuget Package ourselves, any idea on how to debug this? Or should we maybe just get in touch with @develar on the matter? Right now it seems that the stubs are beeing placed in the wrong fodler, always one directory too high in the file tree. We've got that behaviour for multiple *.exe files in the 'electron-app/resources' sub directories. |
@kjellski Please report issue to electron-builder. |
@paulcbetts electron-userland/electron-builder#1101 Reported that "Windows 8 & 10 work correctly" and "I've compared it with the older versions ( Squirrel.Windows 1.4.x) and the structure seems the same, same version number format." electron-userland/electron-builder#1101 (comment) So, I guess, maybe Squirrel.Windows stub exe doesn't work on Windows 7 correctly? |
This seems unlikely, we've shipped this to lots and lots of people at Slack on Windows 7 already |
@paulcbetts So, could you please explain
Is version |
This is a known bug that's hard to fix because it requires exporting a type from our hacky internal version of NuGet.Core. However, HandleEvents is only called from C# applications, this will never get called in Electron anything.
Afaik, it should be, ya. |
electron-builder sets |
@develar np, https://github.com/Squirrel/Squirrel.Windows/blob/master/src/StubExecutable/StubExecutable.cpp is the code that it's running, basically the gist of it is:
|
Installed 1.5 from Nuget (previous 1.44) and ran a test to make sure applications would install properly.
After initial installation the app automatically runs.
If you close the app and try to run it again it simply does nothing.
Noting the shortcut is now the 'stub' application that's about 250kb or so in size
(I actually went back to 1.4.4 to verify that fixes it so I forget the exact size)
If I run this manually it does nothing.
I get no output when running it from the command line.
I tried various things like --help, /?, /h and so forth to see if I get any response but nothing.
It just runs and exits instantly.
There is nothing in the event viewer on either system tested. Both are Windows 10.
I wish I had more information to provide but there is just no indication as to what could the wrong here.
The text was updated successfully, but these errors were encountered: