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

LZ4BlockDecompression/ASTC texture decoder fails #13

Closed
marlangcom opened this issue Dec 10, 2024 · 2 comments
Closed

LZ4BlockDecompression/ASTC texture decoder fails #13

marlangcom opened this issue Dec 10, 2024 · 2 comments

Comments

@marlangcom
Copy link

After installing the addon and specifying the directory, an error occurs.

If I navigate deeper into the subfolder (e.g., live_pv\model\character\body\01\0001), the error does not occur. However, when I try to import the file, the error appears again.

Info: Deleted 3 object(s)
Repository data: C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\extensions\blender_org not found, sync required!
addon_utils.disable: sssekai_blender_io-master not loaded
* Script directory: C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master
* SSSekai: Blender Python Version: 3.11.9 (main, Oct 15 2024, 19:17:05) [MSC v.1929 64 bit (AMD64)]
* SSSekai: Blender Python Interperter Path: E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\bin\python.exe
* SSSekai: SSSekai Source Path: E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\sssekai\__init__.pysssekai | DEBUG | __init__ | Blender version: 4.3.0
sssekai | DEBUG | __init__ | SSSekai version: 0.5.7
sssekai | DEBUG | __init__ | UnityPy version: 1.20.16
sssekai | INFO | __init__ | Registering addon.
sssekai | INFO | addon | Addon reloaded
sssekai | INFO | addon | Addon reloaded
Modules Installed (sssekai_blender_io-master) from 'C:\\Users\\User\\Downloads\\sssekai_blender_io-master.zip' into 'C:\\Users\\User\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\scripts\\addons'
Writing userprefs: "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\config\userpref.blend" ok
Info: Preferences saved
sssekai | DEBUG | addon | Loading index for
sssekai | DEBUG | addon | Loading index for E:\MAKEAREA\live_pv\timeline\
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1715, in enumerate_assets
    sssekai_global.env = UnityPy.load(dirname)
                         ^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\__init__.py", line 10, in load
    return Environment(*args, fs=fs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 49, in __init__
    self.load_folder(arg)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 66, in load_folder
    self.load_files(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 62, in load_files
    self.load_assets(files, lambda x: open(x, "rb"))
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 287, in load_assets
    self.load_file(data, name=path)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 144, in load_file
    f = ImportHelper.parse_file(
        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\ImportHelper.py", line 139, in parse_file
    f = files.BundleFile(reader, parent, name=name, is_dependency=is_dependency)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 42, in __init__
    m_DirectoryInfo, blocksReader = self.read_fs(reader)
                                    ^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 177, in read_fs
    b"".join(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 178, in <genexpr>
    self.decompress_data(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 517, in decompress_data
    return CompressionHelper.decompress_lz4(compressed_data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\CompressionHelper.py", line 91, in decompress_lz4
    return lz4.block.decompress(data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 28631File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1695, in enumerate_assets
sssekai | DEBUG | addon | Loading index for E:\MAKEAREA\live_pv\timeline\
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1715, in enumerate_assets
    sssekai_global.env = UnityPy.load(dirname)
                         ^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\__init__.py", line 10, in load
    return Environment(*args, fs=fs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 49, in __init__
    self.load_folder(arg)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 66, in load_folder
    self.load_files(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 62, in load_files
    self.load_assets(files, lambda x: open(x, "rb"))
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 287, in load_assets
    self.load_file(data, name=path)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 144, in load_file
    f = ImportHelper.parse_file(
        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\ImportHelper.py", line 139, in parse_file
    f = files.BundleFile(reader, parent, name=name, is_dependency=is_dependency)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 42, in __init__
    m_DirectoryInfo, blocksReader = self.read_fs(reader)
                                    ^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 177, in read_fs
    b"".join(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 178, in <genexpr>
    self.decompress_data(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 517, in decompress_data
    return CompressionHelper.decompress_lz4(compressed_data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\CompressionHelper.py", line 91, in decompress_lz4
    return lz4.block.decompress(data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 28631File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1695, in enumerate_assets
sssekai | DEBUG | addon | Loading index for E:\MAKEAREA\live_pv\timeline\
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1715, in enumerate_assets
    sssekai_global.env = UnityPy.load(dirname)
                         ^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\__init__.py", line 10, in load
    return Environment(*args, fs=fs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 49, in __init__
    self.load_folder(arg)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 66, in load_folder
    self.load_files(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 62, in load_files
    self.load_assets(files, lambda x: open(x, "rb"))
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 287, in load_assets
    self.load_file(data, name=path)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 144, in load_file
    f = ImportHelper.parse_file(
        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\ImportHelper.py", line 139, in parse_file
    f = files.BundleFile(reader, parent, name=name, is_dependency=is_dependency)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 42, in __init__
    m_DirectoryInfo, blocksReader = self.read_fs(reader)
                                    ^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 177, in read_fs
    b"".join(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 178, in <genexpr>
    self.decompress_data(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 517, in decompress_data
    return CompressionHelper.decompress_lz4(compressed_data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\CompressionHelper.py", line 91, in decompress_lz4
    return lz4.block.decompress(data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 28631File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1695, in enumerate_assets
sssekai | DEBUG | addon | Loading index for E:\MAKEAREA\live_pv\timeline\
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1715, in enumerate_assets
    sssekai_global.env = UnityPy.load(dirname)
                         ^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\__init__.py", line 10, in load
    return Environment(*args, fs=fs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 49, in __init__
    self.load_folder(arg)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 66, in load_folder
    self.load_files(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 62, in load_files
    self.load_assets(files, lambda x: open(x, "rb"))
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 287, in load_assets
    self.load_file(data, name=path)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 144, in load_file
    f = ImportHelper.parse_file(
        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\ImportHelper.py", line 139, in parse_file
    f = files.BundleFile(reader, parent, name=name, is_dependency=is_dependency)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 42, in __init__
    m_DirectoryInfo, blocksReader = self.read_fs(reader)
                                    ^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 177, in read_fs
    b"".join(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 178, in <genexpr>
    self.decompress_data(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 517, in decompress_data
    return CompressionHelper.decompress_lz4(compressed_data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\CompressionHelper.py", line 91, in decompress_lz4
    return lz4.block.decompress(data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 28631File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1695, in enumerate_assets
sssekai | DEBUG | addon | Loading index for E:\MAKEAREA\live_pv\timeline\
Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\blender\addon.py", line 1715, in enumerate_assets
    sssekai_global.env = UnityPy.load(dirname)
                         ^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\__init__.py", line 10, in load
    return Environment(*args, fs=fs, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 49, in __init__
    self.load_folder(arg)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 66, in load_folder
    self.load_files(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 62, in load_files
    self.load_assets(files, lambda x: open(x, "rb"))
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 287, in load_assets
    self.load_file(data, name=path)
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\environment.py", line 144, in load_file
    f = ImportHelper.parse_file(
        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\ImportHelper.py", line 139, in parse_file
    f = files.BundleFile(reader, parent, name=name, is_dependency=is_dependency)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 42, in __init__
    m_DirectoryInfo, blocksReader = self.read_fs(reader)
                                    ^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 177, in read_fs
    b"".join(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 178, in <genexpr>
    self.decompress_data(
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\files\BundleFile.py", line 517, in decompress_data
    return CompressionHelper.decompress_lz4(compressed_data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages\UnityPy\helpers\CompressionHelper.py", line 91, in decompress_lz4
    return lz4.block.decompress(data, uncompressed_size)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer.


sssekai | DEBUG | addon | Loading index for
sssekai | DEBUG | addon | Loading index for E:\MAKEAREA\live_pv\model\character\body\01\0001\
sssekai | DEBUG | addon | Found 0 articulations and 4 armatures
sssekai | DEBUG | addon | Loading selected asset: <m_Name body>,<container assets/sekai/assetbundle/resources/ondemand/live_pv/model/character/body/01/0001/ladies_m/body.prefab>,<path_id 7037618314190771238>
sssekai | DEBUG | addon | Found Skinned Mesh at Body
sssekai | DEBUG | asset | Importing Mesh Body, Skinned=True
sssekai | WARNING | asset | SekaiShader not loaded. Importing from C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\assets\SekaiShaderStandalone.blend
sssekai | DEBUG | asset | Loaded shader blend file.
sssekai | DEBUG | asset | Savying Texture tex_bdy_KEI_A_00_C->C:\Users\User\AppData\Local\Temp\tmpbcp9h6io.tga
Error   : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF9AF863020
Module  : MSVCP140.dll
Thread  : 000045ec
Writing: C:\Users\User\AppData\Local\Temp\blender.crash.txt

Runtime Information

  • Blender version: 4.2.2 LTS and 4.3
  • pip show sssekai output (run this in Blender's python directory as per README):
E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\bin>python.exe -m pip show sssekai
Name: sssekai
Version: 0.5.7
Summary: Project SEKAI Asset Utility / PJSK 资源工具
Home-page: https://github.com/mos9527/sssekai
Author: greats3an
Author-email: [email protected]
License:
Location: E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages
Requires: astc-encoder-py, coloredlogs, msgpack, pyaxmlparser, pycryptodome, python-json-logger, requests, rich, tqdm, unitypy, wannacri
Required-by:
  • pip show UnityPy(same as above):
E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\bin>python.exe -m pip show UnityPy
Name: UnityPy
Version: 1.20.16
Summary: A Unity extraction and patching package
Home-page:
Author:
Author-email: Rudolf Kolbe <[email protected]>
License: MIT License

Copyright (c) 2019-2021 K0lb3

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Location: E:\Sekai_Dump\blender-4.3.0-windows-x64\4.3\python\Lib\site-packages
Requires: astc-encoder-py, attrs, brotli, etcpak, fsspec, lz4, Pillow, pyfmodex, texture2ddecoder
Required-by: sssekai
@mos9527
Copy link
Owner

mos9527 commented Dec 10, 2024

Incomplete / partially downloaded asset bundles may causeLZ4BlockDecompression error on UnityPy's side. Which isn't something the addon can fix by itself.
As suggested it's recommended to load the parent folder of whichever bundle file you're intrested in.

sssekai | DEBUG | addon | Loading index for
sssekai | DEBUG | addon | Loading index for E:\MAKEAREA\live_pv\model\character\body\01\0001
sssekai | DEBUG | addon | Found 0 articulations and 4 armatures
sssekai | DEBUG | addon | Loading selected asset: <m_Name body>,<container assets/sekai/assetbundle/resources/ondemand/live_pv/model/character/body/01/0001/ladies_m/body.prefab>,<path_id 7037618314190771238>
sssekai | DEBUG | addon | Found Skinned Mesh at Body
sssekai | DEBUG | asset | Importing Mesh Body, Skinned=True
sssekai | WARNING | asset | SekaiShader not loaded. Importing from C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\sssekai_blender_io-master\assets\SekaiShaderStandalone.blend
sssekai | DEBUG | asset | Loaded shader blend file.
sssekai | DEBUG | asset | Savying Texture tex_bdy_KEI_A_00_C->C:\Users\User\AppData\Local\Temp\tmpbcp9h6io.tga
Error : EXCEPTION_ACCESS_VIOLATION
Address : 0x00007FF9AF863020
Module : MSVCP140.dll
Thread : 000045ec
Writing: C:\Users\User\AppData\Local\Temp\blender.crash.txt

As for this error (or crash, to be precise), considering how it happened during importing texture images I'd assume it's #11 all over again.
I can reproduce this with astc-encoder-py==0.1.10 as well, with the snippet from #11.
Upstream has seemingly removed the fix introduced in it's 0.1.9 release in K0lb3/astc-encoder-py@e2ee9bc
I'll try reporting this (again). Meanwhile you can do pip install astc-encoder-py==0.1.9 to remedy this issue for now.

@mos9527 mos9527 changed the title LZ4BlockDecompression fails LZ4BlockDecompression/ASTC texture decoder fails Dec 10, 2024
@mos9527
Copy link
Owner

mos9527 commented Dec 20, 2024

Update: Upstream has implemented the fix again. The latest version of sssekai and the addon should work w/o resorting to an older astc-encoder-py build now.

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

No branches or pull requests

2 participants