second file transfer crashed messenger (#140)
Closed
wojciech.kapcia@tigase.net opened 1 decade ago

(triggered by accident)

  • start one file transfer

  • DO NOT accept nor reject it on the receiver account

  • try to start second transfer

05-17 18:22:40.039: V/FileTransfer(30490): activation for wojtek@tigase.im/Psi+ succeeded
05-17 18:22:48.195: V/tigase(30490): share selected for = wojtek@tigase.im/Psi+
05-17 18:22:51.656: E/AndroidRuntime(30490): java.lang.RuntimeException: Unable to resume activity {org.tigase.messenger.phone.pro/org.tigase.mobile.TigaseMobileMessengerActivity}: android.database.StaleDataException: Attempted to access a cursor after it has been closed.
05-17 18:22:51.664: W/ActivityManager(198):   Force finishing activity org.tigase.messenger.phone.pro/org.tigase.mobile.TigaseMobileMessengerActivity
05-17 18:22:51.679: I/System.out(30490): S: <iq id="Tv32t" type="set" to="wojtek@tigase.im/Psi+"><si xmlns="http://jabber.org/protocol/si" id="435fc620-5f4f-4cd7-8630-fe13bd4ab62a" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="363660" name="IMG_20120517_175149-1.jpg"/><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>
05-17 18:22:51.687: W/System.err(30490): May 17, 2012 6:22:51 PM tigase.jaxmpp.j2se.connectors.socket.SocketConnector send
05-17 18:22:51.687: W/System.err(30490): FINEST: Send: <iq id="Tv32t" type="set" to="wojtek@tigase.im/Psi+"><si xmlns="http://jabber.org/protocol/si" id="435fc620-5f4f-4cd7-8630-fe13bd4ab62a" profile="http://jabber.org/protocol/si/profile/file-transfer"><file xmlns="http://jabber.org/protocol/si/profile/file-transfer" size="363660" name="IMG_20120517_175149-1.jpg"/><feature xmlns="http://jabber.org/protocol/feature-neg"><x xmlns="jabber:x:data" type="form"><field type="list-single" var="stream-method"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>

Andrzej Wójcik (Tigase) commented 1 decade ago

Fixed by removing cursor.close() call for cursor returned by managedQuery method in AndroidFileTransferUtility class.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
650
Issue Votes (0)
Watchers (0)
Reference
tigase/_clients/stork#140
Please wait...
Page is in error, reload to recover