Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random crash when rejoining community #16967

Closed
anastasiyaig opened this issue Dec 13, 2024 · 1 comment · Fixed by #16971 or #16976
Closed

Random crash when rejoining community #16967

anastasiyaig opened this issue Dec 13, 2024 · 1 comment · Fixed by #16971 or #16976
Assignees
Labels
bug Something isn't working core-team
Milestone

Comments

@anastasiyaig
Copy link
Contributor

i tried to leave and rejoin the community and app now constantly crashing to me:

  • when i left community and clicked community tab
  • when i tried to import communty
  • when i clicked Join community
frame #13: 0x0000555555a61990 nim_status_client`getCuratedCommunities__app95serviceZserviceZcommunityZservice_36019(self=0x00007ffff39315f0) at iterators_1.nim:97:2
    frame #14: 0x0000555555a61bc3 nim_status_client`onAsyncLoadCuratedCommunitiesDone__app95serviceZserviceZcommunityZservice_52951(self=<unavailable>, response=<unavailable>) at service.nim:1858:43
@jrainville
Copy link
Member

Full debug trace:

* thread #1, name = 'nim_status_clie', stop reason = signal SIGSEGV: invalid address (fault address: 0x4c746e00)
    frame #0: 0x000055555567368a nim_status_client`rawAlloc__system_5083(a=0x00007ffff6292b68, requestedSize=69) at alloc.nim:735:37
   732 	        result = c.freeList
   733 	        when not defined(gcDestructors):
   734 	          sysAssert(c.freeList.zeroField == 0, "rawAlloc 8")
-> 735 	        c.freeList = c.freeList.next
   736 	      dec(c.free, size)
   737 	      sysAssert((cast[ByteAddress](result) and (MemAlign-1)) == 0, "rawAlloc 9")
   738 	      sysAssert(allocInv(a), "rawAlloc: end c != nil")
(lldb) bt
* thread #1, name = 'nim_status_clie', stop reason = signal SIGSEGV: invalid address (fault address: 0x4c746e00)
  * frame #0: 0x000055555567368a nim_status_client`rawAlloc__system_5083(a=0x00007ffff6292b68, requestedSize=69) at alloc.nim:735:37
    frame #1: 0x0000555555676e24 nim_status_client`rawNewObj__system_6256(typ=0x00005555562fe020, size=53, gch=<unavailable>) at gc.nim:458:24
    frame #2: 0x00005555556777c6 nim_status_client`copyString at gc.nim:482:11
    frame #3: 0x00005555556777c1 nim_status_client`copyString at sysstr.nim:48:24
    frame #4: 0x00005555556777af nim_status_client`copyString(src=0x00007ffe27d48d70) at sysstr.nim:110:13
    frame #5: 0x000055555567a4a4 nim_status_client`genericAssignAux__system_7029 [inlined] copyString(src=<unavailable>) at sysstr.nim:107:4
    frame #6: 0x000055555567a49f nim_status_client`genericAssignAux__system_7029(dest=0x00007ffec6e0df80, src=0x00007ffe263fbf80, mt=0x00005555563124c0, shallow=<unavailable>) at assign.nim:75:39
    frame #7: 0x000055555567a669 nim_status_client`genericAssignAux__system_7034(dest=0x00007ffec6e0dec0, src=0x00007ffe263fbec0, n=0x0000555556351a00, shallow=false) at assign.nim:25:6
    frame #8: 0x000055555567a46e nim_status_client`genericAssignAux__system_7029(dest=<unavailable>, src=<unavailable>, mt=0x0000555556363360, shallow=<unavailable>) at assign.nim:99:7
    frame #9: 0x000055555567a669 nim_status_client`genericAssignAux__system_7034(dest=0x00007fff834b0e80, src=0x00007ffe263fa2e0, n=0x0000555556355b00, shallow=false) at assign.nim:25:6
    frame #10: 0x000055555567a46e nim_status_client`genericAssignAux__system_7029(dest=<unavailable>, src=<unavailable>, mt=0x0000555556363260, shallow=<unavailable>) at assign.nim:99:7
    frame #11: 0x000055555567a746 nim_status_client`genericSeqAssign [inlined] genericAssign(mt=<unavailable>, src=<unavailable>, dest=<unavailable>) at assign.nim:143:2
    frame #12: 0x000055555567a73e nim_status_client`genericSeqAssign(dest=0x00007fffffffc388, src=0x00007ffe263fa050, mt=0x0000555556363260) at assign.nim:179:2
    frame #13: 0x0000555555a61990 nim_status_client`getCuratedCommunities__app95serviceZserviceZcommunityZservice_36019(self=0x00007ffff39315f0) at iterators_1.nim:97:2
    frame #14: 0x0000555555a61bc3 nim_status_client`onAsyncLoadCuratedCommunitiesDone__app95serviceZserviceZcommunityZservice_52951(self=<unavailable>, response=<unavailable>) at service.nim:1858:43
    frame #15: 0x00005555556f9faf nim_status_client`qobjectCallback(qobjectPtr=<unavailable>, slotNamePtr=<unavailable>, dosArgumentsLength=<unavailable>, dosArguments=<unavailable>) at qobject.nim:52:2
    frame #16: 0x0000555555f3eeed nim_status_client`DOS::DosQObjectImpl::executeSlot(QString const&, std::vector<QVariant, std::allocator<QVariant> > const&) + 349
    frame #17: 0x0000555555f3f13d nim_status_client`DOS::DosQObjectImpl::executeSlot(QMetaMethod const&, void**, int) + 445
    frame #18: 0x0000555555f3f410 nim_status_client`DOS::DosQObjectImpl::executeSlot(int, void**) + 112
    frame #19: 0x0000555555f3fa9e nim_status_client`DOS::DosQObjectImpl::qt_metacall(QMetaObject::Call, int, void**) + 158
    frame #20: 0x00007ffff3cccda3 libQt5Core.so.5`QObject::event(this=0x000055555679b9b0, e=0x00007ffee0001390) at qobject.cpp:1314
    frame #21: 0x00007ffff3c9d808 libQt5Core.so.5`QCoreApplication::notifyInternal2(receiver=0x000055555679b9b0, event=0x00007ffee0001390) at qcoreapplication.cpp:1063
    frame #22: 0x00007ffff3ca0882 libQt5Core.so.5`QCoreApplicationPrivate::sendPostedEvents(receiver=0x0000000000000000, event_type=0, data=0x0000555556431c40) at qcoreapplication.cpp:1817
    frame #23: 0x00007ffff3ca0e38 libQt5Core.so.5`QCoreApplication::sendPostedEvents(receiver=<unavailable>, event_type=<unavailable>) at qcoreapplication.cpp:1676 [artificial]
    frame #24: 0x00007ffff3cf9b33 libQt5Core.so.5`::postEventSourceDispatch(s=0x00005555564b2e80, (null)=<unavailable>, (null)=<unavailable>) at qeventdispatcher_glib.cpp:277
    frame #25: 0x00007ffff78bdd3b libglib-2.0.so.0`g_main_context_dispatch + 619
    frame #26: 0x00007ffff79132b8 libglib-2.0.so.0`___lldb_unnamed_symbol2709 + 488
    frame #27: 0x00007ffff78bb3e3 libglib-2.0.so.0`g_main_context_iteration + 51
    frame #28: 0x00007ffff3cf91cc libQt5Core.so.5`QEventDispatcherGlib::processEvents(this=0x0000555556852770, flags=<unavailable>) at qeventdispatcher_glib.cpp:423
    frame #29: 0x00007ffff3c9c21a libQt5Core.so.5`QEventLoop::exec(this=0x00007fffffffcf00, flags=<unavailable>) at qeventloop.cpp:232
    frame #30: 0x00007ffff3ca51d3 libQt5Core.so.5`QCoreApplication::exec() at qcoreapplication.cpp:1371
    frame #31: 0x0000555555e11567 nim_status_client`mainProc__nim95status95client_1514 at nim_status_client.nim:252:2
    frame #32: 0x0000555555e89466 nim_status_client`NimMain at io_interface.nim:876:3
    frame #33: 0x00005555555d0121 nim_status_client`main(argc=<unavailable>, args=<unavailable>, env=<unavailable>) at io_interface.nim:883:2
    frame #34: 0x00007fffe9c29d90 libc.so.6`__libc_start_call_main(main=(nim_status_client`main at io_interface.nim:879:45), argc=1, argv=0x00007fffffffd988) at libc_start_call_main.h:58:16
    frame #35: 0x00007fffe9c29e40 libc.so.6`__libc_start_main_impl(main=(nim_status_client`main at io_interface.nim:879:45), argc=1, argv=0x00007fffffffd988, init=0x00007ffff7ffd040, fini=<unavailable>, rtld_fini=<unavailable>, stack_end=0x00007fffffffd978) at libc-start.c:392:3
    frame #36: 0x00005555555d4d85 nim_status_client`_start + 37

@jrainville jrainville self-assigned this Dec 13, 2024
@jrainville jrainville moved this to In Progress in Status Desktop/Mobile Board Dec 13, 2024
jrainville added a commit that referenced this issue Dec 13, 2024
Fixes #16967

I cannot confirm for sure if the crash is fixed.
However, using the trace from the crash, I removed the function that caused the crash, since it's not useful, and since then, I couldn't reproduce the issue.
The problem is that the issue was not that easily reproducible.
@jrainville jrainville moved this from In Progress to Code Review in Status Desktop/Mobile Board Dec 13, 2024
@jrainville jrainville linked a pull request Dec 16, 2024 that will close this issue
jrainville added a commit that referenced this issue Dec 16, 2024
Fixes #16967

I cannot confirm for sure if the crash is fixed.
However, using the trace from the crash, I removed the function that caused the crash, since it's not useful, and since then, I couldn't reproduce the issue.
The problem is that the issue was not that easily reproducible.
jrainville added a commit that referenced this issue Dec 16, 2024
Fixes #16967

I cannot confirm for sure if the crash is fixed.
However, using the trace from the crash, I removed the function that caused the crash, since it's not useful, and since then, I couldn't reproduce the issue.
The problem is that the issue was not that easily reproducible.
jrainville added a commit that referenced this issue Dec 17, 2024
Fixes #16967

I cannot confirm for sure if the crash is fixed.
However, using the trace from the crash, I removed the function that caused the crash, since it's not useful, and since then, I couldn't reproduce the issue.
The problem is that the issue was not that easily reproducible.
@github-project-automation github-project-automation bot moved this from Code Review to Done in Status Desktop/Mobile Board Dec 17, 2024
jrainville added a commit that referenced this issue Dec 17, 2024
Fixes #16967

I cannot confirm for sure if the crash is fixed.
However, using the trace from the crash, I removed the function that caused the crash, since it's not useful, and since then, I couldn't reproduce the issue.
The problem is that the issue was not that easily reproducible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment