tedr56 / oscpack

Automatically exported from code.google.com/p/oscpack
Other
0 stars 0 forks source link

EXC_BAD_ACCESS in OscOutboundPacketStream.cpp #8

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a new Command line Tool project on XCode 4.7
2. Compile the oscpack library (ip and osc folders)
3. Run the SimpleSend.cpp program

What is the expected output? What do you see instead?
It should send an osc message to SimpleReceive.cpp (on another command line 
project). Build works well but when i do Run, there is a crash in 
OscOutboundPacketStream.cpp at line 191-192:

uint32 *previousElementSizePtr =
                (uint32*)(data_ + *reinterpret_cast<uint32*>(elementSizePtr_));

The problem is: Thread 1: EXC_BAD_ACCESS (code=13, address=0x0)

This crash happens also in OscOutboundPacketStream.cpp at line 324:

EndElement( messageCursor_ );

What version of the product are you using? On what operating system?
I'm using the latest version of oscpack (1.0.2) on Xcode 4.7 on Mac OSX Lion 
10.7.5

Please provide any additional information below.
The compilation of SimpleReceive.cpp works perfectly (Build & Run). No bugs.
Also, address=0x0 means 0 in hex so that should mean that the pointer is NULL 
or something... Thanks for your help.

Original issue reported on code.google.com by antoine....@gmail.com on 15 Feb 2013 at 9:54

GoogleCodeExporter commented 8 years ago
Ok I resolved the issue by changing the scheme: 64 bit doesn't work, 32 bit 
does!

Original comment by antoine....@gmail.com on 18 Feb 2013 at 9:51

GoogleCodeExporter commented 8 years ago
Hi Antoine, This problem should be fixed now. Would be able to please try the 
latest SVN head of oscpack in 64 bit mode?

Here are instructions for doing an SVN checkout:
https://code.google.com/p/oscpack/source/checkout

Thanks,

Ross.

Original comment by ross.bencina on 4 Mar 2013 at 9:40

GoogleCodeExporter commented 8 years ago
Note that I've added SimpleSend and SimpleReceive to the Makefile and they are 
building and running fine here (OSX 10.7, XCode 4.5.1)

Original comment by ross.bencina on 4 Mar 2013 at 10:01

GoogleCodeExporter commented 8 years ago
1.1.0 RC1 is now available from the Downloads page. It should fix this issue.
Closing as fixed. Please reopen if you till have trouble.

Original comment by ross.bencina on 6 Mar 2013 at 8:35

GoogleCodeExporter commented 8 years ago
Thank you very much! It works great in 64 bit mode now.

Original comment by antoine....@gmail.com on 15 Mar 2013 at 9:43