Skip to content

Invalid Magic on latest Chromium Build #37

@pombears

Description

@pombears

Using Chromium v143.07499.169 (Official Build) built on Debian GNU/Linux 12 (bookworm) (64-bit)

python ccl_chromium_cache.py ~/.cache/chromium/Default/Cache/Cache_Data ~/Cache_Output

Traceback (most recent call last):
  File "/home/User1/ccl_chromium_cache.py", line 1335, in <module>
    main(sys.argv[1:])
  File "/home/User1/ccl_chromium_cache.py", line 1261, in main
    with cache_type(in_cache_dir) as cache:
         ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/User1/ccl_chromium_cache.py", line 1129, in __init__
    self._file_lookup = types.MappingProxyType(self._build_keys())
                                               ^^^^^^^^^^^^^^^^^^
  File "/home/User1/ccl_chromium_cache.py", line 1140, in _build_keys
    with SimpleCacheFile(cache_file) as cf:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/User1/ccl_chromium_cache.py", line 1047, in __init__
    self._header = SimpleCacheHeader.from_reader(self._reader)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/User1/ccl_chromium_cache.py", line 1030, in from_reader
    raise ValueError(f"Invalid magic (expected {SimpleCacheHeader._SIMPLE_INITIAL_MAGIC}; got {magic}")
ValueError: Invalid magic (expected 18229283882253048880; got 0

Issue occurred after updating Chromium to newly released updates this month (Jan 2026), so suspect its related to that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions