-
-
Notifications
You must be signed in to change notification settings - Fork 55
Error on PS4 with il2cpp #233
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
Comments
Sorry I see you wrote the version. What do you mean by SDK version "Net 2.0.0"? |
Sorry for the confusion, we are using Unity 2019.3 with il2cpp on the PS4 |
Very interesting... My assumption. Does it mean that var now = DateTimeOffset.UtcNow;
StartupTime = now;
try
{
BootTime = now.AddTicks(-Stopwatch.GetTimestamp()
/ (Stopwatch.Frequency
/ TimeSpan.TicksPerSecond));
} If we try to substract something from |
We rely on I think it's more likely this returns it min value: But that's the part that shouldn't be called on Unity because sentry-unity/src/Sentry.Unity/SentryUnityOptions.cs Lines 85 to 86 in f1c77e2
I'll make sure that failing to instantiate |
@d11ahirst could you please try initializing the SDK programatically and set Without the line number we can only guess and I just want to make sure my patch will work. |
Opened this to address the issue: getsentry/sentry-dotnet#1062 |
I tried However sentry is now returning this
|
@d11ahirst That message means our Work around for that is to call But good point, this also means that a call to The unity logger we subscribe to fires on the main thread though so at least the unity errors should work normally. |
@d11ahirst if you'd like, we can chat on Discord (we have a #unity channel there), Sentry's Discord: https://discord.gg/sentry |
Should we cache the values from Example: [FreeFunction("systeminfo::GetOperatingSystem")]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern string GetOperatingSystem(); |
Yes but at the same time if we're eager calling all of these APIs we'll slow down the startup of the game so lets explore other avenues where we can call these APIs asynchronously but running on the main thread. Any event captured before these APIs are called and cached would just not include that data (or if the capture is called from the UI thread we could block while we run the APIs and cache the data for the first time). |
Issues described here were resolved on 0.3.0. Please let us know if it works out for you. |
Environment
Plugin 0.2.0
How do you use Sentry?
Onpremise
Which SDK and version?
Net 2.0.0
Steps to Reproduce
Initialised sentry plugin on PS4 Console on boot
Expected Result
No Errors
What you thought would happen.
No Errors
Actual Result
Debug: Logging enabled with ConsoleDiagnosticLogger and min level: Debug
ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime.
Parameter name: value
at Sentry.Internal.ProcessInfo..ctor (Sentry.SentryOptions options, System.Func`1[TResult] findPreciseStartupTime) [0x00000] in <00000000000000000000000000000000>:0
at Sentry.SentrySdk.InitHub (Sentry.SentryOptions options) [0x00000] in <00000000000000000000000000000000>:0
at Sentry.SentrySdk.Init (Sentry.SentryOptions options) [0x00000] in <00000000000000000000000000000000>:0
at Bootstrap.Start () [0x00000] in <00000000000000000000000000000000>:0
(Filename: currently not available on il2cpp Line: -1)
What actually happened. Maybe a screenshot/recording? Maybe some logs?
The text was updated successfully, but these errors were encountered: