-
-
Notifications
You must be signed in to change notification settings - Fork 306
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
No automatic Crash upload #2975
Comments
@rakuyoMo, did you detach the debugger? The SDK can't report crashes when the debugger is attached. |
What is |
The debugger of Xcode. Please try to run your app without a debugger attached. |
I just opened a PR to clarify this in the code docs #2976. |
I built a test environment ipa using the Debug certificate, installed it and ran my app off Xcode, clicking the button triggered a crash, but still nothing in the web panel. After triggering the flashback, I have opened the app again. If I'm not "out of the debugger" by doing this, can you tell me how to get out of the debugger? I'm sorry, I really don't know what to do to get out of the debugger. |
Thank you for your explanation. But
I think the problem maybe lies elsewhere? |
Can you turn set |
The logs are very voluminous and I have added a log.zip file. It contains two parts of logs before and after the crash is triggered. |
I found this #2851, they could be the same problem, But my code doesn't delete any local files (there are created, could it be related?) . I hope the above log will be of some help. |
Yep #2851 could be related. The crash log shows
It seems like you maybe delete some folders while the app is starting. Does this https://docs.sentry.io/platforms/apple/troubleshooting/#sentryfilemanager-failed-to-write-data-to-path help? |
I saw the documentation, but by looking at the logs, I see that during initialization, SentrySDK doesn't seem to create any files in the If the relevant file is created when initializing SentrySDK, is there any log output? I am not aware of any related logs at the moment. |
I run the application through the emulator so I can track the status of the files more easily. I find that the files in the Maybe I'm missing some configuration? UPDATE: Again, to add, after the crash was triggered, the screenshot file existed in the This JSON file in the Reports folder was created when the SDK was initialized? I don't think I've ever seen this file before. I tried downgrading the SDK to version 8.3.0 and the problem persists. |
@rakuyoMo, can you try disabling both
The SDK saves the screenshot and the view hierarchy after creating the crash report. It could be that the screenshot and view hierarchy files somehow interfere crash report. As signal handlers are notoriously difficult to work with and the restrictions placed on us are quite limiting we have to partially bend the rules of what is acceptable for making these features work, but we didn't have any issues so far. |
@philipphofmann I finally found the problem, our app name with the environment identifier on it. For example: "AppName/Test", "AppName/Debug", etc. The backslash character The solution is simple, luckily the symbol is irrelevant and we can use But I think this should be a bug, right? Because there may be cases where the backslash character in the App name is not replaceable. Or, expect the SDK to detect such times and throw targeted exceptions or logs. For example, explicitly tell the developer that the error is caused by an illegal character (or some other more accurate name) on the App name. |
Thanks a lot for the update, @rakuyoMo. To be on the same page, please be more specific about what you mean by app name. Is it the project name in Xcode, or where precisely in Xcode do you specify the app name? And yes, this seems like a bug. Thanks for finding it 😃. |
|
Platform
iOS
Installed
CocoaPods
Version
8.5.0
Steps to Reproduce
application(_:, didFinishLaunchingWithOptions:)
method:SentrySDK.crash()
method after the button is clicked.Expected Result
App crashes and receives a crash log in our self-built Sentry panel.
Actual Result
The app crashes, but the web panel is empty.
I've tried calling the
capture()
method and manually reporting anNSError
, and it shows up immediately in the web panel.I also get
WatchdogTermination
in the web panel, but the only thing that doesn't show up is the crash.Are there any configurations that would affect this behavior? Any help would be appreciated, thanks.
The text was updated successfully, but these errors were encountered: