-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
精简版UI,消息发送右边进入相机拍照,再点击右边进入相册按钮,弹出系统选择相片的弹窗,选择图片返回,多次选择同一个图片,有概率选择了发不出去
为了更好的了解您使用TIMSDK所遇到的问题,方便快速有效定位解决TIMSDK问题,希望您按如下模板反馈issue,方便我们尽快解决您的问题,目前有TUIKIT集成包,和IMSDK集成包,注意说明是引入了哪个集成包的问题。另外如果需要补充更多信息请及时更新,否则可能被作为无效问题而关闭,这个等待期一般是10天。
issue标题:发生图片失败
【集成包】:IMSDK 有UI版本,精简版
【机型】:红米14
【之前版本有无此问题】:
【有无日志或者描述、截图】:
-------------------------完整的示例如下:-------------------------
【Android】-【14】:
【集成包】:TUIKIT
日志:
FA I Application backgrounded at: timestamp_millis: 1740038346531
ActivityThread E fail in deliverResultsIfNeeded java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
ActivityThread E fail in deliverResultsIfNeeded java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
SuggestManager E openApp name = com.exa.app
BufferQueueDebug E [Transition Root #3281: ActivityRecord{5a7fc12 u0 com.exa.app/com.tencent.qcloud.tuikit.timcommon.util.ActivityResultResolver$ActivityResultProxyActivity t796 f}}#44677](this:0xb400007d4e74fa50,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'Transition Root #3281: ActivityRecord{5a7fc12 u0 com.exa.app/com.tencent.qcloud.tuikit.timcommon.util.ActivityResultResolver$ActivityResultProxyActivity t796 f}}#44677'
CameraActivity I uri_info:content://media/picker/0/com.android.providers.media.photopicker/media/1000000055
ContentCatcher_injector D Interceptor : notifyActivityStop: com.exa.app@com.tencent.qcloud.tuikit.timcommon.util.ActivityResultResolver$ActivityResultProxyActivity@55119732
ContentCatcher_catcher D CatcherHolder : mCatcherList size: 0
.drawingfishing W Accessing hidden field Landroid/view/inputmethod/InputMethodManager;->mCurRootView:Landroid/view/ViewRootImpl; (blocked, reflection, denied)
.drawingfishing W Accessing hidden field Landroid/view/inputmethod/InputMethodManager;->mServedView:Landroid/view/View; (blocked, reflection, denied)
.drawingfishing W Accessing hidden field Landroid/view/inputmethod/InputMethodManager;->mNextServedView:Landroid/view/View; (blocked, reflection, denied)
ContentCatcher_injector D Interceptor : notifyActivityDestroy: com.exa.app@com.tencent.qcloud.tuikit.timcommon.util.ActivityResultResolver$ActivityResultProxyActivity@55119732
ContentCatcher_catcher D CatcherHolder : mCatcherList size: 0
WindowOnBackDispatcher W sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda23@d5eac1a
ContentCatcherManager E failed to get ContentCatcherService.
BLASTBufferQueue D [VRI[ActivityResultResolver$ActivityResultProxyActivity]#24](f:0,a:1) destructor()
BufferQueueConsumer D [VRI[ActivityResultResolver$ActivityResultProxyActivity]#24(BLAST Consumer)24](id:5cb600000018,api:0,p:-1,c:23734) disconnect
View D [Warning] assignParent to null: this = DecorView@4da6a17[ActivityResultResolver$ActivityResultProxyActivity]
ActivityThread E fail in deliverResultsIfNeeded java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
ContentCatcher_injector D Interceptor : notifyActivityStart: com.exa.app@com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity@33651425
ContentCatcher_catcher D CatcherHolder : mCatcherList size: 0
ActivityThread E fail in deliverResultsIfNeeded java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference
ContentResolver W Failed to get type for: content://media/picker/0/com.android.providers.media.photopicker/media/1000000055 (Calling uid ( 10297 ) does not have permission to access picker uri: content://media/picker/0/com.android.providers.media.photopicker/media/1000000055)
imsdk E TIM: |-TUIChat-ChatPresenter |mimeType is empty.
imsdk E TIM: |-TUIChat-ChatPresenter |sendPhotoVideoMessages failed, originalUri content://media/picker/0/com.android.providers.media.photopicker/media/1000000055 transcodeUri null
imsdk I TIM: |-TUIChat-InputView |hideSoftInput
ImeTracker I com.exa.app:3e90df06: onRequestHide at ORIGIN_CLIENT_HIDE_SOFT_INPUT reason HIDE_SOFT_INPUT
ImeTracker I com.exa.app:3e90df06: onFailed at PHASE_CLIENT_VIEW_SERVED
imsdk I TIM: |-TUIChat-TUIBaseChatMinimalistActivity |onResume
ContentCatcher_injector D Interceptor : notifyActivityResume: com.exa.app@com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity@33651425
ContentCatcher_catcher D CatcherHolder : mCatcherList size: 0
FirebaseCrashlytics D Crashlytics automatic data collection ENABLED by global Firebase setting.
SessionLifecycleClient D Sending lifecycle 1 to service
SessionLifecycleService D Activity foregrounding at 193055352.
AutofillManager D view not autofillable - not passing ime action check
BufferQueueDebug E [com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity#44679](this:0xb400007d4d94ba50,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity#44679'
BufferQueueConsumer D [](id:5cb600000019,api:0,p:-1,c:23734) connect: controlledByApp=false
OpenGLRenderer E Unable to match the desired swap behavior.
VRI[TUIC2C...tActivity] D vri.reportNextDraw android.view.ViewRootImpl.performTraversals:4457 android.view.ViewRootImpl.doTraversal:3066 android.view.ViewRootImpl$TraversalRunnable.run:10668 android.view.Choreographer$CallbackRecord.run:1768 android.view.Choreographer$CallbackRecord.run:1777
VRI[TUIC2C...tActivity] D vri.Setup new sync=wmsSync-VRI[TUIC2CChatMinimalistActivity]#65
ActivityManagerWrapper E getRecentTasks: mainTaskId=796 userId=0 windowMode=1 baseIntent=Intent { act=android.intent.action.MAIN flag=268435456 cmp=ComponentInfo{com.exa.app/com.exa.app.ui.splash.SplashActivity} }
BLASTBufferQueue D [VRI[TUIC2CChatMinimalistActivity]#25](f:0,a:1) acquireNextBufferLocked size=1080x2400 mFrameNumber=1 applyTransaction=true mTimestamp=193055431783813(auto) mPendingTransactions.size=0 graphicBufferId=101936753803379 transform=0
VRI[TUIC2C...tActivity] D vri.reportDrawFinished
VRI[TUIC2C...tActivity] D vri.reportNextDraw android.view.ViewRootImpl.handleResized:2365 android.view.ViewRootImpl.-$$Nest$mhandleResized:0 android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl:6901 android.view.ViewRootImpl$ViewRootHandler.handleMessage:6870 android.os.Handler.dispatchMessage:106
BufferQueueDebug E [Transition Root #3282: ActivityRecord{2603db4 u0 com.exa.app/com.tencent.qcloud.tuikit.tuichat.component.camera.CameraActivity t796 f}}#44682](this:0xb400007d4cc0aa50,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'Transition Root #3282: ActivityRecord{2603db4 u0 com.exa.app/com.tencent.qcloud.tuikit.tuichat.component.camera.CameraActivity t796 f}}#44682'
imsdk W TIM: |-TUIChat-TUIBaseChatMinimalistFragment |Chat background not found
VRI[TUIC2C...tActivity] D vri.Setup new sync=wmsSync-VRI[TUIC2CChatMinimalistActivity]#67
BufferQueueDebug E [808a340 ActivityRecordInputSink com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity#44683](this:0xb400007d4cc49a50,id:-1,api:0,p:-1,c:-1) id info cannot be read from '808a340 ActivityRecordInputSink com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity#44683'
BufferQueueDebug E [DefaultTransition Dim Layer for - Surface(name=ActivityRecord{eb3279 u0 com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity t796}#44542)/@0xa5fbd6#44684](this:0xb400007d4e55ea50,id:-1,api:0,p:-1,c:-1) id info cannot be read from 'DefaultTransition Dim Layer for - Surface(name=ActivityRecord{eb3279 u0 com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity t796}#44542)/@0xa5fbd6#44684'
VRI[TUIC2C...tActivity] D vri.reportDrawFinished
.drawingfishing I This is sticky GC, maxfree is 8388608 minfree is 524288
VRI[TUIC2C...tActivity] D vri.reportNextDraw android.view.ViewRootImpl.handleResized:2365 android.view.ViewRootImpl.-$$Nest$mhandleResized:0 android.view.ViewRootImpl$ViewRootHandler.handleMessageImpl:6901 android.view.ViewRootImpl$ViewRootHandler.handleMessage:6870 android.os.Handler.dispatchMessage:106
VRI[TUIC2C...tActivity] D vri.Setup new sync=wmsSync-VRI[TUIC2CChatMinimalistActivity]#69
ActivityManagerWrapper E getRecentTasks: mainTaskId=796 userId=0 windowMode=1 baseIntent=Intent { act=android.intent.action.MAIN flag=268435456 cmp=ComponentInfo{com.exa.app/com.exa.app.ui.splash.SplashActivity} }
VRI[TUIC2C...tActivity] D vri.reportDrawFinished
Camera D releaseCameraHook
HandWritingStubImpl I refreshLastKeyboardType: 1
HandWritingStubImpl I getCurrentKeyboardType: 1
BaseInputMethodService E onStartInput app:com.exa.app restarting:false
imsdk I TIM: |-TUIChat-CameraView |ICameraView SurfaceDestroyed
Camera D app passed NULL surface
Camera D releaseCameraHook
SimpleHookEventHandler D release
VirtualCameraProxy D disconnect
VirtualCameraManager D unbind virtual camera service
BLASTBufferQueue D [SurfaceView[com.exa.app/com.tencent.qcloud.tuikit.tuichat.component.camera.CameraActivity]#23](f:0,a:1) destructor()
BufferQueueConsumer D [SurfaceView[com.exa.app/com.tencent.qcloud.tuikit.tuichat.component.camera.CameraActivity]#23(BLAST Consumer)23](id:5cb600000017,api:0,p:-1,c:23734) disconnect
BLASTBufferQueue D [VRI[CameraActivity]#22](f:0,a:1) destructor()
BufferQueueConsumer D [VRI[CameraActivity]#22(BLAST Consumer)22](id:5cb600000016,api:0,p:-1,c:23734) disconnect
ContentCatcher_injector D Interceptor : notifyActivityStop: com.exa.app@com.tencent.qcloud.tuikit.tuichat.component.camera.CameraActivity@7026107
ContentCatcher_catcher D CatcherHolder : mCatcherList size: 0
imsdk I TIM: |-TUIChat-CameraActivity |onDestroy
imsdk I TIM: |-TUIChat-CameraInterface |doDestroyCamera camera is null
.drawingfishing W Accessing hidden field Landroid/view/inputmethod/InputMethodManager;->mCurRootView:Landroid/view/ViewRootImpl; (blocked, reflection, denied)
.drawingfishing W Accessing hidden field Landroid/view/inputmethod/InputMethodManager;->mServedView:Landroid/view/View; (blocked, reflection, denied)
.drawingfishing W Accessing hidden field Landroid/view/inputmethod/InputMethodManager;->mNextServedView:Landroid/view/View; (blocked, reflection, denied)
WindowOnBackDispatcher W sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda23@8603d23
ContentCatcher_injector D Interceptor : notifyActivityDestroy: com.exa.app@com.tencent.qcloud.tuikit.tuichat.component.camera.CameraActivity@7026107
ContentCatcher_catcher D CatcherHolder : mCatcherList size: 0
ContentCatcherManager E failed to get ContentCatcherService.
View D [Warning] assignParent to null: this = DecorView@7d0c4c9[CameraActivity]
imsdk I TIM: |-TUIChat-ChatPresenter |C2C message ReadReport userId is test_2123451
imsdk I TIM: |-message_read_report.cpp:305 SendC2CMessageReadRequest |c2c_user_id:test_2123451|c2c_tiny_id:144115286943067742|c2c_read_time:1740038350
imsdk E TIM: |-im_conversation_impl.cpp:237 MarkConversation |The conversation mark feature is available only to the Premium Edition. Please upgrade.
imsdk E TIM: |-TUIChat-ChatProvider |mark C2C conversation unread disable failed, code = 7013, desc = This feature is available only to the Premium Edition. Please upgrade.
imsdk I TIM: |-conversation_unread_info.cpp:419 HandleUpdateC2CUnreadInfo |conversation_key:c2c_test_2123451|unread_message_count:0|message_read_timestamp:1740038350|c2c_unread_info_sequence:0
imsdk D TIM: |-TUIChat-ChatProvider |cleanConversationUnreadMessageCount success
imsdk I TIM: |-TUIConversation-ConversationUtils |TIMConversation2ConversationInfo id:c2c_test_2123451|name:Yoparti Official|unreadNum:0
imsdk I TIM: |-TUIConversation-ConversationPresenter |onConversationChanged conversations:[ConversationInfo{type=0, unRead=0, conversationId='c2c_test_2123451', id='test_2123451', iconUrl='1', title='Yoparti Official', iconPath=https://img.yoparty.live/upload/images/2025-02-12/100.jpg, isGroup=false, top=false, lastMessageTime=1740038326, lastMessage=V2TIMMessage--->msgID:144115287243171665-1740038323-4203110429, timestamp:1740038326, sender:test_2123471, nickname:fadlymanap4953, faceUrl:https://web.yoparty.live/static/public/images/headImage/defaultImage/common.png, friendRemark:, nameCard:, groupID:null, userID:test_2123451, seq:126985278, random:4203110429, status:2, isSelf:true, isRead:true, isPeerRead:false, needReadReceipt:false, priority:0, groupAtUserList:[], elemType:3, localCustomData:, localCustomInt:0, cloudCustomData:{"messageFeature":{"needTyping":1,"version":1}}, isExcludeFromUnreadCount:false, isExcludeFromLastMessage:false, offlinePushInfo:com.tencent.imsdk.
ServiceManager D callService : TUIChatService method : GetTUIMessageBean
ServiceManager D callService : TUIChatService method : GetLastMsgDisplayString
imsdk I TIM: |-TUIConversation-ConversationPresenter |onConversationChanged conversationInfo ConversationInfo{type=0, unRead=0, conversationId='c2c_test_2123451', id='test_2123451', iconUrl='1', title='Yoparti Official', iconPath=https://img.yoparty.live/upload/images/2025-02-12/100.jpg, isGroup=false, top=false, lastMessageTime=1740038326, lastMessage=V2TIMMessage--->msgID:144115287243171665-1740038323-4203110429, timestamp:1740038326, sender:test_2123471, nickname:fadlymanap4953, faceUrl:https://web.yoparty.live/static/public/images/headImage/defaultImage/common.png, friendRemark:, nameCard:, groupID:null, userID:test_2123451, seq:126985278, random:4203110429, status:2, isSelf:true, isRead:true, isPeerRead:false, needReadReceipt:false, priority:0, groupAtUserList:[], elemType:3, localCustomData:, localCustomInt:0, cloudCustomData:{"messageFeature":{"needTyping":1,"version":1}}, isExcludeFromUnreadCount:false, isExcludeFromLastMessage:false, offlinePushInfo:com.tencent.imsd
MIUIInput D [MotionEvent] ViewRootImpl windowName 'com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity', { action=ACTION_DOWN, id[0]=0, pointerCount=1, eventTime=193057373, downTime=193057373, phoneEventTime=15:59:11.415 } moveCount:0
MIUIInput D [MotionEvent] ViewRootImpl windowName 'com.exa.app/com.tencent.qcloud.tuikit.tuichat.minimalistui.page.TUIC2CChatMinimalistActivity', { action=ACTION_UP, id[0]=0, pointerCount=1, eventTime=193057373, downTime=193057373, phoneEventTime=15:59:11.414 } moveCount:0
图片返回URL,获取资源的类型失败了。
具体代码是这个地方出了错误,无法获取图片的类型
MimeTypeMap.getSingleton().getMimeTypeFromExtension(fileExtension);
返回了null
Metadata
Metadata
Assignees
Labels
No labels