cclgroupltd / ccl-ssns

Automatically exported from code.google.com/p/ccl-ssns
43 stars 13 forks source link

Should this project still work? Error reading record begining at data offset XX #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 9 years ago
$ chrome_tabs Current\ Tabs moo.html
Processing begins...
Error reading record begining at data offset 27.
Error caused by: unpack requires a bytes object of length 4.
Traceback follows for debugging:

---------------EXCEPTION BEGINS---------------
Traceback (most recent call last):
  File "/Users/david/bin/chrome_tabs", line 544, in load_iter
    command = read_command(f)
  File "/Users/david/bin/chrome_tabs", line 480, in read_command
    return read_tab_restore_command(command_buffer, command_id)
  File "/Users/david/bin/chrome_tabs", line 520, in read_tab_restore_command
    state = WebHistoryItem.from_bytes(state_blob[4:]) # first 32bits is the internal pickle size. We dont' need it.
  File "/Users/david/bin/chrome_tabs", line 225, in from_bytes
    return cls.from_stream(f)
  File "/Users/david/bin/chrome_tabs", line 276, in from_stream
    doc_state_count, = struct.unpack("<i", f.read(4))
struct.error: unpack requires a bytes object of length 4
----------------EXCEPTION ENDS----------------

NB: No further records will be read.
Processing finished.

$ chrome_tabs Last\ Session moo.html
Processing begins...
Error reading record begining at data offset 57.
Error caused by: unpack requires a bytes object of length 4.
Traceback follows for debugging:

---------------EXCEPTION BEGINS---------------
Traceback (most recent call last):
  File "/Users/david/bin/chrome_tabs", line 544, in load_iter
    command = read_command(f)
  File "/Users/david/bin/chrome_tabs", line 480, in read_command
    return read_tab_restore_command(command_buffer, command_id)
  File "/Users/david/bin/chrome_tabs", line 520, in read_tab_restore_command
    state = WebHistoryItem.from_bytes(state_blob[4:]) # first 32bits is the internal pickle size. We dont' need it.
  File "/Users/david/bin/chrome_tabs", line 225, in from_bytes
    return cls.from_stream(f)
  File "/Users/david/bin/chrome_tabs", line 276, in from_stream
    doc_state_count, = struct.unpack("<i", f.read(4))
struct.error: unpack requires a bytes object of length 4
----------------EXCEPTION ENDS----------------

NB: No further records will be read.
Processing finished.

What version of the product are you using? On what operating system?
OSX 10.9.5

Please provide any additional information below.

Original issue reported on code.google.com by david.kr...@gmail.com on 6 Feb 2015 at 4:38

GoogleCodeExporter commented 9 years ago
Hi,

Honestly I think the code needs rewriting for more recent versions of 
Chrome/Chromium. The structure hasn't changed completely, but there are, 
nevertheless, major, breaking changes. Also the Chromium codebase has been 
re-organised a fair bit, so I will have to track down the code that's 
responsible for the files now.

Unfortunately I can't commit any time imminently to a rewrite with other more 
pressing projects on the go. I do intend to at some point, I just can't say 
when).

Original comment by i...@ccl-forensics.com on 6 Feb 2015 at 4:45

GoogleCodeExporter commented 9 years ago
OK, good to know.. it would be great if you put some notice for others though.

Do you have some link with new SSNS structure? Maybe I can try to parse it 
either in python (update your code) or in Ruby

Original comment by david.kr...@gmail.com on 6 Feb 2015 at 4:56

GoogleCodeExporter commented 9 years ago
I don't have a link - there's a link in the project front page to the blog 
where I first looked at it, but as I say, I don't know where Google have moved 
some of the pertinent code in the (massive) Chromium codebase, so you'd have to 
go searching for it.

Original comment by i...@ccl-forensics.com on 6 Feb 2015 at 5:02

cclgroupltd commented 8 years ago

Old version was acknowledged to be broken on newer versions of Chrome. New version should work with these files.