Comments (5)
Steps to reproduce:
- Create any iOS project and call Crashes.trackError
- Check the results in AppCenter
- The error is listed as originating in MSACExceptionModel.initWithError rather than from the actual calling code (in my example it should be ViewController.sendErrorButtonTapped)
I'm attaching a sample project. You need to replace line 16 in AppDelegate.swift
static let appCenterSecret = "your app secret here"
with a valid AppCenter secret.
Run the app and tap Send Error several times
from appcenter-sdk-apple.
You can implement it in this way. In the screenshot you can see how the data in the stack trace is displayed on the portal.
let model = ExceptionModel(withType: "MyExceptionType", exceptionMessage: "ExceptionCustomMessage", stackTrace: ["firstline fileName1 address1 className1 methodName1 somedata", "secondline fileName2 address2 className2 methodName2 somedata", "thirdline fileName2 address2 className2 methodName2 somedata"])!
Crashes.trackException(model, properties: nil, attachments: nil)
from appcenter-sdk-apple.
Hi @daleswift and thanks for reaching out to us, could you please provide us with the steps to reproduce your error?
from appcenter-sdk-apple.
I apologize for the delay, the fact is that if the stack trace generation format does not suit you, then it is possible to send your MCAExceptionModel with a defined stack trace. Therefore, your workaround is an architecturally expected solution. I will close this issue but if you have any additional questions feel free to reopen it.
from appcenter-sdk-apple.
Describe alternatives you've considered As a workaround, I am capturing a call stack myself and prepending a surrogate frame to include the actual failing method, then using the constructor ExceptionModel(withType:exceptionMessage:stacktrace)
@daleswift Could you share a code example how do you creating ExceptionModel?
I mean what you exactly you are putting in withType, exceptionMessage, stacktrace params?
from appcenter-sdk-apple.
Related Issues (20)
- Update App Center SDK to include privacy manifest HOT 10
- Spawning lots of short lived threads when initialising `MSACCrashes` instance HOT 16
- Enable App Center will cause SwiftUI's accent color to disappear. HOT 7
- error: Signing for "AppCenter_AppCenterDistribute" requires a development team. HOT 3
- Unclear how to determine current AppCenter Distribute project HOT 4
- Add documentation for dataResidencyRegion HOT 3
- Crash at launch on macOS 11 ARM64 - setupLogBuffer HOT 3
- trackError and trackException do not parse call stack correctly HOT 2
- Protobuf: could not find object file symbol for symbol HOT 21
- Slow network requests HOT 1
- Freeze on iOS Platform When App Crashes in KMM Project HOT 3
- AppCenter metrics and crash report errors. HOT 2
- Callbacks for PLCrashReporter are not exposed, resulting in an inability to flush logs HOT 1
- Need a way to push log immediately HOT 1
- Missing NSPrivacyAccessedAPITypeReasons in App Privacy Manifest. HOT 2
- AppCenter Podspec doesn't include the xcprivacy files HOT 8
- Build failed due to AppCenter not found error HOT 1
- Any Crash Report/Analytics Alternatives? HOT 2
- Privacy manifest formats are invalid and use wrong codes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appcenter-sdk-apple.