stephanenicolas / robospice

Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k stars 545 forks source link

Request dropped immediately #439

Open dilloncc opened 8 years ago

dilloncc commented 8 years ago

I am having a very strange issue, but am only able to reproduce this on one device so far. This is the device I am seeing the issue on: http://www.samsung.com/us/support/owners/product/SM-G530TZAATMB. It is running Android 5.1.1. I am using the retrofit module and the request gets started just fine however it never appears to finish. It seems like the SpiceManager gets stopped immediately after executing the request. As you can see in the log, it starts the HTTP POST request and then the SpiceManager is stopped right afterwards. I even tried removing the call so spiceManager.shouldStop() to see if I could force it to keep running, but with no luck. Here are the logs:

10-02 15:19:49.217 29470-29470/? E/Zygote﹕ MountEmulatedStorage() 10-02 15:19:49.217 29470-29470/? E/Zygote﹕ v2 10-02 15:19:49.217 29470-29470/? I/libpersona﹕ KNOX_SDCARD checking this for 10170 10-02 15:19:49.217 29470-29470/? I/libpersona﹕ KNOX_SDCARD not a persona 10-02 15:19:49.217 29470-29470/? I/SELinux﹕ Function: selinux_compare_spd_ram , priority [2] , priority version is VE=SEPF_SM-G530T_5.1.1_0017 10-02 15:19:49.227 29470-29470/? E/SELinux﹕ [DEBUG] get_category: variable seinfo: default sensitivity: NULL, cateogry: NULL 10-02 15:19:49.227 29470-29470/? I/art﹕ Late-enabling -Xcheck:jni 10-02 15:19:49.257 29470-29470/? D/TimaKeyStoreProvider﹕ TimaSignature is unavailable 10-02 15:19:49.257 29470-29470/? D/ActivityThread﹕ Added TimaKeyStore provider 10-02 15:19:49.447 29470-29470/com.app.android.debug I/CrashlyticsCore﹕ Initializing Crashlytics 2.3.4.74 10-02 15:19:49.497 29470-29470/com.app.android.debug D//SpiceManager.java:212﹕ 15:19:49.509 main SpiceManager started. 10-02 15:19:49.507 29470-29470/com.app.android.debug D/BaseProvider﹕ query uri=content://com.app.android.provider/_user selection=_user._id=? selectionArgs=[0] sortOrder=null groupBy=null having=null limit=null 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA page_size" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA foreign_keys" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA journal_mode" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA journal_mode=PERSIST" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA synchronous" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA journal_size_limit" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA journal_size_limit=524288" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA wal_autocheckpoint" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA wal_autocheckpoint=100" 10-02 15:19:49.507 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS android_metadata (locale TEXT)" 10-02 15:19:49.527 29470-29501/com.app.android.debug V//SpiceManager.java:1191﹕ 15:19:49.536 SpiceManagerThread 0 Binding to service. 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "SELECT locale FROM android_metadata UNION SELECT NULL ORDER BY locale DESC LIMIT 1" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "BEGIN" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "DELETE FROM android_metadata" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "INSERT INTO android_metadata (locale) VALUES('en_US')" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "REINDEX LOCALIZED" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "COMMIT" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA user_version;" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "BEGIN EXCLUSIVE;" 10-02 15:19:49.537 29470-29470/com.app.android.debug D/SQLiteHelper﹕ onCreate 10-02 15:19:49.537 29470-29470/com.app.android.debug D/SQLiteHelperCallbacks﹕ onPreCreate 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS email ( _id INTEGER PRIMARY KEY AUTOINCREMENT, uniqueIdentifier TEXT, fromEmailAddress TEXT, fromPersonalString TEXT, folder_id INTEGER, emailemail_account_id INTEGER, from_user_id INTEGER NOT NULL, timeSent INTEGER, contentType TEXT, isRead INTEGER, isFlagged INTEGER, isDeleted INTEGER, is_downloaded INTEGER, has_attachments INTEGER NOT NULL, plainTextMessageFileName TEXT, html_message_filename TEXT, encryptedDataFileName TEXT, toEmailAddress TEXT, subject TEXT, signatureDataFileName TEXT, dataToVerifyFileName TEXT , CONSTRAINT fk_folder_id FOREIGN KEY (folder_id) REFERENCES folder (_id) ON DELETE CASCADE, CONSTRAINT fk_from_user_id FOREIGN KEY (from_user_id) REFERENCES email_user (_id) ON DELETE CASCADE );" 10-02 15:19:49.537 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS email_account ( _id INTEGER PRIMARY KEY AUTOINCREMENT, email_account___email_account_id INTEGER, email_accountemail TEXT NOT NULL, email_accountpersonal_string TEXT, email_accountemail_signature TEXT, email_accountis_primary INTEGER NOT NULL );" 10-02 15:19:49.547 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS email_attachment ( _id INTEGER PRIMARY KEY AUTOINCREMENT, fileName TEXT, email_id INTEGER NOT NULL , CONSTRAINT fk_email_id FOREIGN KEY (email_id) REFERENCES email (_id) ON DELETE CASCADE, CONSTRAINT unique_attachment UNIQUE (fileName, email_id) ON CONFLICT REPLACE );" 10-02 15:19:49.547 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS email_settings ( _id INTEGER PRIMARY KEY AUTOINCREMENT, email_account_id INTEGER, _incoming_id INTEGER, _outgoing_id INTEGER, email_address TEXT, incoming_username TEXT, incoming_password TEXT, incoming_server_type TEXT, incoming_server_host TEXT, incoming_server_port INTEGER, incoming_security_type INTEGER, outgoing_username TEXT, outgoing_password TEXT, outgoing_server_type TEXT, outgoing_server_host TEXT, outgoing_server_port INTEGER, outgoing_security_type INTEGER, is_authenticated INTEGER NOT NULL );" 10-02 15:19:49.547 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS email_user ( _id INTEGER PRIMARY KEY AUTOINCREMENT, email_useremail_address TEXT, email_userpersonal_string TEXT , CONSTRAINT unique_email UNIQUE (email_useremail_address) ON CONFLICT REPLACE );" 10-02 15:19:49.547 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS folder ( _id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL, full_name TEXT, folderemail_account_id INTEGER, parent_id INTEGER, parent_name TEXT, folder_level INTEGER NOT NULL, last_Uid TEXT, type INTEGER );" 10-02 15:19:49.547 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS friendship ( _id INTEGER PRIMARY KEY AUTOINCREMENT, user_id INTEGER NOT NULL, friend_user_id INTEGER NOT NULL, invited_at INTEGER, accepted_at INTEGER, ended_at INTEGER, trust_level INTEGER, blocked_at INTEGER, status INTEGER, num_mutual_contacts INTEGER NOT NULL , CONSTRAINT fk_friend_user_id FOREIGN KEY (friend_user_id) REFERENCES _user (_id) ON DELETE RESTRICT );" 10-02 15:19:49.557 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS pgp_key ( _id INTEGER PRIMARY KEY AUTOINCREMENT, pgpkeyuser_id INTEGER NOT NULL, server_key_id INTEGER, pgp_keyemail TEXT, fingerprint TEXT, content TEXT, key_id INTEGER, key_id_hex TEXT, algorithm TEXT, key_type TEXT, time_to_live INTEGER, uploaded_at INTEGER, exported_at INTEGER, expires_at INTEGER, revoked_at INTEGER, is_active INTEGER, is_synced INTEGER NOT NULL );" 10-02 15:19:49.557 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS recipient_email ( _id INTEGER PRIMARY KEY AUTOINCREMENT, email_user_id INTEGER NOT NULL, email_id INTEGER NOT NULL, recipientType INTEGER NOT NULL , CONSTRAINT fk_email_user_id FOREIGN KEY (email_user_id) REFERENCES email_user (_id) ON DELETE RESTRICT, CONSTRAINT fk_email_id FOREIGN KEY (email_id) REFERENCES email (_id) ON DELETE CASCADE, CONSTRAINT unique_recipient_email_entry UNIQUE (email_id, email_user_id, recipientType) ON CONFLICT REPLACE );" 10-02 15:19:49.557 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS _email_account ( _id INTEGER PRIMARY KEY AUTOINCREMENT, email_user_id INTEGER, _emailaccountuser_id INTEGER NOT NULL , CONSTRAINT fk_email_user_id FOREIGN KEY (email_user_id) REFERENCES email_account (_id) ON DELETE RESTRICT, CONSTRAINT fkuser_id FOREIGN KEY (_emailaccountuser_id) REFERENCES _user (_id) ON DELETE RESTRICT, CONSTRAINT uniqueemail_account_entry UNIQUE (email_user_id, _email_account_user_id) ON CONFLICT REPLACE );" 10-02 15:19:49.557 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS _user ( _id INTEGER PRIMARY KEY AUTOINCREMENT, _id INTEGER, first_name TEXT, last_name TEXT, avatar_file_name TEXT, isuser INTEGER, primary_email_id INTEGER, active_public_key_id INTEGER, fully_trusted_by INTEGER NOT NULL, partially_trusts INTEGER NOT NULL, fully_trusts INTEGER NOT NULL , CONSTRAINT fk_primary_email_id FOREIGN KEY (primary_email_id) REFERENCES email_account (_id) ON DELETE RESTRICT, CONSTRAINT fk_active_public_key_id FOREIGN KEY (active_public_key_id) REFERENCES pgp_key (_id) ON DELETE RESTRICT );" 10-02 15:19:49.557 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "CREATE TABLE IF NOT EXISTS social_media_site ( _id INTEGER PRIMARY KEY AUTOINCREMENT, server_id INTEGER, user_id INTEGER NOT NULL, profile_url TEXT NOT NULL, site_type INTEGER , CONSTRAINT social_media_uniqueid UNIQUE (server_id) ON CONFLICT REPLACE );" 10-02 15:19:49.567 29470-29470/com.app.android.debug D/SQLiteHelperCallbacks﹕ onPostCreate 10-02 15:19:49.567 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA user_version = 1" 10-02 15:19:49.567 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "COMMIT;" 10-02 15:19:49.587 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA foreign_keys" 10-02 15:19:49.587 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "PRAGMA foreign_keys=1" 10-02 15:19:49.587 29470-29470/com.app.android.debug D/SQLiteHelperCallbacks﹕ onOpen 10-02 15:19:49.587 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "SELECT _user._id AS _id, _id, primary_email_id, first_name, last_name, avatar_file_name, isuser, active_public_key_id, fully_trusted_by, fully_trusts, partially_trusts, _useremail_account.email_accountemail, _useremail_account.email_accountpersonal_string, _useremail_account.email_accountemail_signature, _useremail_account.email_accountis_primary, _userpgp_key.pgp_key_user_id, _userpgp_key.server_key_id, _userpgp_key.is_active, _userpgp_key.pgp_keyemail, _userpgp_key.content, _userpgp_key.key_id_hex, _user__pgp_key.key_id, _userpgp_key.key_type, _userpgp_key.algorithm, _userpgp_key.time_to_live, _userpgp_key.fingerprint, _userpgp_key.expires_at, _userpgp_key.revoked_at, _user__pgp_key.uploaded_at, _userpgp_key.exported_at, _userpgp_key.is_synced FROM _user LEFT OUTER JOIN email_account AS _use 10-02 15:19:49.587 29470-29501/com.app.android.debug V//SpiceManager.java:1197﹕ 15:19:49.598 SpiceManagerThread 0 Binding to service succeeded. 10-02 15:19:49.587 29470-29501/com.app.android.debug D//SpiceManager.java:1245﹕ 15:19:49.601 SpiceManagerThread 0 Waiting for service to be bound. 10-02 15:19:49.777 29470-29513/com.app.android.debug I/System.out﹕ (HTTPLog)-Static: isSBSettingEnabled false 10-02 15:19:49.777 29470-29513/com.app.android.debug I/System.out﹕ (HTTPLog)-Static: isShipBuild true 10-02 15:19:49.777 29470-29513/com.app.android.debug I/System.out﹕ (HTTPLog)-Thread-6563-59246300: SmartBonding Enabling is false, SHIP_BUILD is true, log to file is false, DBG is false 10-02 15:19:49.777 29470-29513/com.app.android.debug I/System.out﹕ (HTTPLog)-Thread-6563-59246300: SMARTBONDING_FEATURE_ENABLED is false 10-02 15:19:49.777 29470-29513/com.app.android.debug I/System.out﹕ (HTTPLog)-Static: isSBSettingEnabled false 10-02 15:19:49.777 29470-29470/com.app.android.debug D/SecWifiDisplayUtil﹕ Metadata value : SecSettings2 10-02 15:19:49.807 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB installDecor mIsFloating : false 10-02 15:19:49.807 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB installDecor flags : -2139029248 10-02 15:19:49.847 29470-29470/com.app.android.debug D/BaseProvider﹕ query uri=content://com.app.android.provider/_user selection=_user._id=? selectionArgs=[0] sortOrder=null groupBy=null having=null limit=null 10-02 15:19:49.847 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "SELECT _user._id AS _id, _id, primary_email_id, first_name, last_name, avatar_file_name, isuser, active_public_key_id, fully_trusted_by, fully_trusts, partially_trusts, _useremail_account.email_account__email, _useremail_account.email_accountpersonal_string, _useremail_account.email_accountemail_signature, _useremail_account.email_accountis_primary, _userpgp_key.pgp_key_user_id, _userpgp_key.server_key_id, _userpgp_key.is_active, _userpgp_key.pgp_keyemail, _userpgp_key.content, _userpgp_key.key_id_hex, _user__pgp_key.key_id, _userpgp_key.key_type, _userpgp_key.algorithm, _userpgp_key.time_to_live, _userpgp_key.fingerprint, _userpgp_key.expires_at, _userpgp_key.revoked_at, _user__pgp_key.uploaded_at, _userpgp_key.exported_at, _userpgp_key.is_synced FROM _user LEFT OUTER JOIN email_account AS _use 10-02 15:19:49.847 29470-29470/com.app.android.debug D/BaseProvider﹕ query uri=content://com.app.android.provider/_user selection=_user._id=? selectionArgs=[0] sortOrder=null groupBy=null having=null limit=null 10-02 15:19:49.847 29470-29470/com.app.android.debug V/SQLiteStatements﹕ /data/data/com.app.android.debug/databases/app.db: "SELECT _user._id AS _id, _id, primary_email_id, first_name, last_name, avatar_file_name, isuser, active_public_key_id, fully_trusted_by, fully_trusts, partially_trusts, _useremail_account.email_accountemail, _useremail_account.email_accountpersonal_string, _useremail_account.email_accountemail_signature, _useremail_account.email_accountis_primary, _userpgp_key.pgp_key_user_id, _userpgp_key.server_key_id, _user__pgp_key.is_active, _userpgp_key.pgp_keyemail, _userpgp_key.content, _userpgp_key.key_id_hex, _user__pgp_key.key_id, _userpgp_key.key_type, _userpgp_key.algorithm, _userpgp_key.time_to_live, _userpgp_key.fingerprint, _userpgp_key.expires_at, _userpgp_key.revoked_at, _user__pgp_key.uploaded_at, _userpgp_key.exported_at, _userpgp_key.is_synced FROM _user LEFT OUTER JOIN email_account AS _use 10-02 15:19:49.937 29470-29488/com.app.android.debug I/System.out﹕ (HTTPLog)-Static: isSBSettingEnabled false 10-02 15:19:49.957 29470-29513/com.app.android.debug I/System.out﹕ KnoxVpnUidStorageknoxVpnSupported API value returned is false 10-02 15:19:49.977 29470-29470/com.app.android.debug D//SpiceManager.java:212﹕ 15:19:49.987 main SpiceManager started. 10-02 15:19:49.987 29470-29543/com.app.android.debug V//SpiceManager.java:1191﹕ 15:19:50.000 SpiceManagerThread 0 Binding to service. 10-02 15:19:49.997 29470-29545/com.app.android.debug D/OpenGLRenderer﹕ Use EGL_SWAP_BEHAVIOR_PRESERVED: true 10-02 15:19:50.007 29470-29543/com.app.android.debug V//SpiceManager.java:1197﹕ 15:19:50.014 SpiceManagerThread 0 Binding to service succeeded. 10-02 15:19:50.007 29470-29543/com.app.android.debug D//SpiceManager.java:1245﹕ 15:19:50.015 SpiceManagerThread 0 Waiting for service to be bound. 10-02 15:19:50.027 29470-29470/com.app.android.debug D//SpiceService.java:134﹕ 15:19:50.034 main SpiceService instance created. 10-02 15:19:50.087 29470-29470/com.app.android.debug V//SpiceService.java:506﹕ 15:19:50.096 main Pending requests : 0 10-02 15:19:50.087 29470-29470/com.app.android.debug V//SpiceService.java:508﹕ 15:19:50.097 main Stop foreground 10-02 15:19:50.087 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB isFloatingMenuEnabled mFloatingMenuBtn : null 10-02 15:19:50.087 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB isFloatingMenuEnabled return false 10-02 15:19:50.137 29470-29470/com.app.android.debug D/SRIB_DCS﹕ log_dcs ThreadedRenderer::initialize entered! 10-02 15:19:50.137 29470-29545/com.app.android.debug I/Adreno-EGL﹕ : EGL 1.4 QUALCOMM build: AU_LINUX_ANDROID_LA.BR.1.1.3_RB1.05.01.00.032.018_msm8916_32_refs/tags/AU_LINUX_ANDROID_LA.BR.1.1.3_RB1.05.01.00.032.018release_AU (I856e09677e) OpenGL ES Shader Compiler Version: E031.25.03.04 Build Date: 05/03/15 Sun Local Branch: Remote Branch: refs/tags/AU_LINUX_ANDROID_LA.BR.1.1.3_RB1.05.01.00.032.018 Local Patches: NONE Reconstruct Branch: NOTHING 10-02 15:19:50.147 29470-29545/com.app.android.debug I/OpenGLRenderer﹕ Initialized EGL, version 1.4 10-02 15:19:50.167 29470-29545/com.app.android.debug D/OpenGLRenderer﹕ Get maximum texture size. GL_MAX_TEXTURE_SIZE is 4096 10-02 15:19:50.167 29470-29545/com.app.android.debug D/OpenGLRenderer﹕ Enabling debug mode 0 10-02 15:19:50.187 29470-29470/com.app.android.debug D//SpiceServiceListenerNotifier.java:33﹕ 15:19:50.200 main Message Queue starting 10-02 15:19:50.187 29470-29470/com.app.android.debug D//SpiceManager.java:1088﹕ 15:19:50.201 main Bound to service : RetrofitSpiceService 10-02 15:19:50.187 29470-29470/com.app.android.debug D//SpiceManager.java:1088﹕ 15:19:50.202 main Bound to service : RetrofitSpiceService 10-02 15:19:50.207 29470-29543/com.app.android.debug D//SpiceManager.java:1252﹕ 15:19:50.212 SpiceManagerThread 0 Bound ok. 10-02 15:19:50.207 29470-29501/com.app.android.debug D//SpiceManager.java:1252﹕ 15:19:50.217 SpiceManagerThread 0 Bound ok. 10-02 15:19:50.277 29470-29470/com.app.android.debug I/Timeline﹕ Timeline: Activity_idle id: android.os.BinderProxy@1355ba58 time:75003483 10-02 15:19:50.377 29470-29488/com.app.android.debug I/System.out﹕ KnoxVpnUidStorageknoxVpnSupported API value returned is false 10-02 15:19:50.717 29470-29488/com.app.android.debug I/System.out﹕ (HTTPLog)-Static: isSBSettingEnabled false 10-02 15:19:50.877 29470-29488/com.app.android.debug I/System.out﹕ KnoxVpnUidStorageknoxVpnSupported API value returned is false 10-02 15:19:54.247 29470-29470/com.app.android.debug D/ViewRootImpl﹕ ViewPostImeInputStage ACTION_DOWN 10-02 15:19:55.057 29470-29470/com.app.android.debug D/ViewRootImpl﹕ ViewPostImeInputStage ACTION_DOWN 10-02 15:19:59.547 29470-29470/com.app.android.debug D/ViewRootImpl﹕ ViewPostImeInputStage ACTION_DOWN 10-02 15:19:59.677 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB installDecor mIsFloating : true 10-02 15:19:59.677 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB installDecor flags : 8388610 10-02 15:19:59.727 29470-29470/com.app.android.debug D//SpiceManager.java:489﹕ 15:19:59.735 main adding request to request queue 10-02 15:19:59.727 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB isFloatingMenuEnabled mFloatingMenuBtn : null 10-02 15:19:59.727 29470-29470/com.app.android.debug D/PhoneWindow﹕ FMB isFloatingMenuEnabled return false 10-02 15:19:59.727 29470-29543/com.app.android.debug D//SpiceManager.java:286﹕ 15:19:59.739 SpiceManagerThread 0 Sending request to service : CachedSpiceRequest 10-02 15:19:59.737 29470-29543/com.app.android.debug D//RequestProcessor.java:63﹕ 15:19:59.742 SpiceManagerThread 0 Adding request to queue 547049702: CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=com.app.android.network.requests.OAuthAccessTokenSpiceRequest@2cabb627] size is 0 10-02 15:19:59.737 29470-29543/com.app.android.debug D//RequestProcessor.java:85﹕ 15:19:59.745 SpiceManagerThread 0 Adding entry for type class com.app.android.network.responses.AccessToken and cacheKey null. 10-02 15:19:59.737 29470-29543/com.app.android.debug D//RequestProgressManager.java:61﹕ 15:19:59.746 SpiceManagerThread 0 Request was added to queue. 10-02 15:19:59.737 29470-29543/com.app.android.debug D//SpiceServiceListenerNotifier.java:146﹕ 15:19:59.747 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {48b427d} 10-02 15:19:59.737 29470-29543/com.app.android.debug D//RequestProgressManager.java:82﹕ 15:19:59.751 SpiceManagerThread 0 Sending progress PENDING 10-02 15:19:59.747 29470-29543/com.app.android.debug D//SpiceServiceListenerNotifier.java:146﹕ 15:19:59.754 SpiceManagerThread 0 Message queue is Handler (android.os.Handler) {48b427d} 10-02 15:19:59.747 29470-29470/com.app.android.debug D/SRIB_DCS﹕ log_dcs ThreadedRenderer::initialize entered! 10-02 15:19:59.757 29470-29543/com.app.android.debug V//SpiceService.java:506﹕ 15:19:59.766 SpiceManagerThread 0 Pending requests : 1 10-02 15:19:59.757 29470-29543/com.app.android.debug V//SpiceService.java:508﹕ 15:19:59.770 SpiceManagerThread 0 Stop foreground 10-02 15:19:59.777 29470-29668/com.app.android.debug D//DefaultRequestRunner.java:83﹕ 15:19:59.786 Thread-6577 Processing request : CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=com.app.android.network.requests.OAuthAccessTokenSpiceRequest@2cabb627] 10-02 15:19:59.777 29470-29668/com.app.android.debug D//DefaultRequestRunner.java:129﹕ 15:19:59.788 Thread-6577 Cache content not available or expired or disabled 10-02 15:19:59.787 29470-29668/com.app.android.debug D//DefaultRequestRunner.java:148﹕ 15:19:59.799 Thread-6577 Calling netwok request. 10-02 15:19:59.797 29470-29668/com.app.android.debug D//RequestProgressManager.java:82﹕ 15:19:59.803 Thread-6577 Sending progress LOADING_FROM_NETWORK 10-02 15:19:59.797 29470-29668/com.app.android.debug D//SpiceServiceListenerNotifier.java:146﹕ 15:19:59.807 Thread-6577 Message queue is Handler (android.os.Handler) {48b427d} 10-02 15:19:59.797 29470-29668/com.app.android.debug D/app﹕ Requesting Access Token 10-02 15:19:59.797 29470-29470/com.app.android.debug D//SpiceServiceListenerNotifier.java:175﹕ 15:19:59.809 main Processing request added: CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=com.app.android.network.requests.OAuthAccessTokenSpiceRequest@2cabb627] 10-02 15:19:59.797 29470-29470/com.app.android.debug V//DefaultRequestListenerNotifier.java:131﹕ 15:19:59.810 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@2ed5366c 10-02 15:19:59.807 29470-29470/com.app.android.debug V//DefaultRequestListenerNotifier.java:131﹕ 15:19:59.822 main Notifying 1 listeners of progress com.octo.android.robospice.request.listener.RequestProgress@2ae54435 10-02 15:19:59.827 29470-29668/com.app.android.debug D/app﹕ ---> HTTP POST https://api.dev.net:9443/oauth/token?client_id=3fac7ca2189f14e252c1d202a02ab86bcba2cc9fb055437d23ae140e4a4f1001&client_secret=69fa8216279c077ab6f45710b0c6a9a420271229b52b66adf6679b24e78951fa&grant_type=password&username=mg.2%40gmail.com&password=password 10-02 15:19:59.827 29470-29668/com.app.android.debug D/app﹕ Accept: application/json 10-02 15:19:59.827 29470-29668/com.app.android.debug D/app﹕ ---> END HTTP (no body) 10-02 15:19:59.837 29470-29668/com.app.android.debug D/LoggingInterceptor﹕ Sending request https://api.dev.net:9443/oauth/token?client_id=3fac7ca2189f14e252c1d202a02ab86bcba2cc9fb055437d23ae140e4a4f1001&client_secret=69fa8216279c077ab6f45710b0c6a9a420271229b52b66adf6679b24e78951fa&grant_type=password&username=mg.2%40gmail.com&password=password on null Accept: application/json 10-02 15:20:29.977 29470-29470/com.app.android.debug V/ActivityThread﹕ updateVisibility : ActivityRecord{3b472b6e token=android.os.BinderProxy@1355ba58 {com.app.android.debug/com.app.android.ui.activities.LoginActivity}} show : true 10-02 15:20:29.977 29470-29470/com.app.android.debug D//SpiceManager.java:326﹕ 15:20:29.985 main SpiceManager stopping. Joining 10-02 15:20:29.977 29470-29470/com.app.android.debug V//SpiceManager.java:767﹕ 15:20:29.986 main Cleared listeners of all requests to launch 10-02 15:20:29.977 29470-29470/com.app.android.debug D//SpiceManager.java:789﹕ 15:20:29.987 main Removing listeners of pending request : CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=com.app.android.network.requests.OAuthAccessTokenSpiceRequest@2cabb627] : 1 10-02 15:20:29.977 29470-29470/com.app.android.debug D//RequestProgressManager.java:147﹕ 15:20:29.988 main Removing listeners of request : CachedSpiceRequest [requestCacheKey=null, cacheDuration=0, spiceRequest=com.app.android.network.requests.OAuthAccessTokenSpiceRequest@2cabb627] : 1 10-02 15:20:29.977 29470-29470/com.app.android.debug V//SpiceManager.java:796﹕ 15:20:29.988 main Cleared listeners of all pending requests 10-02 15:20:29.977 29470-29543/com.app.android.debug D//SpiceManager.java:265﹕ 15:20:29.989 SpiceManagerThread 0 Interrupted while waiting for new request. 10-02 15:20:29.987 29470-29543/com.app.android.debug D//SpiceManager.java:271﹕ 15:20:29.993 SpiceManagerThread 0 SpiceManager request runner terminated. Requests count: 0, stopped true, interrupted false 10-02 15:20:29.987 29470-29470/com.app.android.debug D//SpiceManager.java:339﹕ 15:20:29.994 main Runner join time (ms) when should stop 5 10-02 15:20:29.987 29470-29470/com.app.android.debug V//SpiceManager.java:1221﹕ 15:20:29.995 main Unbinding from service start. 10-02 15:20:29.987 29470-29470/com.app.android.debug V//SpiceManager.java:1225﹕ 15:20:29.996 main Unbinding from service. 10-02 15:20:29.987 29470-29470/com.app.android.debug D//SpiceManager.java:1227﹕ 15:20:30.001 main Unbound from service : RetrofitSpiceService 10-02 15:20:29.987 29470-29470/com.app.android.debug D//SpiceManager.java:345﹕ 15:20:30.002 main SpiceManager stopped.

Any ideas what might be going on here? Any help would be appreaciated

Thanks

kraghu commented 8 years ago

Did you figure out this issue ?

Proper-Job commented 8 years ago

Could you redact you log file somewhat, it's hard to see the pertinent statements. Are you using fragments to start your requests? Is your fragment handling correct (only instantiate from Activity when savedInstanceState == null in onCreate())? I got some pretty strange behaviour in robospice when fragments got erroneously instantiated.

kraghu commented 8 years ago

Yeah .. I am instantiating in base fragment and refered by both base and derived fragments twice in my activity life cycle. I am stopping inside onDetach(). I could reproduce once and I saw it is not making the network call . I could see it adding to the listener list and never make a call. I have only one activity and I doubt any activity cycle foul play . Let me know if you have any insight on this .