View Single Post
Old 12-04-2006, 08:27 PM   #58
seamusfp
Enthusiast
seamusfp has a complete set of Star Wars action figures.seamusfp has a complete set of Star Wars action figures.seamusfp has a complete set of Star Wars action figures.seamusfp has a complete set of Star Wars action figures.seamusfp has a complete set of Star Wars action figures.
 
Posts: 43
Karma: 432
Join Date: Nov 2006
Location: Connecticut
Device: Sony PRS-500
I tried, new messages, but they seem to be related. still in the establish connection section.

Quote:
File "/Users/seamus/prs-500/trunk/libprs500/gui/main.py", line 715, in establish_connection
Python(393,0xa000cfc0) malloc: *** error for object 0x31bb1a0: incorrect checksum for freed object - object was probably modified after being freed, break at szone_error to debug
Python(393,0xa000cfc0) malloc: *** set a breakpoint in szone_error to debug
space = self.dev.available_space()
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 157, in run_session
if not dev.handle: dev.open()
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 226, in open
version = self._bulk_read(24, data_type=USBProtocolVersion)[0].version
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 320, in _bulk_read
packet = bulk_read_packet(data_type=data_type, size=packet_size)
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 312, in bulk_read_packet
data = data_type(self.handle.bulkRead(PRS500Device.PRS500 _BULK_IN_EP, size))
File "/Users/seamus/prs-500/trunk/libprs500/prstypes.py", line 625, in __init__
raise PacketError(str(self.__class__)[7:-2] + " packets must have a length of atleast 16 bytes")
PacketError: 'libprs500.prstypes.USBProtocolVersion packets must have a length of atleast 16 bytes
Unable to connect to device. Please try unplugging and reconnecting it
Unable to connect to device. Please try unplugging and reconnecting it
I did a little searching to see what's up, it looks like malloc in OSX is sort of broken,

Quote:
The implementation of realloc on Darwin never frees memory, so when using a
large buffer size on incomplete reads you end up with lots of small strings that
actually take up a large allocation.
I haven't found a workaround yet...

Edit: I found someone who was getting the malloc errors in some other program and traced it to adding/removing whitespace I removed lines and that eliminated the malloc portion of the error, but the rest remains a la

Quote:
File "/Users/seamus/prs-500/trunk/libprs500/gui/main.py", line 689, in establish_connection
space = self.dev.available_space()
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 157, in run_session
if not dev.handle: dev.open()
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 226, in open
version = self._bulk_read(24, data_type=USBProtocolVersion)[0].version
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 320, in _bulk_read
packet = bulk_read_packet(data_type=data_type, size=packet_size)
File "/Users/seamus/prs-500/trunk/libprs500/communicate.py", line 312, in bulk_read_packet
data = data_type(self.handle.bulkRead(PRS500Device.PRS500 _BULK_IN_EP, size))
File "/Users/seamus/prs-500/trunk/libprs500/prstypes.py", line 625, in __init__
raise PacketError(str(self.__class__)[7:-2] + " packets must have a length of atleast 16 bytes")
PacketError: 'libprs500.prstypes.USBProtocolVersion packets must have a length of atleast 16 bytes
Unable to connect to device. Please try unplugging and reconnecting it
Unable to connect to device. Please try unplugging and reconnecting it

Last edited by seamusfp; 12-04-2006 at 08:45 PM.
seamusfp is offline   Reply With Quote