lukeweber / webrtc-jingle-client

Webrtc audio + jingle protocol brought to IOS and Android.
https://groups.google.com/forum/?fromgroups#!forum/webrtc-jingle
BSD 3-Clause "New" or "Revised" License
334 stars 137 forks source link

XMPP login crash on iOS ARM build #103

Open noscript opened 11 years ago

noscript commented 11 years ago

Hi,

Tested several times, this is specific to ARM build only, i.e. running on real hardware (iPad2). Crashes when I press Login.

initlogging in2013-07-09 16:54:57.313 voiceclient[14013:907] CREATE VOICE CLIENT DELEGATAE
initingVoiceClient::VoiceClient - new ClientSignalingThread client_signaling_thread_@(0x494c4320)
ClientSignalingThread::ClientSignalingThread
VoiceClient::Login
LOGT [stun=(stun.l.google.com:19302),turn=()]
ClientSignalingThread::Login
ClientSignalingThread::OnMessage: MSG_LOGIN
ClientSignalingThread::LoginS
TXmppPump::TXmppPump
TXmppPump::DoLogin
TXmppPump::DoLogin - logging onClientSignalingThread::OnMessage: MSG_XMPP_STATE

XMPP ENGINE CREATEDClientSignalingThread::OnMessage: MSG_XMPP_STATE
ClientSignalingThread::OnXmppSocketClose: with state=4
TXmppPump::DoDisconnect
ClientSignalingThread::OnMessage: MSG_XMPP_SOCKET_CLOSE
(lldb)

No problem with i386 build in Simulator.

lukeweber commented 11 years ago

In the build command, did you specifically target arm? I don't have any iOS devices to test with.

./build/gyp_chromium --depth=. -DOS=ios -Dinclude_tests=0 -Denable_protobuf=0 -Denable_video=0 -Dtarget_arch=arm webrtcjingle.gyp

lukeweber commented 11 years ago

As well, just an aside, I do get a crash there when my credentials aren't any good also on the emulator.

noscript commented 11 years ago

In Simulator it succeeds to log in. I add -Dtarget_arch=arm, so the complete command is

./build/gyp_chromium --depth=. -DOS=ios -Dinclude_tests=0 -Denable_protobuf=0 -Denable_video=0 -DTARGET_OS_IPHONE -Dtarget_arch=arm webrtcjingle.gyp