Closed Deccoy closed 10 years ago
Hi @Deccoy, thanks for the issue. We've actually seen this before but have been unable to identify a root cause. To help identify what's happening, can you tell me what device you're running this on, and paste a logcat of you trying to set the group avatar?
Hi,
I have checked the issue on my second phone, there it works. Maybe it has to do something with my custom ROM. I will provide the logcat tomorrow, because it is after midnight here in europe :-)
Unfortunately I think it's more complex than that. I run CM11 and it works fine for me, but then it didn't work on a phone running stock. Thanks in advance!
s, expected. msg: No permission to write APN settings: Neither user 10079 nor current process has android.permission.WRITE_APN_SETTINGS.
02-25 09:14:27.392 W/MmsSmsDatabase( 6435): Executing query: SELECT _id, body, read, type, address, address_device_id, subject, thread_id, status, date_sent, date_received, m_type, msg_box, part_count, ct_l, tr_id, m_size, exp, st, transport_type FROM (SELECT DISTINCT date_sent * 1 AS date_sent, date * 1 AS date_received, _id, body, read, thread_id, type, address, address_device_id, subject, NULL AS m_type, NULL AS msg_box, status, NULL AS part_count, NULL AS ct_l, NULL AS tr_id, NULL AS m_size, NULL AS exp, NULL AS st, 'sms' AS transport_type FROM sms WHERE (read = 0) UNION ALL SELECT DISTINCT date * 1000 AS date_sent, date_received * 1000 AS date_received, _id, body, read, thread_id, NULL AS type, address, address_device_id, NULL AS subject, m_type, msg_box, NULL AS status, part_count, ct_l, tr_id, m_size, exp, st, 'mms' AS transport_type FROM mms WHERE (read = 0) ORDER BY date_received ASC)
02-25 09:14:27.472 W/KeyCachingService( 6435): Incrementing activity count...
02-25 09:14:27.642 I/ActivityManager( 6435): Timeline: Activity_idle id: android.os.BinderProxy@418c3ae8 time:6230958
02-25 09:14:27.972 I/ActivityManager( 1884): Timeline: Activity_windows_visible id: ActivityRecord{41f19d38 u0 org.thoughtcrime.securesms/.ConversationActivity t53} time:6231280
02-25 09:14:30.865 I/ActivityManager( 6435): Timeline: Activity_launch_request id:org.thoughtcrime.securesms time:6234178
02-25 09:14:30.885 I/ActivityManager( 1884): START u0 {cmp=org.thoughtcrime.securesms/.GroupCreateActivity (has extras)} from pid 6435
02-25 09:14:30.975 W/KeyCachingService( 6435): Decrementing activity count...
02-25 09:14:30.975 W/KeyCachingService( 6435): Starting timeout: 21600000
02-25 09:14:31.405 W/KeyCachingService( 6435): Incrementing activity count...
02-25 09:14:31.566 I/ActivityManager( 1884): Displayed org.thoughtcrime.securesms/.GroupCreateActivity: +614ms
02-25 09:14:31.816 I/LatinIME:LogUtils( 2101): Dictionary info: dictionary = contacts.de_DE.dict ; version = ? ; date = ?
02-25 09:14:31.876 I/ActivityManager( 6435): Timeline: Activity_idle id: android.os.BinderProxy@41a46538 time:6235187
02-25 09:14:31.926 I/ActivityManager( 1884): Timeline: Activity_windows_visible id: ActivityRecord{41d063e8 u0 org.thoughtcrime.securesms/.GroupCreateActivity t53} time:6235232
02-25 09:14:33.347 I/ActivityManager( 1884): START u0 {act=android.intent.action.GET_CONTENT typ=image/* cmp=com.android.documentsui/.DocumentsActivity (has extras)} from pid 6435
02-25 09:14:33.407 W/KeyCachingService( 6435): Decrementing activity count...
02-25 09:14:33.407 W/KeyCachingService( 6435): Starting timeout: 21600000
02-25 09:14:33.618 I/Adreno200-EGL( 6834):
lt still doesn't working on my phone. On my table it works.
Not working on my i9100, rooted, CM11-20140205-Nightly-i9100 using TextSecure from AppStore
Not working.
I tried to trace down the problem and - at least for me - BitmapFactory.decodeFile(pendingFile.getAbsolutePath()) in GroupCreateActivity.java:503 returns null: https://github.com/WhisperSystems/TextSecure/blob/d5f04159074544d715628b870aa048993ee69b7d/src/org/thoughtcrime/securesms/GroupCreateActivity.java#L503
I think that the call to android.graphics.BitmapFactory.nativeDecodeStream(InputStream is, byte[] storage, Rect padding, Options opts) in BitmapFactory.java:613 returns null.
Using CM-11-20140210-SNAPSHOT-M3-crespo
Doesn't work for me either. Using Moto G running 4.4.2. I will sent a logcat when Google told me how to do that ;)
I made pull request #946 to fix this. Please test if this solves the issue for you too.
It removes the non standard use of cropping and replaces it with a simple circle crop from the center. (see comments on http://stackoverflow.com/questions/11375131/android-crop-image) If we want a user selectable crop, we might need to use something like this; https://github.com/biokys/cropimage
@Deccoy could you try @DorianScholz's PR and see if it solves the issue for you?
It works for me, thank you.
Setting the group avatar works for me (N4) only with stock gallery. GPhotos, QuickPic and Total Commander result in an empty avatar.
@cramu; I just tried using other image providers and they all worked for me: Gallery, ES File Explorer, Total Commander, GPhotos. This is on an HTC One with 4.4.2 What is you configuration? (I assume on N4 you also have 4.4.2?) And could you post a debug log (Settings->Submit Debug Log), thanks.
In my Moto G (4.4.2) I have the following behavior:
When clicking in the group icon the standard Gallery APP comes up. Choosing a picture from there does not work. But when I take the path from the upper left icon from where you can choose different Apps, the standard Gallery App does works for setting up an Icon
@volkerpfosten is that with our without my patch? (this patch is not in the app yet, unless you have compiled it yourself)
Sry if I've read sth. over...
This happens here in Stock Android running 2.0.4 from the Play Store - so nothing compiled by myself or patched!
I'm running KOT49H with Xposed and some modules. Debug log submitted. I use official version from PlayStore also, so I can't tell if your patch works. Just thought it would help to share a workaround.
Hello,
thanks for your great work.
On my CM11 phone it is not possible to set a group avatar. Clicking on the empty group avatar wil open the "image selecting form", but whatever i choose, the group avatar stays empty after selection.
Bedt regards, Deccoy