Ticket #321 (closed defect: invalid)

Opened 5 months ago

Last modified 3 months ago

ReferenceError for Shared Object file

Reported by: thijs Owned by: nick
Priority: major Milestone: 0.4
Component: Shared Object Version: 0.3.1
Keywords: Cc:

Description

When you run the attached script:

from pyamf import sol

path = 'KLMTOF_History.sol'
lso = sol.load(path)

print lso 

On the attached .sol file, it throws this error:

Traceback (most recent call last):
  File "test-321.py", line 4, in <module>
    lso = sol.load(path)
  File "/pyamf/trunk/pyamf/sol.py", line 163, in load
    name, values = decode(f.read())
  File "/pyamf/trunk/pyamf/sol.py", line 83, in decode
    value = decoder.readElement()
  File "/pyamf/trunk/pyamf/__init__.py", line 486, in readElement
    return func()
  File "/pyamf/trunk/pyamf/amf0.py", line 382, in readObject
    self._readObject(obj)
  File "/pyamf/trunk/pyamf/amf0.py", line 345, in _readObject
    obj_attrs[key] = self.readElement()
  File "/pyamf/trunk/pyamf/__init__.py", line 486, in readElement
    return func()
  File "/pyamf/trunk/pyamf/amf0.py", line 392, in readReference
    return self.context.getObject(idx)
  File "/pyamf/trunk/pyamf/__init__.py", line 146, in getObject
    raise ReferenceError
pyamf.ReferenceError

Attachments

KLMTOF_History.sol (171 bytes) - added by thijs 5 months ago.
file that gives the error
test-321.py (84 bytes) - added by thijs 5 months ago.
test app

Change History

Changed 5 months ago by thijs

file that gives the error

Changed 5 months ago by thijs

test app

Changed 3 months ago by nick

  • status changed from new to assigned
  • owner changed from nick to thijs
  • milestone changed from 0.5 to 0.4

Is it possible to see what the object should contain? It would make it easier in finding this bug.

Changed 3 months ago by thijs

  • owner changed from thijs to nick

I doubt it, tried with Charles but dont think it supports sol:

00000000  00 bf 00 00 00 a5 54 43 53 4f 00 04 00 00 00 00         TCSO      
00000010  00 0e 4b 4c 4d 54 4f 46 5f 48 69 73 74 6f 72 79     KLMTOF_History
00000020  00 00 00 00 00 0d 6d 44 65 73 74 69 6e 61 74 69         mDestinati
00000030  6f 6e 73 08 00 00 00 03 00 01 30 02 00 03 4d 49   ons       0   MI
00000040  41 00 01 31 06 00 01 32 06 00 00 09 00 00 0a 74   A  1   2       t
00000050  61 62 45 6e 61 62 6c 65 64 01 00 00 00 0a 5f 66   abEnabled     _f
00000060  6f 63 75 73 72 65 63 74 01 00 00 00 03 6d 4d 63   ocusrect     mMc
00000070  03 00 03 6d 4d 63 07 00 02 00 0a 5f 66 6f 63 75      mMc     _focu
00000080  73 72 65 63 74 01 00 00 0a 74 61 62 45 6e 61 62   srect    tabEnab
00000090  6c 65 64 01 00 00 0d 6d 44 65 73 74 69 6e 61 74   led    mDestinat
000000a0  69 6f 6e 73 07 00 01 00 00 09 00                  ions            

This script returned:

Unexpected Data Type: 0x7

Changed 3 months ago by nick

  • status changed from assigned to closed
  • resolution set to invalid

Marking this as invalid as all the tools I used could not read the sol ..

Note: See TracTickets for help on using tickets.