jack0402 / csipsimple

Automatically exported from code.google.com/p/csipsimple
0 stars 0 forks source link

simonics.com and SIMPLE messages #2545

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add a simonics.com Google Voice Gateway Account to csipsimple.
2. Sign out of all other Google Talk / Hangout sessions.
3. Send a Google Talk / Hangout message from another account to your Google 
account.
4. csipsimple receives a SIMPLE message from 
"username-at-gmail.com/0123456789ABCDEF"

What is the expected output? What do you see instead?
Attempting to View or Delete this message Thread causes an app crash.

What version of the product are you using? On what device / operating
system?

Based on GPL application CSipSimple version : 1.01.00 r2324
Here are important informations about Device : 
android.os.Build.BOARD : MSM8960
android.os.Build.BRAND : samsung
android.os.Build.DEVICE : apexqtmo
android.os.Build.ID : JLS36I
android.os.Build.MODEL : SGH-T699
android.os.Build.PRODUCT : apexqtmo
android.os.Build.TAGS : test-keys
android.os.Build.CPU_ABI : armeabi-v7a
android.os.Build.VERSION.INCREMENTAL : 0bf6d76897
android.os.Build.VERSION.RELEASE : 4.3.1
android.os.Build.VERSION.SDK_INT : 18

Please provide any additional information below.

*** LOGCAT follows ***

