Satellite-im / Uplink

(Alpha Software) Secure, Encrypted, P2P chat written atop Warp, IPFS, LibP2P, Dioxus and many more awesome projects and protocols.
MIT License
160 stars 22 forks source link

crash(chats): Crash when naving to chat after updating profile picrure #1650

Closed phillsatellite closed 10 months ago

phillsatellite commented 10 months ago

Issue: After updating your profile picture, if you navigate to the chat page a segmentation fault will appear in terminal and app will force close.

OS: I've only seem to be able to replicate on MacOS 14 so far

Crash details:

Screenshot 2023-12-18 at 3 51 19 PM

2023-12-18 15:50:04 | DEBUG | warp initialization
2023-12-18 15:50:04 | DEBUG | add_to_themes: /Users/phillwisniewski/.uplink/themes
2023-12-18 15:50:04 | DEBUG | add_to_themes: ui/extra/themes
2023-12-18 15:50:04 | DEBUG | starting automute
2023-12-18 15:50:04 | DEBUG | starting automute helper
2023-12-18 15:50:04 | DEBUG | add_to_themes: /Users/phillwisniewski/.uplink/themes
2023-12-18 15:50:04 | DEBUG | add_to_themes: ui/extra/themes
2023-12-18 15:50:04 | DEBUG | received warp cmd: Tesseract { AccountExists } 
2023-12-18 15:50:04 | DEBUG | account_exists: true
2023-12-18 15:50:05 | DEBUG | received warp cmd: MultiPass { TryLogIn } 
2023-12-18 15:50:06 | DEBUG | add_to_themes: /Users/phillwisniewski/.uplink/themes
2023-12-18 15:50:06 | DEBUG | add_to_themes: ui/extra/themes
2023-12-18 15:50:06 | DEBUG | warp_runner::manager::run
2023-12-18 15:50:06 | DEBUG | state::mutate: SidebarHidden: true
2023-12-18 15:50:06 | DEBUG | add_to_themes: /Users/phillwisniewski/.uplink/themes
2023-12-18 15:50:06 | DEBUG | add_to_themes: ui/extra/themes
2023-12-18 15:50:06 | DEBUG | Found extension: "/Users/phillwisniewski/.uplink/extensions/libemoji_selector.dylib"
objc[56744]: Class NotificationCenterDelegate is implemented in both /Users/phillwisniewski/Uplink/target/release/uplink (0x108e88748) and /Users/phillwisniewski/.uplink/extensions/libemoji_selector.dylib (0x13560c5f8). One of the two will be used. Which one is undefined.
2023-12-18 15:50:06 | DEBUG | Loaded extension: "/Users/phillwisniewski/.uplink/extensions/libemoji_selector.dylib"
2023-12-18 15:50:06 | DEBUG | state::mutate: RegisterExtensions
2023-12-18 15:50:06 | DEBUG | Loaded 1 extensions.
2023-12-18 15:50:06 | DEBUG | WARP CMD: RayGun { InitializeWarp } 
2023-12-18 15:50:06 | DEBUG | WARP CMD: Constellation { GetItemsFromCurrentDirectory } 
2023-12-18 15:50:06 | DEBUG | Updating directories opened to browse
2023-12-18 15:50:06 | INFO | Get items from current directory worked!
2023-12-18 15:50:06 | DEBUG | WARP CMD: RayGun { FetchMessages } 
2023-12-18 15:50:06 | ERROR | failed to check for release: .dmg file not found in software release
2023-12-18 15:50:06 | DEBUG | init_chat_data
2023-12-18 15:50:06 | DEBUG | use_effect for init_msg_scroll 89706909-51e4-4b9b-6c40-f41b7d4920d7
2023-12-18 15:50:06 | DEBUG | received multipass event: IdentityOnline { did: did:key:z6MkjRvgsbsGEDZ1xn6dUfbKSQPk4GVJtwXWAUxJbxgBeCDt }
2023-12-18 15:50:06 | DEBUG | process_warp_event: MultiPassEvent { FriendOnline } 
2023-12-18 15:50:13 | DEBUG | WARP CMD: MultiPass { UpdateProfilePicture } 
2023-12-18 15:50:14 | DEBUG | state::mutate: AddToastNotification
2023-12-18 15:50:14 | DEBUG | WARP CMD: RayGun { FetchMessages } 
2023-12-18 15:50:14 | DEBUG | init_chat_data
2023-12-18 15:50:14 | DEBUG | use_effect for init_msg_scroll 89706909-51e4-4b9b-6c40-f41b7d4920d7
zsh: segmentation fault  cargo run --release
phillwisniewski@phills-air Uplink % 
lgmarchi commented 10 months ago

How to replicate easily this bug

  1. Go to profile page, update any info, wait for toast notification

  2. Click in chats

  3. Don't move mouse per 3 seconds,

  4. Move mouse pointer to folders, in horizontal way

https://github.com/Satellite-im/Uplink/assets/63157656/734ae237-0b74-4bbe-9021-a41e59cd631e