Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

TagFuse/tagnet/tagtlv: unhandled exception - Death #7

Description

@cire831

TIB5: cire831/mm@2049390
TagFuse: danome/TagNet@d0187a1

Running continuous stream against TIB 5:

read p/l:14117340/20
*** 20418 sparsefile, cur/max number of blocks: 2/3, max block size: 583552
DEBUG:fuse.log-mixin:<- read "'\x00 \x00\x15 \x03\x00\x1c \x130\x01\x04\x14\x04\xe2\x07\x15\x05"
DEBUG:fuse.log-mixin:-> read /1fbcd99fd29f/tag/sd/0/dblk/byte (20L, 14117360L, <fuse.fuse_file_info object at 0x75ddaee0>)
read p/l:14117360/20
*** 20419 sparsefile, cur/max number of blocks: 2/3, max block size: 583596
DEBUG:fuse.log-mixin:<- read '\x00\x00\x00\x00\x01\x00\x00\x00\xa0\xa2\x00\x033\x01\x00\x004\xb0\xb3\x00'
DEBUG:fuse.log-mixin:-> read /1fbcd99fd29f/tag/sd/0/dblk/byte (20L, 14117380L, <fuse.fuse_file_info object at 0x75ddae40>)
read p/l:14117380/20
*** 20420 sparsefile, cur/max number of blocks: 2/3, max block size: 583616
DEBUG:fuse.log-mixin:<- read '(\x00 \x00\x16 \x03\x00> \x130\x01\x04\x14\x04\xe2\x07\xd5\x05'
DEBUG:fuse.log-mixin:-> read /1fbcd99fd29f/tag/sd/0/dblk/byte (20L, 14117400L, <fuse.fuse_file_info object at 0x75ddaee0>)
read p/l:14117400/20
*** 20421 sparsefile, cur/max number of blocks: 2/3, max block size: 583636
DEBUG:fuse.log-mixin:<- read '\x00\x00\x00\x00\x01\x00\x00\x00\xa0\xa2\x00\x04A\xc0\x00\x00\x01\x01\xb0\xb3'
DEBUG:fuse.log-mixin:-> read /1fbcd99fd29f/tag/sd/0/dblk/byte (20L, 14117420L, <fuse.fuse_file_info object at 0x75ddae40>)
read p/l:14117420/20
*** 20422 sparsefile, cur/max number of blocks: 2/3, max block size: 583656
DEBUG:fuse.log-mixin:<- read '\x7f\x00 \x00\x17 \x03\x00X\x1b\x140\x01\x04\x14\x04\xe2\x07\xc1\x13'
DEBUG:fuse.log-mixin:-> read /1fbcd99fd29f/tag/sd/0/dblk/byte (108L, 14117440L, <fuse.fuse_file_info object at 0x75ddaee0>)
DEBUG:fuse.log-mixin:<- read '[Unhandled Exception]'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 495, in _wrapper
    return func(*args, **kwargs) or 0
  File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 583, in read
    offset, fh)
  File "/usr/local/lib/python2.7/dist-packages/fuse.py", line 972, in __call__
    ret = getattr(self, op)(path, *args)
  File "tagfuse/tagfuse.py", line 188, in read
    return (str(handler.read(path_list, size, offset)))
  File "tagfuse/taghandlers.py", line 322, in read
    size, offset)
  File "tagfuse/radiofile.py", line 63, in file_get_bytes
    err, payload = msg_exchange(radio, req_msg)
  File "tagfuse/radioutils.py", line 200, in msg_exchange
    rsp = TagMessage(bytearray(rsp_buf))
  File "/home/pi/tag/Tagnet/tagfuse/../tagnet/tagnet/tagmessages.py", line 88, in __init__
    self.parse(args[0])
  File "/home/pi/tag/Tagnet/tagfuse/../tagnet/tagnet/tagmessages.py", line 175, in parse
    self.name = TagName(v[hdr_size:self.header.name_length+hdr_size])
  File "/home/pi/tag/Tagnet/tagfuse/../tagnet/tagnet/tagnames.py", line 23, in __init__
    super(TagName,self).__init__(*args, **kwargs)
  File "/home/pi/tag/Tagnet/tagfuse/../tagnet/tagnet/tagtlv.py", line 176, in __init__
    self.parse(args[0])
  File "/home/pi/tag/Tagnet/tagfuse/../tagnet/tagnet/tagtlv.py", line 224, in parse
    y = fb[x+1] + 2
IndexError: bytearray index out of range
DEBUG:fuse.log-mixin:-> flush /1fbcd99fd29f/tag/sd/0/dblk/byte (<fuse.fuse_file_info object at 0x75ddae90>,)
*** sparse IO flush [u'<node_id:1fbcd99fd29f>', u'tag', u'sd', u'0', u'dblk', u'byte']
DEBUG:fuse.log-mixin:<- flush 0
DEBUG:fuse.log-mixin:-> release /1fbcd99fd29f/tag/sd/0/dblk/byte (<fuse.fuse_file_info object at 0x75ddae90>,)
** tag release
DEBUG:fuse.log-mixin:<- release 0

On the TIB side:

--- @14117340 204821 806559772   39    32  GPS_RAW -- MID:  51/1   (33) <rx> unk_51
--- @14117380 204822 806559806   40    32  GPS_RAW -- MID:  65/192 (41) <rx> gpio
*** TF.read: unhandled OSError exception <type 'exceptions.OSError'>
Traceback (most recent call last):
  File "/usr/local/bin/tagdump", line 11, in <module>
    load_entry_point('tagdump==0.3.0.dev3', 'console_scripts', 'tagdump')()
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.3.0.dev3-py2.7.egg/tagdump/__main__.py", line 10, in main
    dump(parseargs())
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.3.0.dev3-py2.7.egg/tagdump/tagdump.py", line 547, in dump
    rec_offset, hdr, rec_buf = get_record(infile)
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.3.0.dev3-py2.7.egg/tagdump/tagdump.py", line 413, in get_record
    rec_buf.extend(bytearray(fd.read(dlen)))
  File "/usr/local/lib/python2.7/dist-packages/tagdump-0.3.0.dev3-py2.7.egg/tagdump/tagfile.py", line 57, in read
    new = os.read(self.fileno, cnt - len(buf))
OSError: [Errno 14] Bad address

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions