ricklupton / rmscene

Read v6 .rm files from the reMarkable tablet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extracting longer works with the v3.2.3.1595 release

philipsd6 opened this issue · comments

I'm not sure it's helpful to get bug reports from the bleeding edge release, but just in case:

poetry run python -m rmscene print-blocks \
    ~/backup/remarkable/latest/files/7de2ff35-356b-425e-bba1-5b1e0b5a7f94/809e181d-8974-461c-a824-da0ec4fb0713.rm

AuthorIdsBlock(author_uuids={1: UUID('624b4da6-5190-505d-ac2a-947f7e7505cf')})

MigrationInfoBlock(migration_id=CrdtId(1, 1), is_device=True)
Block starting at 84, length 7, only read 5
Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/philipsd6/devel/remarkable/rmscene/src/rmscene/__main__.py", line 62, in <module>
    args.func(args)
  File "/home/philipsd6/devel/remarkable/rmscene/src/rmscene/__main__.py", line 35, in pprint_file
    for el in result:
  File "/home/philipsd6/devel/remarkable/rmscene/src/rmscene/scene_stream.py", line 738, in read_blocks
    yield from _read_blocks(stream)
  File "/home/philipsd6/devel/remarkable/rmscene/src/rmscene/scene_stream.py", line 723, in _read_blocks
    yield block_type.from_stream(stream)
  File "/home/philipsd6/devel/remarkable/rmscene/src/rmscene/scene_stream.py", line 99, in from_stream
    migration_id = stream.read_id(1)
  File "/home/philipsd6/devel/remarkable/rmscene/src/rmscene/tagged_block_reader.py", line 56, in read_id
    self.data.read_tag(index, TagType.ID)
  File "/home/philipsd6/devel/remarkable/rmscene/src/rmscene/tagged_block_common.py", line 93, in read_tag
    raise UnexpectedBlockError(
rmscene.tagged_block_common.UnexpectedBlockError: Expected index 1, got 0, at position 97

Can replicate in 3.2.2.1581 (latest stable on rM2)

@philipsd6 thanks for the report, the error should be fixed now I think as in #6