The community forums are in BETA and closed to the public.

Titanium, Android app crashes after resuming from background

Using pubnub.js 3.7.8 with Titanium 3.5.0.GA building for Android, the app crashes after resuming from background with:

[ERROR] JNIUtil: ProxyFactory: failed to find class for ti.modules.titanium.network.HTTPClientProxy
[ERROR] ProxyFactory: No proxy info found for class.
[INFO]  libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 3397 (KrollRuntimeThr)

If I switch to TCP from HTTP, I get

[ERROR] JNIUtil: ProxyFactory: failed to find class for ti.modules.titanium.BufferProxy
[ERROR] ProxyFactory: No proxy info found for class.
[ERROR] JNIUtil: ProxyFactory: failed to find class for ti.modules.titanium.BufferProxy
[ERROR] ProxyFactory: No proxy info found for class.
[ERROR] JNIUtil: ProxyFactory: failed to find class for ti.modules.titanium.network.socket.TCPProxy
[ERROR] ProxyFactory: No proxy info found for class.
[INFO]  libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 7986 (KrollRuntimeThr)

The app instantiates the library like this:

Alloy.Globals.Websocket = require('/lib/pubnub')({
    publish_key: Alloy.CFG.PUBNUB.publish_key,
    subscribe_key: Alloy.CFG.PUBNUB.subscribe_key,
    ssl: Alloy.CFG.PUBNUB.ssl,
    origin: Alloy.CFG.PUBNUB.origin
});

I've tried reinitializing by using an activity.onResume() function that reset that. I've also tried putting that require() block inline wherever the object was being referenced. Neither change had any effect.

Any suggestions?

Tim, please send this to support@pubnub.com so our engineers can get involved.

Thanks Craig. Email sent.


Comments to this discussion are now closed!