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

Installation Has Failed - Seems to be an issue with the RELEASES file #534

Closed
bsharper opened this issue Jun 23, 2016 · 6 comments · May be fixed by qcif/data-curator#563
Closed

Installation Has Failed - Seems to be an issue with the RELEASES file #534

bsharper opened this issue Jun 23, 2016 · 6 comments · May be fixed by qcif/data-curator#563

Comments

@bsharper
Copy link

This might be an upstream issue, but I figured I'd start here because I'm not familiar enough with the modules electron-builder uses to know which would be causing the error.

When I generate a Windows installer from OS X and then try to install the file I get a dialog box that says


[Window Title]
Setup.exe

[Main Instruction]
Installation has failed

[Content]
There was an error while installing the application. Check the setup log for more information and contact the author.

When I check the SquirrelSetup.txt log, the issue seems to be this:

2016-06-22 21:30:06> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.Exception: Invalid release entry: Found new TLS offset at 240
   at Squirrel.ReleaseEntry.ParseReleaseEntry(String entry)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Squirrel.ReleaseEntry.ParseReleaseFile(String fileContents)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.Exception: Invalid release entry: Found new TLS offset at 240
   at Squirrel.ReleaseEntry.ParseReleaseEntry(String entry)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Squirrel.ReleaseEntry.ParseReleaseFile(String fileContents)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

(I can include the full output if needed)

When I extract the RELEASES files from the executable, the contents are simply "Found new TLS offset at 240" and not the expected sha1 filename filesize format. It almost seems like something is printing more lines than expected, and (for example) the first line is all that gets included in RELEASES. But this is just a guess.

I'm building this the same way I have in the past, I'm not sure what would have changed since the last time I built an installer.

If I copy the unpacked directory over, everything works as expected.

I'm using [email protected].

@develar
Copy link
Member

develar commented Jun 23, 2016

Please try latest release 5.x

@bsharper
Copy link
Author

Hi @develar, I'm seeing the same error with [email protected]. I removed both the build node_modules and everything in the dist directories and did a fresh install and build to make sure I hadn't inadvertently changed something.

Output from the setup log from a W10 machine, installer built on OS X. I'm going to try this again on a different work computer shortly, I'll post something if I get a different result.

2016-06-23 08:59:31> Program: Starting Squirrel Updater: --install .
2016-06-23 08:59:31> Program: Starting install, writing to C:\Users\User\AppData\Local\SquirrelTemp
2016-06-23 08:59:31> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.Exception: Invalid release entry: Found new TLS offset at 240
   at Squirrel.ReleaseEntry.ParseReleaseEntry(String entry)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Squirrel.ReleaseEntry.ParseReleaseFile(String fileContents)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.Exception: Invalid release entry: Found new TLS offset at 240
   at Squirrel.ReleaseEntry.ParseReleaseEntry(String entry)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at Squirrel.ReleaseEntry.ParseReleaseFile(String fileContents)
   at Squirrel.Update.Program.<Install>d__4.MoveNext()<---

@develar
Copy link
Member

develar commented Jun 23, 2016

@bsharper Please send me your setup exe file and RELEASES.

@develar
Copy link
Member

develar commented Jun 23, 2016

I guess error was caused by wine 1.8.3 update. Now we use more robust out parser.

@develar
Copy link
Member

develar commented Jun 23, 2016

Please try 5.6.3

@bsharper
Copy link
Author

@develar Thanks, it's working again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants