Skip to content

database crash #110

@alltheseas

Description

@alltheseas

I'm crashing on master when i click on any profile. Only happens with my main database, not a fresh one


Assertion failed: (((uintptr_t)entry % 8) == 0), function ndb_note_meta_find_entry_impl, file metadata.c, line 244.
Process 74465 stopped
* thread #17, stop reason = hit program assert
    frame #4: 0x00000001012cad4c notedeck`ndb_note_meta_clone_with_entry.cold.2 + 36
notedeck`ndb_note_meta_clone_with_entry.cold.3:
->  0x1012cad4c <+0>:  stp    x29, x30, [sp, #-0x10]!
    0x1012cad50 <+4>:  mov    x29, sp
    0x1012cad54 <+8>:  adrp   x0, 7332
    0x1012cad58 <+12>: add    x0, x0, #0x555 ; "ndb_note_meta_clone_with_entry"
(lldb) bt
* thread #17, stop reason = hit program assert
    frame #0: 0x000000018c616388 libsystem_kernel.dylib`__pthread_kill + 8
    frame #1: 0x000000018c64f88c libsystem_pthread.dylib`pthread_kill + 296
    frame #2: 0x000000018c558a3c libsystem_c.dylib`abort + 124
    frame #3: 0x000000018c557c70 libsystem_c.dylib`__assert_rtn + 284
  * frame #4: 0x00000001012cad4c notedeck`ndb_note_meta_clone_with_entry.cold.2 + 36
    frame #5: 0x00000001011c34b8 notedeck`ndb_note_meta_clone_with_entry + 772
    frame #6: 0x00000001011bcadc notedeck`ndb_write_note + 3500
    frame #7: 0x00000001011bb48c notedeck`ndb_writer_thread + 956
    frame #8: 0x000000018c64fc0c libsystem_pthread.dylib`_pthread_start + 136

crap. that assert is bad. Means the database is misaligned

reported by @kernelkind

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions