chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

while adding around 10 members to private group, getting crash,

Open rahulsharmagbpec opened this issue 8 years ago • 3 comments

 *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-14 15:47:13.063 28808-28808/? A/DEBUG: Revision: '0'
09-14 15:47:13.063 28808-28808/? A/DEBUG: ABI: 'arm64'
09-14 15:47:13.063 28808-28808/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-14 15:47:13.075 28808-28808/? A/DEBUG: Abort message: 'Error, cannot access an invalid/free'd bitmap here!'
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x0   0000000000000000  x1   0000000000006fa8  x2   0000000000000006  x3   0000000000000008
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x4   8000000000000000  x5   8000000000000000  x6   8000000000000000  x7   0000000000000080
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x8   0000000000000083  x9   0000000010000000  x10  0000007ff515c290  x11  0000000000000001
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x12  0000007ff515c3b0  x13  0000000000000038  x14  ffffffffffffffff  x15  0000b2a39ba985fc
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x16  00000064ea519fa8  x17  000000746a7adc1c  x18  0000000000000010  x19  0000000000006fa8
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x20  0000000000006fa8  x21  0000000000000083  x22  0000007ff515cacc  x23  00000073e4e5f72c
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x24  0000000000000010  x25  000000746bd7ca40  x26  00000073e70c2aa0  x27  0000000000000004
09-14 15:47:13.075 28808-28808/? A/DEBUG:     x28  0000000000000012  x29  0000007ff515c2d0  x30  000000746a762b6c
09-14 15:47:13.075 28808-28808/? A/DEBUG:     sp   0000007ff515c290  pc   000000746a762b94  pstate 0000000060000000
09-14 15:47:13.425 1521-1536/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.app.mypackagename/com.app.mypackagename.activities.MyChatActivity/23
09-14 15:47:13.551 28808-28808/? A/DEBUG: backtrace:
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #00 pc 000000000001db94  /system/lib64/libc.so (abort+120)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #01 pc 0000000000007f84  /system/lib64/liblog.so (__android_log_assert+296)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #02 pc 000000000012b240  /system/lib64/libandroid_runtime.so (Bitmap_copyColorSpace(_JNIEnv*, _jobject*, long, long)+184)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #03 pc 0000000000ab95c0  /system/framework/arm64/boot-framework.oat (offset 0x626000) (android.content.res.AssetManager.copyTheme [DEDUPED]+160)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #04 pc 000000000054ae4c  /system/lib64/libart.so (art_quick_invoke_static_stub+604)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #05 pc 00000000000dc5d0  /system/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+264)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #06 pc 000000000029b498  /system/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+344)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #07 pc 00000000002969d4  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb1ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+640)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #08 pc 0000000000535738  /system/lib64/libart.so (MterpInvokeStaticRange+192)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #09 pc 000000000053ce14  /system/lib64/libart.so (ExecuteMterpImpl+15380)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #10 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.551 28808-28808/? A/DEBUG:     #11 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #12 pc 00000000002969b0  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb1ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+604)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #13 pc 0000000000535738  /system/lib64/libart.so (MterpInvokeStaticRange+192)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #14 pc 000000000053ce14  /system/lib64/libart.so (ExecuteMterpImpl+15380)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #15 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #16 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #17 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #18 pc 0000000000534018  /system/lib64/libart.so (MterpInvokeStatic+264)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #19 pc 000000000053cb14  /system/lib64/libart.so (ExecuteMterpImpl+14612)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #20 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #21 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #22 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #23 pc 0000000000534018  /system/lib64/libart.so (MterpInvokeStatic+264)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #24 pc 000000000053cb14  /system/lib64/libart.so (ExecuteMterpImpl+14612)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #25 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #26 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #27 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #28 pc 0000000000534018  /system/lib64/libart.so (MterpInvokeStatic+264)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #29 pc 000000000053cb14  /system/lib64/libart.so (ExecuteMterpImpl+14612)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #30 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #31 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #32 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #33 pc 0000000000534018  /system/lib64/libart.so (MterpInvokeStatic+264)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #34 pc 000000000053cb14  /system/lib64/libart.so (ExecuteMterpImpl+14612)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #35 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.552 28808-28808/? A/DEBUG:     #36 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #37 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #38 pc 0000000000534018  /system/lib64/libart.so (MterpInvokeStatic+264)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #39 pc 000000000053cb14  /system/lib64/libart.so (ExecuteMterpImpl+14612)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #40 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #41 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #42 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #43 pc 0000000000534018  /system/lib64/libart.so (MterpInvokeStatic+264)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #44 pc 000000000053cb14  /system/lib64/libart.so (ExecuteMterpImpl+14612)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #45 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #46 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #47 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #48 pc 0000000000533b80  /system/lib64/libart.so (MterpInvokeInterface+1576)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #49 pc 000000000053cb94  /system/lib64/libart.so (ExecuteMterpImpl+14740)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #50 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #51 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #52 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #53 pc 0000000000533b80  /system/lib64/libart.so (MterpInvokeInterface+1576)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #54 pc 000000000053cb94  /system/lib64/libart.so (ExecuteMterpImpl+14740)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #55 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #56 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #57 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #58 pc 0000000000532ba0  /system/lib64/libart.so (MterpInvokeVirtual+652)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #59 pc 000000000053c994  /system/lib64/libart.so (ExecuteMterpImpl+14228)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #60 pc 0000000000275bfc  /system/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame&, art::JValue, bool)+444)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #61 pc 000000000027b7c8  /system/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::DexFile::CodeItem const*, art::ShadowFrame*, art::JValue*)+216)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #62 pc 0000000000295a6c  /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+668)
09-14 15:47:13.553 28808-28808/? A/DEBUG:     #63 pc 0000000000532ba0  /system/lib64/libart.so (MterpInvokeVirtual+652)

rahulsharmagbpec avatar Sep 14 '18 10:09 rahulsharmagbpec

Hi @rahulsharmagbpec could you post the code you're using to write the users?

bensmiley avatar Sep 14 '18 15:09 bensmiley

@bensmiley Here is the code which am using to create private group.

MySelectContactActivity.this.createAndOpenThread(groupName, users)
                                .observeOn(AndroidSchedulers.mainThread())
                                .subscribe((thread, throwable) -> {
                                    dismissProgressDialog();
                                    finish();
                                });

protected Single<Thread> createAndOpenThread(String name, List<User> users) {
        return NM.thread().createThread(name, users)
                .observeOn(AndroidSchedulers.mainThread())
                .doOnSuccess(thread -> {
                    if (thread != null) {
                                InterfaceManager.shared().a.startChatActivityForID(getApplicationContext(), thread.getEntityID());
                    }
                }).doOnError(throwable -> ToastHelper.show(getApplicationContext(), co.chatsdk.ui.R.string.create_thread_with_users_fail_toast));
    }

rahulsharmagbpec avatar Sep 14 '18 16:09 rahulsharmagbpec

@rahulsharmagbpec We have made a large number of changes to the App in the last few months. Please can you update to the newest version and check if the problem still persists. If it does then please re-open this issue.

thecmart avatar Jun 28 '19 17:06 thecmart