11-08 11:32:24.426 D/SizeAdaptiveLayout(836): 
com.android.internal.widget.SizeAdaptiveLayout{422f0338 V.E..... ......I. 
0,0-480,96 #7f080087 app:id/adaptive}child view 
android.widget.LinearLayout{426b76c8 V.E..... ......I. 0,0-480,95 #7f0600e1 
app:id/accounts_container} measured out of bounds at 95px clamped to 96px
11-08 11:32:24.486 D/SizeAdaptiveLayout(836): 
com.android.internal.widget.SizeAdaptiveLayout{422f0338 V.E..... ......I. 
0,0-480,96 #7f080087 app:id/adaptive}child view 
android.widget.LinearLayout{426b76c8 V.E..... ......I. 0,0-480,95 #7f0600e1 
app:id/accounts_container} measured out of bounds at 95px clamped to 96px
11-08 11:32:24.706 V/PanelView(836): animationTick called with dtms=0; nothing 
to do (h=304.3659 v=1366.6346)
11-08 11:32:24.816 E/MP-Decision(1389): UP Ld:68 Nw:1.990000 Tw:140 rq:2.200000 
seq:147.000000
11-08 11:32:25.317 E/MP-Decision(1389): DOWN Ld:13 Ns:1.100000 Ts:190 
rq:0.000000 seq:274.000000
11-08 11:32:25.317 E/Sensors (702): accelHandler -0.002395 0.102986 9.976454
11-08 11:32:25.347 I/ActivityManager(702): START u0 
{act=com.csipsimple.phone.action.DIALER flg=0x10000000 
cmp=com.csipsimple/.ui.SipHome bnds=[0,77][800,172]} from pid -1
11-08 11:32:25.397 V/PanelView(836): animationTick called with dtms=0; nothing 
to do (h=480.0 v=-3000.0)
11-08 11:32:25.467 E/MP-Decision(1389): UP Ld:36 Nw:1.990000 Tw:140 rq:3.100000 
seq:144.000000
11-08 11:32:25.477 I/ActivityManager(702): Start proc com.csipsimple for 
activity com.csipsimple/.ui.SipHome: pid=5959 uid=10150 gids={50150, 3003, 
3002, 1015, 1006, 1028}
11-08 11:32:25.677 D/SIP_HOME(5959): Sanity check : we have a nightly build here
11-08 11:32:25.677 D/SIP_HOME(5959): On Resume SIPHOME
11-08 11:32:25.677 D/SIP_HOME(5959): WE CAN NOW start SIP service
11-08 11:32:25.697 D/Prefs   (2398): We are valid for WIFI
11-08 11:32:25.717 D/Prefs   (2398): We are valid for WIFI
11-08 11:32:25.717 D/SIP SRV (2398): Direct sip start
11-08 11:32:25.727 D/Prefs   (2398): We are valid for WIFI
11-08 11:32:25.747 D/Prefs   (2398): We are valid for WIFI
11-08 11:32:25.747 D/SIP SRV (2398): Start was asked and we should actually 
start now
11-08 11:32:25.747 D/SIP SRV (2398): Ask pjservice to start itself
11-08 11:32:26.078 D/libEGL  (5959): loaded /system/lib/egl/libEGL_adreno200.so
11-08 11:32:26.078 D/libEGL  (5959): loaded 
/system/lib/egl/libGLESv1_CM_adreno200.so
11-08 11:32:26.088 D/libEGL  (5959): loaded 
/system/lib/egl/libGLESv2_adreno200.so
11-08 11:32:26.088 I/Adreno200-EGL(5959): <qeglDrvAPI_eglInitialize:269>: EGL 
1.4 QUALCOMM build: 
AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051_msm8960_JB_VANILLA_CL2997615_release
_AU (CL2997615)
11-08 11:32:26.088 I/Adreno200-EGL(5959): Build Date: 04/11/13 Thu
11-08 11:32:26.088 I/Adreno200-EGL(5959): Local Branch: 
11-08 11:32:26.088 I/Adreno200-EGL(5959): Remote Branch: quic/mako_jb_mr1
11-08 11:32:26.088 I/Adreno200-EGL(5959): Local Patches: NONE
11-08 11:32:26.088 I/Adreno200-EGL(5959): Reconstruct Branch: 
AU_LINUX_ANDROID_JB_VANILLA.04.02.02.60.051 +  NOTHING
11-08 11:32:26.108 E/        (5959): <s3dReadConfigFile:75>: Can't open file 
for reading
11-08 11:32:26.108 E/        (5959): <s3dReadConfigFile:75>: Can't open file 
for reading
11-08 11:32:26.108 E/        (5959): <s3dReadConfigFile:75>: Can't open file 
for reading
11-08 11:32:26.108 D/OpenGLRenderer(5959): Enabling debug mode 0
11-08 11:32:26.228 I/ActivityManager(702): Displayed 
com.csipsimple/.ui.SipHome: +763ms
11-08 11:32:27.279 E/MP-Decision(1389): DOWN Ld:29 Ns:1.100000 Ts:190 
rq:0.500000 seq:207.000000
11-08 11:32:28.820 E/Sensors (702): accelHandler -0.028740 0.111368 9.905801
11-08 11:32:29.832 E/MP-Decision(1389): UP Ld:63 Nw:1.990000 Tw:140 rq:3.100000 
seq:147.000000
11-08 11:32:29.852 V/Sensors (702): setDelay - sensor Accelerometer (handle 4), 
rate 66 ms (15.00 Hz)
11-08 11:32:29.852 V/Sensors (702): setDelay - sensor Accelerometer (handle 4), 
rate 20 ms (50.00 Hz)
11-08 11:32:29.862 E/Sensors (702): activatePendingSensors : mEnabled = 10
11-08 11:32:29.862 E/Sensors (702): requested_sensors(70) from kernel
11-08 11:32:29.862 I/MPL-mldl_cfg_mpu:(702): inv_mpu_suspend(,,,,7fff) -> 0000
11-08 11:32:29.862 E/Sensors (702): set fifo rate - divider : 3, delay : 20 ms 
(50.00 Hz)
11-08 11:32:29.862 I/MPL-fifo(702): Actual ODR: 50000 mHz
11-08 11:32:29.872 V/Sensors (702): Starting DMP
11-08 11:32:29.872 W/MPL-9_sup(702): 9 axis sensor fusion not available - No 
compass detected.
11-08 11:32:29.882 I/MPL-mldl_cfg_mpu:(702): inv_mpu_resume(,,,,0070) -> 0070
11-08 11:32:30.602 E/Sensors (702): accelHandler -0.028740 0.089813 9.917776
11-08 11:32:31.253 E/MP-Decision(1389): DOWN Ld:19 Ns:1.100000 Ts:190 
rq:0.000000 seq:205.000000
11-08 11:32:31.453 E/MP-Decision(1389): UP Ld:13 Nw:1.990000 Tw:140 rq:2.100000 
seq:145.000000
11-08 11:32:31.603 E/Sensors (702): accelHandler -0.011975 0.114961 9.895023
11-08 11:32:31.814 E/MP-Decision(1389): DOWN Ld:15 Ns:1.100000 Ts:190 
rq:1.000000 seq:205.000000
11-08 11:32:32.414 I/ActivityManager(702): START u0 
{cmp=com.csipsimple/.ui.messages.MessageActivity (has extras)} from pid 5959
11-08 11:32:32.564 D/SIP_HOME(5959): On Pause SIPHOME
11-08 11:32:32.595 E/Sensors (702): accelHandler -0.016765 0.112566 9.860295
11-08 11:32:32.685 E/MP-Decision(1389): UP Ld:71 Nw:1.990000 Tw:140 rq:4.300000 
seq:147.000000
11-08 11:32:32.725 D/ComposeMessage(5959): Resume compose message act
11-08 11:32:32.745 E/DatabaseUtils(2398): Writing exception to parcel
11-08 11:32:32.745 E/DatabaseUtils(2398): java.lang.SecurityException: You are 
asking wrong values -1
11-08 11:32:32.745 E/DatabaseUtils(2398):   at 
com.csipsimple.db.DBProvider.query(DBProvider.java:506)
11-08 11:32:32.745 E/DatabaseUtils(2398):   at 
android.content.ContentProvider.query(ContentProvider.java:744)
11-08 11:32:32.745 E/DatabaseUtils(2398):   at 
android.content.ContentProvider$Transport.query(ContentProvider.java:199)
11-08 11:32:32.745 E/DatabaseUtils(2398):   at 
android.content.ContentProviderNative.onTransact(ContentProviderNative.java:114)
11-08 11:32:32.745 E/DatabaseUtils(2398):   at 
android.os.Binder.execTransact(Binder.java:388)
11-08 11:32:32.745 E/DatabaseUtils(2398):   at 
dalvik.system.NativeStart.run(Native Method)
11-08 11:32:32.745 W/dalvikvm(5959): threadid=18: thread exiting with uncaught 
exception (group=0x4203b700)
11-08 11:32:32.765 E/AndroidRuntime(5959): FATAL EXCEPTION: ModernAsyncTask #2
11-08 11:32:32.765 E/AndroidRuntime(5959): java.lang.RuntimeException: An error 
occured while executing doInBackground()
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.support.v4.content.ModernAsyncTask$3.done(ModernAsyncTask.java:137)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:352)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
java.util.concurrent.FutureTask.setException(FutureTask.java:219)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
java.util.concurrent.FutureTask.run(FutureTask.java:239)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
java.lang.Thread.run(Thread.java:841)
11-08 11:32:32.765 E/AndroidRuntime(5959): Caused by: 
java.lang.SecurityException: You are asking wrong values -1
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.os.Parcel.readException(Parcel.java:1431)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:185)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:137)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.content.ContentProviderProxy.query(ContentProviderNative.java:385)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.content.ContentResolver.query(ContentResolver.java:414)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.content.ContentResolver.query(ContentResolver.java:357)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:49)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.support.v4.content.CursorLoader.loadInBackground(CursorLoader.java:35)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.ja
va:240)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoad
er.java:51)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoad
er.java:40)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123)
11-08 11:32:32.765 E/AndroidRuntime(5959):  at 
java.util.concurrent.FutureTask.run(FutureTask.java:234)
11-08 11:32:32.765 E/AndroidRuntime(5959):  ... 3 more
11-08 11:32:32.765 W/ActivityManager(702):   Force finishing activity 
com.csipsimple/.ui.messages.MessageActivity
11-08 11:32:32.765 W/ActivityManager(702):   Force finishing activity 
com.csipsimple/.ui.SipHome
11-08 11:32:32.995 D/SIP_HOME(5959): True disconnection...
11-08 11:32:33.005 I/ActivityManager(702): Displayed 
com.csipsimple/.ui.messages.MessageActivity: +440ms
11-08 11:32:33.015 D/SIP_HOME(5959): ---DESTROY SIP HOME END---
11-08 11:32:33.025 D/Prefs   (2398): We are valid for WIFI
11-08 11:32:33.195 I/GCoreUlr(955): Successfully inserted location
11-08 11:32:33.195 I/GCoreUlr(955): Not calling LocationReportingService, 
hasMoved: false, elapsed millis: 378042, request: Phone
11-08 11:32:33.596 V/Sensors (702): setDelay - sensor Accelerometer (handle 4), 
rate 66 ms (15.00 Hz)
11-08 11:32:33.606 E/Sensors (702): accelHandler -0.029938 0.123344 9.875863
11-08 11:32:33.606 E/Sensors (702): activatePendingSensors : mEnabled = 10
11-08 11:32:33.606 E/Sensors (702): requested_sensors(70) from kernel
11-08 11:32:33.606 I/MPL-mldl_cfg_mpu:(702): inv_mpu_suspend(,,,,7fff) -> 0000
11-08 11:32:33.606 E/Sensors (702): set fifo rate - divider : 13, delay : 66 ms 
(15.00 Hz)
11-08 11:32:33.606 I/MPL-fifo(702): Actual ODR: 14285 mHz
11-08 11:32:33.616 V/Sensors (702): Starting DMP
11-08 11:32:33.616 W/MPL-9_sup(702): 9 axis sensor fusion not available - No 
compass detected.
11-08 11:32:33.626 I/MPL-mldl_cfg_mpu:(702): inv_mpu_resume(,,,,0070) -> 0070
11-08 11:32:33.956 I/Process (5959): Sending signal. PID: 5959 SIG: 9
11-08 11:32:33.976 I/ActivityManager(702): Process com.csipsimple (pid 5959) 
has died.
11-08 11:32:33.986 V/PhoneStatusBar(836): setLightsOn(true)
11-08 11:32:34.016 W/InputMethodManagerService(702): Got RemoteException 
sending setActive(false) notification to pid 5959 uid 10150
11-08 11:32:34.527 E/MP-Decision(1389): DOWN Ld:34 Ns:1.100000 Ts:190 
rq:0.000000 seq:216.000000

Original issue reported on code.google.com by patr...@enburg.info on 8 Nov 2013 at 4:55

GoogleCodeExporter commented 9 years ago
Thanks for the report.

I suspect the "/" character to be the root cause of the problem. 
CSipSimple internal api uses uri like scheme to search for message exchanged 
with a particular 'from'. As the remote username contains a '/', the UI part 
probably asks for something that does not exists and csipsimple internal api 
considers that as a try to access something that is not managed.
The UI part of csipsimple should uri encode the '/' so that the service part 
can take and search contact with this kind of format. 
Alternatively the service part should remove what's after '/' if any. Maybe 
it's a good solution in your case as I guess the '/...' represent the xmpp 
resource and you'd like to see all conversation with this contact to appear 
under same thread (whatever the client used by the remote part to talk).

Original comment by r3gis...@gmail.com on 8 Nov 2013 at 5:56

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2325.

Original comment by r3gis...@gmail.com on 9 Nov 2013 at 2:41