-
-
Notifications
You must be signed in to change notification settings - Fork 3
Unable to find an entry point named 'sentry_options_new' in DLL 'sentry' #5
Comments
This project is not a replacement to It seems you've hit a limitation we have in combining both packages: The .NET SDK includes a I believe the best way around this would be for us to compile it as This came up before in this issue on the sentry-native repo. One of the proposed solutions there was:
|
That makes sense, thanks for the info. I might be able to help with a PR but I need to understand a bit more architecturally first. |
Sounds great. Happy to help with this part.
The original idea was to expose more functionality, for example passing additional options like Release and Environment but as a first release I just basically added "init". At its current form it's basically just crashpad correctly configured to upload to your Sentry project (since |
I found this document suggesting that it should be possible to have the runtime create a minidump if the app crashes, by setting an environment variable. I tried that for my WPF app - it wasn't successful, so I logged a WPF issue to ask if it should have worked. I'm also investigating whether I can use Windows Error Reporting (WER) to have Windows automatically capture dumps. That's a mechanism that already exists, so feels preferable to me than wrapping with something like Crashpad. |
Latest versions of .NET include minidump support that include the memory sections needed by managed extensions such as I'm not too familiar with WER. Does it include APIs to connect/auth and pull minidumps from it? Does the device need to be opt'ed in to create minidumps for crashes? |
I'm not familiar with WER yet either. I'm trying to register my app to work with it, it's not exactly straightforward. |
Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
.NET 3.8.2
Steps to Reproduce
Expected Result
App would run
Actual Result
App exited immediately, with message: Process finished with exit code -532,462,766."
If I debug, I see that an exception is thrown by SentryMinidump.Init():
System.EntryPointNotFoundException: Unable to find an entry point named 'sentry_options_new' in DLL 'sentry'.
at sentry.sentry.__Internal.SentryOptionsNew()
If I look at my app's bin directory, I can see that sentry.dll is 359KB and has version 3.8.2.0 (and Date Modified of 7/17/2021)
If I look in the sample app's bin directory, it has sentry.dll with no version info and with size 204KB (and Date Modified of 12/27/2020)
I must admit I'm not clear on the relationship between Sentry.Minidump and Sentry nuget packages. Do I need them both, or does Sentry.Minidump replace Sentry package? If I need them both, what order should the Init's occur?
Thanks!
The text was updated successfully, but these errors were encountered: