Dustyroom / flat-kit-doc

Documentation of the Flat Kit asset.
https://flatkit.dustyroom.com
Apache License 2.0
2 stars 1 forks source link

Unity editor fails to import URP package #113

Open beardeadragon opened 3 weeks ago

beardeadragon commented 3 weeks ago

Describe the bug When I double click on the [Render Pipeline] Universal (URP) file I get the following errors:

Failed to import package with error: Couldn't decompress package
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Failed to import package with error: Couldn't decompress package
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

When I try to unpack the URP files from the Readme file I get:

Failed to import package with error: Couldn't decompress package
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Failed to import package with error: Couldn't decompress package
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

[Flat Kit] Failed to unpack [Render Pipeline] Universal (URP): Failed to unpack package contents.
UnityEngine.Debug:LogError (object)
FlatKit.ReadmeEditor:OnImportPackageFailed (string,string) (at Assets/FlatKit/Utils/Readme/Editor/ReadmeEditor.cs:283)
UnityEditor.AssetDatabase:ImportPackage (string,bool)
FlatKit.ReadmeEditor:UnpackFlatKitUrp () (at Assets/FlatKit/Utils/Readme/Editor/ReadmeEditor.cs:261)
FlatKit.ReadmeEditor:OnInspectorGUI () (at Assets/FlatKit/Utils/Readme/Editor/ReadmeEditor.cs:127)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:197)

To Reproduce Steps to reproduce the behavior:

  1. Create a new URP project
  2. Download the latest Flat Kit version from the Package Manager
  3. Double click on the [Render Pipeline] Universal (URP) file (or see 4)
  4. Click on the [Readme] file
  5. Click on the URP button for "Unpack Flat Kit for".

Expected behavior The Flat Kit URP files should have been added to the project

Screenshots [

Screenshot 2024-06-15 at 11 05 05 pm

](url)

Unity details:

Build platform:

dustyroom-studio commented 3 weeks ago

Hi! It seems Unity is struggling to unpack the .unitypackage file. Please check if there's some free storage space on the computer. If there is, please re-download and re-import whole Flat Kit from the Package Manager.

vdzitsiuk commented 3 weeks ago

If the re-download button is greyed out, please delete the Package Manager cache:

beardeadragon commented 3 weeks ago

Approximately how much space is required to unpack the URP package?

I did clear the cache manually but that didn't help. I will check to see if the storage space is the issue. Thank you.

On Sun, 16 Jun 2024, 10:12 am Dustyroom, @.***> wrote:

Hi! It seems Unity is struggling to unpack the .unitypackage file. Please check if there's some free storage space on the computer. If there is, please re-download and re-import whole Flat Kit from the Package Manager.

— Reply to this email directly, view it on GitHub https://github.com/Dustyroom/flat-kit-doc/issues/113#issuecomment-2171276034, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQAYLI2TVVRGOMCE2ABZFWTZHVJHXAVCNFSM6AAAAABJMARWWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGI3TMMBTGQ . You are receiving this because you authored the thread.Message ID: @.***>

vdzitsiuk commented 3 weeks ago

The uncompressed URP unitypackage is about 320Mb.

beardeadragon commented 3 weeks ago

Thank you. I definitely have enough space then. Last time I tried unpacking the URP package I had 25gb of space.

On Sun, 16 Jun 2024, 11:59 am vdzitsiuk, @.***> wrote:

The uncompressed URP unitypackage is about 320Mb.

— Reply to this email directly, view it on GitHub https://github.com/Dustyroom/flat-kit-doc/issues/113#issuecomment-2171433843, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQAYLI3UKPLACP43INTMH53ZHVVX3AVCNFSM6AAAAABJMARWWOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRGQZTGOBUGM . You are receiving this because you authored the thread.Message ID: @.***>

dustyroom-studio commented 3 weeks ago

Then it must be that the package did not download correctly. Please let us know if fully deleting and re-downloading it worked when you have tried it.

beardeadragon commented 3 weeks ago

I've deleted the FlatltKit folder in the Assets folder and manually deleted the downloaded package from the Library, downloaded the asset again with the Package Manager and hit Import. Nothing's changed. Also tried creating another new URP project and installing it there but no luck.

vdzitsiuk commented 3 weeks ago

I've just created a new 2023.1.12 URP project, imported Flat Kit from the Package Manager and unpacked the URP version, everything went without issues, which means the package is OK.

Screenshot 2024-06-18 at 12 22 30

You mentioned creating another new URP project - which version of Unity was it?