-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
SwiftUI frames show OUTLINED_FUNCTION #3081
Comments
This might be related to apple/swift#65059. |
AFAIK |
The funny thing is, in Xcode Organizer, under crashes, I can see the real function names for these addresses. For example, what Sentry reports as:
is actually equivalent to this stack in the Xcode organizer:
Based on this, I'm guessing Sentry searches for the function name closest to the address, whereas Apple has internal dSYMs for private frameworks. That said, I wonder if we could either: A. Reach out to Apple, and express the need for them to share the internal SwiftUI dSYMs B. Build our own representation of the private SwiftUI stacks. For example, if we wrote a script that took in a symbolized stack as input from Xcode Organizer and exported the mappings to a dSYM file. As long as we ensure that the iOS version & device remains the same, I think this should be fine. We could then use this to properly symbolize SwiftUI stacks |
I don't think so. This are closures created in the project, they are not part of the private framework. |
@filip-doordash, what do you mean with |
well, you only knew that they were closures thanks to the properly symbolized stack trace that I attached -- which aren't symbols publicly known :)
Negative. Open Xcode and go to -> Window -> Organizer or (CMD+OPTION+SHIFT+O), and you'll see Reports under its tab. Next, click on "crashes". I'm saying that these reports are symbolized with more information than Sentry. I also understand that Sentry downloads the IPSW image and extracts symbols from the dyld_shared_cache. But I don't think that is guaranteed to have the same symbols as Apple would. |
I know that they are closures because
This is a crash report from AppConnect. Which make me believe that is possible to generate a user friendly description with the project dSYMs alone. |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you label it "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
We still need to investigate whether is possible to generate an user friendly description. |
Ok, so I got a thing wrong here, this "OUTLINED_FUNCTION" frames are from SwiftUI itself and not the app. Our symbolication process do have a proper description for closures when the symbols are uploaded. I don't think we need to worry too much about this, since this frames are no related to the app code and we have no access to its symbols. |
Emerge Tools recently published a blog post on how they achieved symbolicating SwiftUI memory addresses. We could try a similar approach and give them credits in our code. |
Platform
iOS
Version
8.4.0
Steps to Reproduce
One of our customers reported this problem. I don't know how to reproduce this.
Expected Result
The event should display meaningful function names for SwiftUI frames.
Actual Result
The stacktrace shows
OUTLINED_FUNCTION
The text was updated successfully, but these errors were encountered: