New Xiaomi Mi4s 9.2.2.0 Stable - Rocket Chat+ Can't Connect To Server


asleep

Members
Mar 16, 2018
1
3
Hello, dear developers. I have very strange issue with Rocket Chat+ application. It always says "Could not connect to server, please try again later." Issue not reproduces with another devices with same environment (same wi-fi network or android version). Please, help. I attached logs for you.

Code:
03-16 09:46:44.840: I/ActivityManager(2190): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=chat.rocket.android/.activity.MainActivity bnds=[76,101][258,283] (has extras)} from uid 10027 on display 0
03-16 09:46:44.881: I/ActivityManager(2190): Start proc 8725:chat.rocket.android/u0a172 for activity chat.rocket.android/.activity.MainActivity caller=com.miui.home
03-16 09:46:44.931: D/ui-boost(2190): boost uithread for app=chat.rocket.android
03-16 09:46:44.933: I/WtProcessController(3909): MOVE TO FOREGROUND: chat.rocket.android 10172
03-16 09:46:44.934: I/StatusController(3909): Last foreground:com.miui.home uid:10027 Current foreground:chat.rocket.android uid:10172
03-16 09:46:44.934: I/WtProcessController(3909): FOREGROUND INFO: name=chat.rocket.android uid=10172 pid=8725 TaskId:916
03-16 09:46:45.677: V/FA(8725): App package, google app id: chat.rocket.android, 1:1020987621558:android:16da2e50aff9f0c9
03-16 09:46:45.679: I/FA(8725):   adb shell setprop debug.firebase.analytics.app chat.rocket.android
03-16 09:46:45.693: I/art(8725):   at void chat.rocket.android.RocketChatApplication.onCreate() (RocketChatApplication.java:39)
03-16 09:46:45.693: I/art(8725):   at void chat.rocket.android.RocketChatApplicationDebug.onCreate() (RocketChatApplicationDebug.java:13)
03-16 09:46:45.693: I/art(8725): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.app.job.JobServiceEngine" on path: DexPathList[[zip file "/data/app/chat.rocket.android-1/base.apk", zip file "/data/app/chat.rocket.android-1/split_lib_dependencies_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_0_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_1_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_2_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_3_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_4_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_5_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_6_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_7_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_8_apk.apk", zip file "/data/app/chat.rocket.android-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/chat.rocket.android-1/lib/arm64, /data/
03-16 09:46:45.693: I/art(8725):   at void chat.rocket.android.RocketChatApplication.onCreate() (RocketChatApplication.java:39)
03-16 09:46:45.693: I/art(8725):   at void chat.rocket.android.RocketChatApplicationDebug.onCreate() (RocketChatApplicationDebug.java:13)
03-16 09:46:46.075: I/stetho(8725): Listening on @stetho_chat.rocket.android_devtools_remote
03-16 09:46:46.079: D/StrictMode(8725):     at chat.rocket.android.RocketChatApplicationDebug.enableStetho(RocketChatApplicationDebug.java:40)
03-16 09:46:46.079: D/StrictMode(8725):     at chat.rocket.android.RocketChatApplicationDebug.onCreate(RocketChatApplicationDebug.java:15)
03-16 09:46:46.079: D/StrictMode(8725):     at chat.rocket.android.RocketChatApplicationDebug.enableStetho(RocketChatApplicationDebug.java:38)
03-16 09:46:46.079: D/StrictMode(8725):     at chat.rocket.android.RocketChatApplicationDebug.onCreate(RocketChatApplicationDebug.java:15)
03-16 09:46:46.079: D/StrictMode(8725):     at chat.rocket.android.RocketChatApplicationDebug.enableStetho(RocketChatApplicationDebug.java:38)
03-16 09:46:46.079: D/StrictMode(8725):     at chat.rocket.android.RocketChatApplicationDebug.onCreate(RocketChatApplicationDebug.java:15)
03-16 09:46:46.188: I/ActivityManager(2190): START u0 {flg=0x24020000 cmp=chat.rocket.android/.activity.AddServerActivity} from uid 10172 on display 0
03-16 09:46:46.201: I/ActivityManager(2190): START u0 {flg=0x24020000 cmp=chat.rocket.android/.activity.AddServerActivity} from uid 10172 on display 0
03-16 09:46:46.202: I/WtEventController(3909): dispatchSysInfoEvent AM_NEW_INTENT componentName:chat.rocket.android/.activity.AddServerActivity
03-16 09:46:46.208: D/AccessibilityManager(8725): current package=chat.rocket.android, accessibility manager mIsFinalEnabled=false, mOptimizeEnabled=true, mIsUiAutomationEnabled=false, mIsInterestedPackage=false
03-16 09:46:46.439: I/ActivityManager(2190): START u0 {flg=0x24020000 cmp=chat.rocket.android/.activity.AddServerActivity} from uid 10172 on display 0
03-16 09:46:46.441: I/WtEventController(3909): dispatchSysInfoEvent AM_NEW_INTENT componentName:chat.rocket.android/.activity.AddServerActivity
03-16 09:46:46.450: D/ui-boost(2190): Set RenderThread tid 8784 for pid 8725 name=chat.rocket.android
03-16 09:46:46.475: I/WtProcessController(3909): MOVE TO FOREGROUND: chat.rocket.android 10172
03-16 09:46:46.476: I/WtProcessController(3909): FOREGROUND INFO: name=chat.rocket.android uid=10172 pid=8725 TaskId:916
03-16 09:46:46.491: V/RocketChatService(8725): ⇢ onStartCommand(intent=Intent { cmp=chat.rocket.android/.service.RocketChatService }, flags=0, startId=1)
03-16 09:46:46.713: V/FA-SVC(3749): Event recorded: Event{appId='chat.rocket.android', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_screen_class(_sc)=MainActivity, firebase_screen_id(_si)=4509781294251201031}]}
03-16 09:46:46.722: I/ActivityManager(2190): Displayed chat.rocket.android/.activity.AddServerActivity: +249ms (total +1s852ms)
03-16 09:46:46.725: I/Timeline(2190): Timeline: Activity_windows_visible id: ActivityRecord{bc312a u0 chat.rocket.android/.activity.AddServerActivity t916} time:20698264
03-16 09:46:46.759: V/FA-SVC(3749): Event recorded: Event{appId='chat.rocket.android', name='screen_view(_vs)', params=Bundle[{firebase_event_origin(_o)=auto, firebase_previous_class(_pc)=MainActivity, firebase_previous_id(_pi)=4509781294251201031, firebase_screen_class(_sc)=AddServerActivity, firebase_screen_id(_si)=4509781294251201032}]}
03-16 09:46:46.830: I/WindowManager(2190): Destroying surface Surface(name=Starting chat.rocket.android) called by com.android.server.wm.WindowStateAnimator.destroySurface:-1 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:-1 com.android.server.wm.WindowState.destroyOrSaveSurface:-1 com.android.server.wm.AppWindowToken.destroySurfaces:-1 com.android.server.wm.WindowStateAnimator.finishExit:-1 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:-1 com.android.server.wm.WindowAnimator.updateWindowsLocked:-1 com.android.server.wm.WindowAnimator.animateLocked:-1
03-16 09:47:00.250: W/System.err(8725):     at chat.rocket.android.api.rest.DefaultServerPolicyApi.getApiInfo(DefaultServerPolicyApi.java:40)
03-16 09:47:00.250: W/System.err(8725):     at chat.rocket.android.api.rest.DefaultServerPolicyApi.getApiInfoInsecurely(DefaultServerPolicyApi.java:36)
03-16 09:47:00.250: W/System.err(8725):     at chat.rocket.android.helper.ServerPolicyApiValidationHelper.getApiVersion(ServerPolicyApiValidationHelper.java:18)
03-16 09:47:00.250: W/System.err(8725):     at chat.rocket.android.helper.ServerPolicyHelper.isApiVersionValid(ServerPolicyHelper.java:24)
03-16 09:47:00.250: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnamePresenter.connectToEnforced(InputHostnamePresenter.java:36)
03-16 09:47:00.251: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnamePresenter.connectTo(InputHostnamePresenter.java:27)
03-16 09:47:00.251: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnameFragment.handleConnect(InputHostnameFragment.java:60)
03-16 09:47:00.251: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnameFragment.lambda$onSetupView$0$InputHostnameFragment(InputHostnameFragment.java:50)
03-16 09:47:00.251: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnameFragment$$Lambda$0.onClick(Unknown Source)
03-16 09:47:00.252: W/System.err(8725):     at chat.rocket.android.helper.ServerPolicyApiValidationHelper.getApiVersion(ServerPolicyApiValidationHelper.java:19)
03-16 09:47:00.252: W/System.err(8725):     at chat.rocket.android.helper.ServerPolicyHelper.isApiVersionValid(ServerPolicyHelper.java:25)
03-16 09:47:00.253: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnamePresenter.connectToEnforced(InputHostnamePresenter.java:37)
03-16 09:47:00.253: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnamePresenter.connectToEnforced(InputHostnamePresenter.java:38)
03-16 09:47:00.254: W/System.err(8725):     at chat.rocket.android.fragment.add_server.InputHostnamePresenter.connectToEnforced(InputHostnamePresenter.java:39)
03-16 09:47:00.414: V/FA-SVC(3749): Event recorded: Event{appId='chat.rocket.android', name='app_exception(_ae)', params=Bundle[{firebase_event_origin(_o)=crash, firebase_screen_class(_sc)=AddServerActivity, firebase_screen_id(_si)=4509781294251201032, timestamp=1521182820255, fatal=0}]}
03-16 09:47:00.467: V/FA-SVC(3749): Event recorded: Event{appId='chat.rocket.android', name='user_engagement(_e)', params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=13726, firebase_screen_class(_sc)=AddServerActivity, firebase_screen_id(_si)=4509781294251201032}]}
03-16 09:48:00.327: V/FA-SVC(3749): Event recorded: Event{appId='chat.rocket.android', name='user_engagement(_e)', params=Bundle[{firebase_event_origin(_o)=auto, engagement_time_msec(_et)=59858, firebase_screen_class(_sc)=AddServerActivity, firebase_screen_id(_si)=4509781294251201032}]}