Title: LZ4 decompession failed · Issue #353 · K0lb3/UnityPy · GitHub
Open Graph Title: LZ4 decompession failed · Issue #353 · K0lb3/UnityPy
X Title: LZ4 decompession failed · Issue #353 · K0lb3/UnityPy
Description: Code import os import UnityPy UnityPy.config.FALLBACK_UNITY_VERSION = '2022.3.52f1' env = UnityPy.load('avgbg_assets_bg0001_q_15caadfac7a047db4ea676ea62806d56.bundle') for obj in env.objects: print(obj.type.name) print('End') Error C:\Us...
Open Graph Description: Code import os import UnityPy UnityPy.config.FALLBACK_UNITY_VERSION = '2022.3.52f1' env = UnityPy.load('avgbg_assets_bg0001_q_15caadfac7a047db4ea676ea62806d56.bundle') for obj in env.objects: print...
X Description: Code import os import UnityPy UnityPy.config.FALLBACK_UNITY_VERSION = '2022.3.52f1' env = UnityPy.load('avgbg_assets_bg0001_q_15caadfac7a047db4ea676ea62806d56.bundle') for obj in en...
Opengraph URL: https://github.com/K0lb3/UnityPy/issues/353
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LZ4 decompession failed","articleBody":"**Code**\n```python\nimport os\nimport UnityPy\n\n\nUnityPy.config.FALLBACK_UNITY_VERSION = '2022.3.52f1'\n\nenv = UnityPy.load('avgbg_assets_bg0001_q_15caadfac7a047db4ea676ea62806d56.bundle')\nfor obj in env.objects:\n print(obj.type.name)\nprint('End')\n```\n\n**Error**\n```\nC:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\files\\BundleFile.py:526: UnityVersionFallbackWarning: No valid Unity version found, defaulting to UnityPy.config.FALLBACK_UNITY_VERSION (2022.3.52f1)\n version_str = config.get_fallback_version()\nTraceback (most recent call last):\n File \"E:\\code\\unity_unpack\\test.py\", line 7, in \u003cmodule\u003e\n env = UnityPy.load('avgbg_assets_bg0001_q_15caadfac7a047db4ea676ea62806d56.bundle')\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\environment.py\", line 63, in __init__\n self.load_file(arg)\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\environment.py\", line 152, in load_file\n f = parse_file(reader, self, name=stream_name, typ=typ, is_dependency=is_dependency)\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\helpers\\ImportHelper.py\", line 141, in parse_file\n f = files.BundleFile(reader, parent, name=name, is_dependency=is_dependency)\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\files\\BundleFile.py\", line 46, in __init__\n m_DirectoryInfo, blocksReader = self.read_fs(reader)\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\files\\BundleFile.py\", line 174, in read_fs\n b\"\".join(\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\files\\BundleFile.py\", line 175, in \u003cgenexpr\u003e\n self.decompress_data(\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\files\\BundleFile.py\", line 511, in decompress_data\n CompressionHelper.DECOMPRESSION_MAP[comp_flag](compressed_data, uncompressed_size),\n File \"C:\\Users\\user\\AppData\\Local\\Programs\\Python\\Python310\\lib\\site-packages\\UnityPy\\helpers\\CompressionHelper.py\", line 94, in decompress_lz4\n return lz4.block.decompress(data, uncompressed_size)\n_block.LZ4BlockError: Decompression failed: corrupt input or insufficient space in destination buffer. Error code: 33627\n```\n\n**Bug**\nLib should load file, but raises an exception\n\n**To Reproduce**\n- a copy of the file that causes the problem: https://drive.google.com/file/d/1RGDOKK8aX119fpFJ8Jhz2JpnWTkrWDDD/view?usp=sharing\n- following data:\n - Python version: 3.10.11\n - UnityPy version: 1.24.1\n","author":{"url":"https://github.com/smpial","@type":"Person","name":"smpial"},"datePublished":"2025-12-16T15:40:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/353/UnityPy/issues/353"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:75e96558-7b64-5533-d491-6d888ce7a184 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 83D0:1FDEED:272DF3:318EA6:697F88BE |
| html-safe-nonce | 73c822271c17cd83d10176691606419bf2d3ee5357d847a114332629ac58aa80 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4M0QwOjFGREVFRDoyNzJERjM6MzE4RUE2OjY5N0Y4OEJFIiwidmlzaXRvcl9pZCI6IjIwNDQ1ODI2NDU3NDM5Nzg2ODYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d0655924c057f069abbc339730adf6afb55087a8ddbcdaee9f1d069001e863dc |
| hovercard-subject-tag | issue:3735329750 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/K0lb3/UnityPy/353/issue_layout |
| twitter:image | https://opengraph.githubassets.com/75a17471e7affefcc0fb4fb9ce50a6d0e8390b0d9632b0c0dbc142a100ab7fc6/K0lb3/UnityPy/issues/353 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/75a17471e7affefcc0fb4fb9ce50a6d0e8390b0d9632b0c0dbc142a100ab7fc6/K0lb3/UnityPy/issues/353 |
| og:image:alt | Code import os import UnityPy UnityPy.config.FALLBACK_UNITY_VERSION = '2022.3.52f1' env = UnityPy.load('avgbg_assets_bg0001_q_15caadfac7a047db4ea676ea62806d56.bundle') for obj in env.objects: print... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | smpial |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/K0lb3/UnityPy git https://github.com/K0lb3/UnityPy.git |
| octolytics-dimension-user_id | 29400616 |
| octolytics-dimension-user_login | K0lb3 |
| octolytics-dimension-repository_id | 198518141 |
| octolytics-dimension-repository_nwo | K0lb3/UnityPy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 198518141 |
| octolytics-dimension-repository_network_root_nwo | K0lb3/UnityPy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width