Closed piotrzarzycki21 closed 2 years ago
I did some quick tests today with the latest nightly builds.
On macOS, the SDK installed properly, and I confirmed I could build a Flex Desktop project.
However, on Windows, the installation failed with this error. I'll start another test.
I have reverted the distribution version to 33.1.1.713
until we figured what is going on with 33.1.1.743
.
Here is the complete output of the error when I tried on Windows, which is different than @JoelProminic 's:
Installer path: C:\Program Files\MoonshineSDKInstaller
Installer version 4.2.0 (windows)
Available Memory: 46718976 (64-bit)
Using Locale: en_IN
Fetched the SDK download mirror URL from the CGI.
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from: https://dlcdn.apache.org/flex/4.16.1/binaries/apache-flex-sdk-4.16.1-bin.zip
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files matches the reference. The file is valid.
Uncompressing: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\temp\apache-flex-sdk-4.16.1-bin.zip
Finished uncompressing: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\temp\apache-flex-sdk-4.16.1-bin.zip
Preparing build script run
Preparing script for Apache Flex SDK
Found script file: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\installer.xml
Running script by: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\installer.xml
Downloading Adobe AIR Runtime Kit for Windows from: https://airsdk.harman.com/api/versions/33.1.1.743/sdks/AIRSDK_Flex_Windows.zip?license=accepted
Uncompressing C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1/in/AIRSDK_Flex_Windows.zip?license=accepted
Remove-Item : Cannot find path 'C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\atftools\PVRTexLib.dll' because it does
not exist.
At
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:411
char:46
+ ... $expandedItems | % { Remove-Item $_ -Force -Recurse }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\MoonshineSDK...s\PVRTexLib.dll:String) [Remove-Item], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
Flex installs by SDK Installer library's existing way and by running the build.xml
file that downloads with the SDK binary. There has been no change in SDK Library codes on Flex installation since we introduce Flex+Harman.
Unfortunately, I seen same error in my multiple tries. It seems @JoelProminic reached further than the point I stuck though - AIR extracted, and additional downloads being started.
Once I test by the reverted 33.1.1.713 download, I matched @JoelProminic 's error:
Installer path: C:\Program Files\MoonshineSDKInstaller
Installer version 4.2.0 (windows)
Available Memory: 40591360 (64-bit)
Using Locale: en_IN
Fetched the SDK download mirror URL from the CGI.
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from: https://dlcdn.apache.org/flex/4.16.1/binaries/apache-flex-sdk-4.16.1-bin.zip
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files matches the reference. The file is valid.
Uncompressing: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\temp\apache-flex-sdk-4.16.1-bin.zip
Finished uncompressing: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\temp\apache-flex-sdk-4.16.1-bin.zip
Preparing build script run
Preparing script for Apache Flex SDK
Found script file: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\installer.xml
Running script by: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\installer.xml
Downloading Adobe AIR Runtime Kit for Windows from: https://airsdk.harman.com/api/versions/33.1.1.713/sdks/AIRSDK_Flex_Windows.zip?license=accepted
Uncompressing C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1/in/AIRSDK_Flex_Windows.zip?license=accepted
Finished uncompressing: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1/in/AIRSDK_Flex_Windows.zip?license=accepted
Installing Adobe Flash Player playerglobal.swc from: https://fpdownload.macromedia.com/get/flashplayer/updaters/32//playerglobal32_0.swc
Validating download: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1/frameworks/libs/player/28.0/playerglobal.swc
Downloading 2.2.zip from: https://moonshine-ide.com/downloads/swfobject/swfobject/archive
Validating download: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1/in/swfobject_2_2.zip
Download complete
Downloading OSMF2_0.swc?format=raw from: https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/frameworks/libs
Validating download: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1/frameworks/libs/osmf.swc
Expand-Archive : .swc is not a supported archive file format. .zip is the only supported archive file format.
At line:1 char:107
+ ... yContinue) {Expand-Archive -Path "C:\MoonshineSDKs\Flex_SDK\Flex_4.16 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (.swc:String) [Expand-Archive], IOException
+ FullyQualifiedErrorId : NotSupportedArchiveFileExtension,Expand-Archive
I have reverted the distribution version to
33.1.1.713
until we figured what is going on with33.1.1.743
.
Why you did that ? This is development version. Please bring back latest available version of AIR or best update it to newest one -> https://airsdk.harman.com/download/33.1.1.758
Let me know and then we will start testing. I have download yesterday 743 on my Mac OS and everything was working fine.
@piotrzarzycki21 Please give a test on Windows with either SDK-version and let us know what you see. We're seeing error with either versions (above).
I just gave a test with build 357 of installer on macOS Monterey 12.2 and everything went fine. I did test also with. build 337 on Windows 10 corporate machine and everything went fine.
I found that the osmf.swc error also triggers with the AIR 32.0 install:
So it looks like this is a separate issue from the AIR update. I'll create a quick issue for this.
There is something strange with Harman SDK recent version update and MSDKI distribution codes on Windows.
I confirm if I use Harman SDK 33.1.1.713
(the last distribution version with MSDKI), it installs properly and without any error.
If I tries to install Harman SDK 33.1.1.743
(the latest version from Harman website), MSDKI fails to uncompress the downloaded .Zip file on Windows, and therefore installer.xml
script throws following error:
Found script file: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\installer.xml
Running script by: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\installer.xml
Downloading Adobe AIR Runtime Kit for Windows from: https://airsdk.harman.com/api/versions/33.1.1.743/sdks/AIRSDK_Flex_Windows.zip?license=accepted
Uncompressing C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1/in/AIRSDK_Flex_Windows.zip?license=accepted
Remove-Item : Cannot find path 'C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\atftools\PVRTexLib.dll' because it does
not exist.
At
C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\Microsoft.PowerShell.Archive\Microsoft.PowerShell.Archive.psm1:411
char:46
+ ... $expandedItems | % { Remove-Item $_ -Force -Recurse }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\MoonshineSDK...s\PVRTexLib.dll:String) [Remove-Item], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
While investigating I noticed that AIRSDK_Flex_Windows.zip file haven't unzipped. The atftools\PVRTexLib.dll
is part of AIR SDK and since it didn't unzipped any followed-by Ant command could throw the above exception during C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1\atftools\PVRTexLib.dll
file check.
If I try to unzip the downloaded AIR SDK .Zip file manually on Windows Explorer, it unzips well.
@joshtynjala do you think about any reason what could cause this unzip failure on Windows (?)
For a reference, the download URL was https://airsdk.harman.com/api/versions/33.1.1.743/sdks/AIRSDK_Flex_Windows.zip?license=accepted.
Did you try that version as well ? ->https://airsdk.harman.com/download/33.1.1.758
Did you try that version as well ? ->https://airsdk.harman.com/download/33.1.1.758
I'm not sure where you get 33.1.1.758
but official stable version is 33.1.1.743
(https://airsdk.harman.com/download).
EDIT: I see you directly or somehow navigated to a particular version details, but from the main website https://airsdk.harman.com it directs to https://airsdk.harman.com/download where it has mention to 33.1.1.743
only, which I consider current stable.
Maybe try - they may have some issue on Download website. I think stable now is 758.
Yeah, I can give this a try.
@joshtynjala do you think about any reason what could cause this unzip failure on Windows (?)
Sorry, no idea.
Unfortunately, this seems to be related to Ant PowerShell command (https://github.com/Moonshine-IDE/Moonshine-SDK-Installer/blob/master/flex-utilities/flex-installer/ant_on_air/src/org/apache/flex/ant/tags/Unzip.as#L148) execution while unzipping the Harman AIR SDK, @joshtynjala . It runs into its ProgressEvent.STANDARD_ERROR_DATA
event.
Here is the full command that runs by Ant PowerShell process:
& {Param([string]$zipPath,[string]$outPath)if (Get-Command Expand-Archive -errorAction SilentlyContinue) {Expand-Archive -Path "C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1_TEST\in\AIRSDK_Flex_Windows.zip" -DestinationPath "C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1_TEST" -Force;} else {$shell = New-Object -ComObject shell.application;$zip = $shell.NameSpace($zipPath);New-Item -path $outPath -type directory -force;$shell.NameSpace($outPath).CopyHere($zip.items(), 4 + 16);[Environment]::Exit(0);}} "C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1_TEST\in\AIRSDK_Flex_Windows.zip" "C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1_TEST"
It runs against following Ant code:
<unzip src="${download.dir}/AIRSDK_Flex_Windows.zip" dest="${basedir}" overwrite="true" />
It suppose to:
Unzip file from: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1_TEST\in\AIRSDK_Flex_Windows.zip
Unzip to: C:\MoonshineSDKs\Flex_SDK\Flex_4.16.1_AIR_33.1_TEST
I have less understanding on detail of this PowerShell command. I copied and run the command on a standalone PowerShell terminal - and it throws same chain of errors. Could it be something with the command then (?)
However, manually unzipping the file with WinRAR didn't demonstrate any problem.
Here is the unzip-error output for a reference: PowershellUnzipError.pdf
AIR Zip file to download from: https://airsdk.harman.com/api/versions/33.1.1.743/sdks/AIRSDK_Flex_Windows.zip?license=accepted.
I found the source code for Microsoft.PowerShell.Archive.psm1 online, and it looks like the line with Remove-Item below is where it is failing:
finally
{
# The $isArchiveFileProcessingComplete would be set to $false if user has typed 'CTRL + C' to
# terminate the cmdlet execution or if an unhandled exception is thrown.
if($isArchiveFileProcessingComplete -eq $false)
{
if($expandedItems.Count -gt 0)
{
# delete the expanded file/directory as the archive
# file was not completly expanded.
$expandedItems | % { Remove-Item $_ -Force -Recurse }
}
}
}
The errors reported by Remove-Item seem to be a secondary issue, if I'm understanding the comments correctly. This is in a finally
block. I guess that "an unhandled exception is thrown" in the corresponding try
block, and that's where the real failure happens.
I can only assume that there's something strange about AIRSDK_Flex_Windows.zip, and PowerShell doesn't know how to extract it properly. There's not really much we can do, since we can't modify PowerShell installed on other users' systems.
I'd be curious if the file explorer in Windows can unzip the file, or if it fails too.
You could try modifying Unzip.as to always use the else
part instead. That's what gets run on older versions of PowerShell, before Expand-Archive was added as a native PowerShell API.
I'd be curious if the file explorer in Windows can unzip the file, or if it fails too.
Yes, the .zip file extract well if I tried with WinRAR from file explorer, manually.
You could try modifying Unzip.as to always use the else part instead. That's what gets run on older versions of PowerShell, before Expand-Archive was added as a native PowerShell API.
@joshtynjala do you think if we restore the Unzip to older API (the else
part), would it affect to any of our current workingness (?)
if I tried with WinRAR
Sorry, I should have been clear that I meant that you should try the native feature of Windows file explorer to extract .zip files. Not with a third-party program.
do you think if we restore the Unzip to older API (the else part), would it affect to any of our current workingness (?)
As I understand it, the use of COM APIs in the else
part will work on all versions of PowerShell, but it's probably a good idea to test some of the other downloads to ensure that they still work properly.
You could try modifying Unzip.as to always use the else part instead. That's what gets run on older versions of PowerShell, before Expand-Archive was added as a native PowerShell API.
I have adjusted the part of PowerShell/unzip command as per our discussions and gave a test downloading latest stable 33.1.1.743
.
I confirm this time it installs properly, and there was no error during unzipping the downloaded AIR SDK .zip.
I also tested running a Flex Desktop application using the newly installed SDK, that goes well too.
I'd like to keep the current distribution version to 33.1.1.743
until Harman officially change to other version as stable on their website.
We discussed this during the meeting today. Checking the downloads page, the current release is 743. In the release notes it is 758. We see a bunch of issues for 758 here, so we suspect the production builds was rolled back. We agreed to stay on 743 for now.
I confirmed that the Harman AIR build is working on Windows now. I'm working on a macOS test, and I'll report the results later.
I have just sent email to Andrew - let's wait for his respond to have clarification to what version are we going to use.
I have been trying to test the macOS build since yesterday, and it has been consistently failing for me on the Harman AIR (743) download:
Installer path: /Applications/MoonshineSDKInstaller.app/Contents/Resources
Installer version 4.2.0 (mac)
Using Locale: en_US
Fetched the SDK download mirror URL from the CGI.
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from: https://dlcdn.apache.org/flex/4.16.1/binaries/apache-flex-sdk-4.16.1-bin.tar.gz
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files matches the reference. The file is valid.
Uncompressing: /Users/-user-/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Finished uncompressing: /Users/-user-/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Downloading Adobe AIR Runtime Kit for Mac from: https://airsdk.harman.com/api/versions/33.1.1.743/sdks/AIRSDK_Flex_MacOS.zip?license=accepted
[get] [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032" errorID=2032]
Does anyone else have this problem? I have had a bad network connection recently, but it seems strange that this consistently failing.
I gave a fresh test with macOS build.368.
I didn't had the error against AIR SDK download, but I received a similar I/O against afe.jar which downloads during end of the downloading process.
To ensure whether it is really broken I tests the installation again, and this time it installs correctly:
Installer path: /Applications/MoonshineSDKInstaller.app/Contents/Resources
Installer version 4.2.0 (mac)
Using Locale: en_IN
Fetched the SDK download mirror URL from the CGI.
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from: https://dlcdn.apache.org/flex/4.16.1/binaries/apache-flex-sdk-4.16.1-bin.tar.gz
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files matches the reference. The file is valid.
Uncompressing: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Finished uncompressing: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Downloading Adobe AIR Runtime Kit for Mac from: https://airsdk.harman.com/api/versions/33.1.1.743/sdks/AIRSDK_Flex_MacOS.zip?license=accepted
Should unzip: true
Unzipping /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/AIRSDK_Flex_MacOS.zip
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/frameworks/libs/air to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/frameworks/libs
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/frameworks/projects/air to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/frameworks/projects
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/include to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/lib/android to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/lib
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/lib/aot to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/lib
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/lib/nai to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/lib
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/runtimes to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/samples/badge to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/samples
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/samples/icons to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/samples
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/templates/air to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/templates
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/templates/extensions to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/templates
Copying files from /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/airsdk/templates/sdk to /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/templates
Installing Adobe Flash Player playerglobal.swc from: https://fpdownload.macromedia.com/get/flashplayer/updaters/32//playerglobal32_0.swc
Validating download: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/frameworks/libs/player/28.0/playerglobal.swc
Downloading 2.2.zip from: https://github.com/swfobject/swfobject/archive
Validating download: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/in/swfobject_2_2.zip
Download complete
Downloading OSMF2_0.swc?format=raw from: https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/frameworks/libs
Validating download: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/frameworks/libs/osmf.swc
Downloading afe.jar?format=raw from: https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/lib
Validating download: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/lib/external/optional/afe.jar
Downloading aglj40.jar?format=raw from: https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/lib
Validating download: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/lib/external/optional/aglj40.jar
Downloading flex-fontkit.jar?format=raw from: https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/lib
Validating download: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/lib/external/optional/flex-fontkit.jar
Downloading rideau.jar?format=raw from: https://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/lib
Validating download: /Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1/lib/external/optional/rideau.jar
Installing frameworks configuration files configured for use with an IDE
/Users/devsena/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_33.1 is now an IDE compatible folder
Installation complete
I assume it was some network issue during my first test.
I got answer from Andrew - let's move with version 33.1.1.743!
Close issue if everything is working now.
Okay, I seems like the error I got was probably just a network issue. I'll try another test when I clear up some of the issues, but we can close the issue for now.
Pleas update Harman Air in our installer to 33.1.1.743