ScribbleLabApp / ScribbleLab

A powerful notetaking app that’s features goes way beyond - Developed by students for students
https://scribblelabapp.github.io/website
Apache License 2.0
23 stars 8 forks source link

🔴 Terminating app due to uncaught exception 'NSGenericException' #51

Closed N3v1 closed 7 months ago

N3v1 commented 7 months ago

Description

When double tapping on the ("+") Button on the Home Screen ScribbleLab will Crash, enters llDB and a fence hang of 504ms will be reported. Furthermore hang-detection detected a hang over +9000ms.

[!Note] This crash appears on a real device - so it's not a Xcode failure and it was reproduced more than 2 times

Version

- Version
Build 1 (02cdf18)
Version 0.0.1-alpha
Device Details -
Device iPad Pro 11" 2023
SSD 128 GB
RAM 8 GB
iOS/iPadOS v. 17.2
Xcode v. 15.2 (15C500b)
Device support iOS iPad14.3 17.2 (21C62)

To Reproduce

  1. Build and run ScribbleLab (in Xcode for logs and debug sessions)
  2. Log-In (if not logged in)
  3. visit HomeScreen
  4. double tap '+' icon in NavigationBar
  5. See Xcode

Expected Behavior

The confirmation dialogue should show up and application shouldn't crash.

Additional Context

Console output:

*** Terminating app due to uncaught exception 'NSGenericException', reason: 
'Your application has presented a UIAlertController (<SwiftUI.PlatformAlertController: 0x15f017e00>) of style UIAlertControllerStyleActionSheet from
 _TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVS_7AnyViewVS_12RootModifier__ (<_TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVS_7AnyViewVS_12RootModifier__: 0x15c01c400>). 
The modalPresentationStyle of a UIAlertController with this style is UIModalPresentationPopover. 
You must provide location information for this popover through the alert controller's popoverPresentationController. You must provide either a sourceView and sourceRect or a barButtonItem.  
If this information is not known when you present the alert controller, you may provide it in the UIPopoverPresentationControllerDelegate method -prepareForPopoverPresentation.'
*** First throw call stack:
(0x187f8e69c 0x180293c80 0x18a79a73c 0x18a2a3c08 0x18a2a2b38 0x18a17835c 0x18a178140 0x18a178058
 0x18a177de4 0x18a177ce0 0x18a1777e4 0x18a176ed4 0x18a176f90 0x187ed912c 0x187ed83a8 0x187ed6b5c 0x187ed5898
 0x187ed5478 0x1cb42e4f8 0x18a2f962c 0x18a2f8c68 0x18cd094b8 0x18cd092fc 0x18c979e90 0x100eddcd8 
0x100eddf3c 0x1aabfadcc)

libc++abi: terminating due to uncaught exception of type NSException

Screenshots

Bildschirmfoto 2024-01-23 um 10 05 45

https://github.com/ScribbleLabApp/ScribbleLab/assets/129311622/bc969698-e7b0-4bb3-8a12-bd1dfae5d4fc

Is there an existing issue for this?