lichess-org / lichobile

lichess.org mobile application
https://lichess.org/mobile
GNU General Public License v3.0
2.04k stars 318 forks source link

app crashes when trying to send a message #900

Closed bezobid closed 4 years ago

bezobid commented 6 years ago

I'm submitting a ... (keep the relevant one):

Bug report

Current behavior:

Whenever I try to send a message to another player using chat (during a game) or inbox (in user menu), the app crashes. The same thing happens when I do a long press on any text input field within the app.

Expected behavior:

Messages should be delivered. And the app should not crash.

Steps to reproduce:

Open the chat window during any game, type a message, hit Send button. Or just do a long press on any text input field (e.g. player search).

Environment information

Other information:

Log excerpt from app start to crash:

[09-15 09:20:53.515 2616:2904 I/ActivityManager]
START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.lichess.mobileapp/.MainActivity bnds=[222,1282][434,1587] (has extras)} from pid 2881

[09-15 09:20:53.565 2616:2627 I/ActivityManager]
Start proc org.lichess.mobileapp for activity org.lichess.mobileapp/.MainActivity: pid=30479 uid=10115 gids={50115, 3003}

[09-15 09:20:53.910 30479:30479 D/XWalkLib]
Pre init xwalk core in org.lichess.mobileapp.MainActivity

[09-15 09:20:53.915 30479:30479 D/XWalkLib]
Reserve class class org.xwalk.core.XWalkPreferences to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.915 30479:30479 D/XWalkLib]
Reserve method setValue to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.915 30479:30479 D/XWalkLib]
Reserve class class org.xwalk.core.XWalkPreferences to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.915 30479:30479 D/XWalkLib]
Reserve method setValue to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.915 30479:30479 D/XWalkLib]
Reserve class class org.xwalk.core.XWalkPreferences to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.915 30479:30479 D/XWalkLib]
Reserve method setValue to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.920 30479:30479 D/XWalkLib]
Reserve object class org.crosswalk.engine.XWalkCordovaView to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.940 30479:30479 D/XWalkLib]
Reserve object class org.crosswalk.engine.XWalkCordovaResourceClient to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.940 30479:30479 D/XWalkLib]
Reserve method setResourceClient to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.940 30479:30479 D/XWalkLib]
Reserve object class org.crosswalk.engine.XWalkCordovaUiClient to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.940 30479:30479 D/XWalkLib]
Reserve method setUIClient to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.965 30479:30479 D/XWalkLib]
Reserve method setXWalkViewInternalVisibility to org.lichess.mobileapp.MainActivity

[09-15 09:20:53.965 30479:30479 D/XWalkLib]
Reserve method setSurfaceViewVisibility to org.lichess.mobileapp.MainActivity

[09-15 09:20:54.345 30479:30495 D/dalvikvm]
Trying to load lib /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so 0x428bf3b0

[09-15 09:20:54.410 30479:30495 D/dalvikvm]
Added shared lib /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so 0x428bf3b0

[09-15 09:20:54.430 2616:2632 I/ActivityManager]
Displayed org.lichess.mobileapp/.MainActivity: +880ms

[09-15 09:20:54.450 30479:30495 D/dalvikvm]
Trying to load lib /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so 0x428bf3b0

[09-15 09:20:54.450 30479:30495 D/dalvikvm]
Shared lib '/data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so' already loaded in same CL 0x428bf3b0

[09-15 09:20:54.450 30479:30495 D/dalvikvm]
Trying to load lib /data/app-lib/org.lichess.mobileapp-2/libxwalkdummy.so 0x428bf3b0

[09-15 09:20:54.450 30479:30495 D/dalvikvm]
Added shared lib /data/app-lib/org.lichess.mobileapp-2/libxwalkdummy.so 0x428bf3b0

[09-15 09:20:54.450 30479:30495 D/dalvikvm]
No JNI_OnLoad found in /data/app-lib/org.lichess.mobileapp-2/libxwalkdummy.so 0x428bf3b0, skipping init

[09-15 09:20:54.880 30479:30479 D/XWalkLib]
Post init xwalk core in org.lichess.mobileapp.MainActivity

[09-15 09:20:55.275 30479:30507 W/chromium]
[WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/org.lichess.mobileapp-2/libc++_shared.so': couldn't get XW_Initialize function.

[09-15 09:20:55.285 30479:30507 W/chromium]
[WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app-lib/org.lichess.mobileapp-2/libc++_shared.so

[09-15 09:20:55.335 30479:30507 W/chromium]
[WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/org.lichess.mobileapp-2/libstockfishjni.so': couldn't get XW_Initialize function.

[09-15 09:20:55.380 30479:30507 W/chromium]
[WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app-lib/org.lichess.mobileapp-2/libstockfishjni.so

[09-15 09:20:55.380 30479:30507 W/chromium]
[WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so': couldn't get XW_Initialize function.

[09-15 09:20:55.380 30479:30507 W/chromium]
[WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so

[09-15 09:20:55.380 30479:30507 W/chromium]
[WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app-lib/org.lichess.mobileapp-2/libxwalkdummy.so': couldn't get XW_Initialize function.

[09-15 09:20:55.380 30479:30507 W/chromium]
[WARNING:xwalk_extension_server.cc(406)] Failed to initialize extension: /data/app-lib/org.lichess.mobileapp-2/libxwalkdummy.so

[09-15 09:21:07.460 2142:2142 I/DEBUG]
pid: 30479, tid: 30479, name: chess.mobileapp  >>> org.lichess.mobileapp <<<

[09-15 09:21:07.765 2142:2142 I/DEBUG]
    #05  pc 013f1309  /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so

[09-15 09:21:07.765 2142:2142 I/DEBUG]
         befaec4c  79db354f  /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so

[09-15 09:21:07.765 2142:2142 I/DEBUG]
         befaec5c  7ae06ab0  /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so

[09-15 09:21:07.765 2142:2142 I/DEBUG]
         befaec74  7ac93028  /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so

[09-15 09:21:07.765 2142:2142 I/DEBUG]
         befaec7c  7a8e4dd0  /data/app-lib/org.lichess.mobileapp-2/libxwalkcore.so

[09-15 09:21:08.470 2616:30575 W/ActivityManager]
  Force finishing activity org.lichess.mobileapp/.MainActivity

[09-15 09:21:08.510 2616:2648 W/InputDispatcher]
channel '42c0e2f8 org.lichess.mobileapp/org.lichess.mobileapp.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0xd

[09-15 09:21:08.510 2616:2648 E/InputDispatcher]
channel '42c0e2f8 org.lichess.mobileapp/org.lichess.mobileapp.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

[09-15 09:21:08.785 2616:2878 I/WindowState]
WIN DEATH: Window{42c0e2f8 u0 org.lichess.mobileapp/org.lichess.mobileapp.MainActivity}

[09-15 09:21:08.785 2616:2878 W/InputDispatcher]
Attempted to unregister already unregistered input channel '42c0e2f8 org.lichess.mobileapp/org.lichess.mobileapp.MainActivity (server)'

[09-15 09:21:08.860 2616:2975 I/ActivityManager]
Process org.lichess.mobileapp (pid 30479) has died.
broslavski commented 6 years ago

The same problem occures while sending message on iPhone X (iOS 11 & 12). When I tap send button app just opens a blank page.