bakercp / ofxTwitter

Streaming and REST Twitter Clients supporting API v1.1 for openFrameworks.
MIT License
16 stars 6 forks source link

Crash when running example_rest_basic_status_update (EXE BAD ACCESS) #5

Closed thinium closed 8 years ago

thinium commented 8 years ago

I was unable to run the example project due to a crash when sending the POST request. I've attached a screen shot and the call stack. I ran in on Mac OS 10.11. I've also set up a twitter app and the credential data in the json file. Any suggestions to fix this would be very appreciated!

screen shot 2016-05-08 at 15 01 36
#0  0x000000010039a9a6 in std::__1::__tree_node_base<void*>*& std::__1::__tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::__find_equal<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >(std::__1::__tree_node_base<void*>*&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#1  0x000000010036a370 in std::__1::__tree<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::less<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > >::__insert_unique(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#2  0x00000001000b5dd8 in Poco::Net::X509Certificate::verify(Poco::Crypto::X509Certificate const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#3  0x00000001000af06a in Poco::Net::SecureSocketImpl::verifyPeerCertificateImpl(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#4  0x00000001000aef45 in Poco::Net::SecureSocketImpl::verifyPeerCertificate(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) ()
#5  0x00000001000ae947 in Poco::Net::SecureSocketImpl::verifyPeerCertificate() ()
#6  0x00000001000adea7 in Poco::Net::SecureSocketImpl::connectSSL(bool) ()
#7  0x00000001000ae184 in Poco::Net::SecureSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&, bool) ()
#8  0x00000001000b000d in Poco::Net::SecureStreamSocketImpl::connect(Poco::Net::SocketAddress const&, Poco::Timespan const&) ()
#9  0x00000001000a276a in Poco::Net::HTTPSession::connect(Poco::Net::SocketAddress const&) ()
#10 0x00000001000aa5bc in Poco::Net::HTTPSClientSession::connect(Poco::Net::SocketAddress const&) ()
#11 0x00000001000963db in Poco::Net::HTTPClientSession::reconnect() ()
#12 0x0000000100095b08 in Poco::Net::HTTPClientSession::sendRequest(Poco::Net::HTTPRequest&) ()
#13 0x0000000100008f4a in ofx::HTTP::BaseClient::_send(ofx::HTTP::BaseRequest&, ofx::HTTP::Context&) at /Users/mfl/Documents/OpenFrameworks/addons/ofxHTTP/libs/ofxHTTP/src/BaseClient.cpp:296
#14 0x00000001000089df in ofx::HTTP::BaseClient::execute(ofx::HTTP::BaseRequest&, ofx::HTTP::BaseResponse&, ofx::HTTP::Context&) at /Users/mfl/Documents/OpenFrameworks/addons/ofxHTTP/libs/ofxHTTP/src/BaseClient.cpp:72
#15 0x0000000100062956 in std::__1::unique_ptr<ofx::Twitter::MediaUploadResponse, std::__1::default_delete<ofx::Twitter::MediaUploadResponse> > ofx::HTTP::BaseClient::executeBuffered<ofx::Twitter::MediaUploadRequest, ofx::Twitter::MediaUploadResponse>(std::__1::unique_ptr<ofx::Twitter::MediaUploadRequest, std::__1::default_delete<ofx::Twitter::MediaUploadRequest> >) at /Users/mfl/Documents/OpenFrameworks/addons/ofxTwitter/example_rest_basic_status_update/../../../addons/ofxHTTP/libs/ofxHTTP/include/ofx/HTTP/BaseClient.h:92
#16 0x00000001000612a5 in ofx::Twitter::RESTClient::uploadMedia(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) at /Users/mfl/Documents/OpenFrameworks/addons/ofxTwitter/libs/ofxTwitter/src/RESTClient.cpp:65
#17 0x0000000100061714 in ofx::Twitter::RESTClient::updateStatus(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) at /Users/mfl/Documents/OpenFrameworks/addons/ofxTwitter/libs/ofxTwitter/src/RESTClient.cpp:89
bakercp commented 8 years ago

Hey, can you include the code you're using (any modifications to the examples) and the version of openFrameworks?

thinium commented 8 years ago

Hi, I didn't change anything of the example. The version of openframework is 0.9.0. I'll update my openframework and test again!

On Sun, May 8, 2016 at 3:48 PM, Christopher Baker notifications@github.com wrote:

Hey, can you include the code you're using (any modifications to the examples) and the version of openFrameworks?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/SAIC/ofxTwitter/issues/5#issuecomment-217719684

thinium commented 8 years ago

It works with 0.9.2, sorry for the noise! I'll close the issue now :)

bakercp commented 8 years ago

Cool. There were issues with 090.

On Sun, May 8, 2016, 10:58 AM mfl notifications@github.com wrote:

Closed #5 https://github.com/SAIC/ofxTwitter/issues/5.

— You are receiving this because you commented.

Reply to this email directly or view it on GitHub https://github.com/SAIC/ofxTwitter/issues/5#event-653741001