core icon indicating copy to clipboard operation
core copied to clipboard

Crashlog should have OS version too ?

Open gedw99 opened this issue 1 year ago • 7 comments

Describe the bug

Here is what we get currently on this version in a crash log.

Platform: MacOS
System platform: MacOS
App version: v0.1.3
Core version: v0.1.3
Time: 2024-05-19 12:15:03

Its very good, but often there are bugs that are different for different versions of an OS, so it would be useful if we also collect the OS version.

It would be good too because we MAY at runtime have to sniff the OS version and do something slightly different for workarounds. This is common int he games industry where different OS versions and even different graphics card models can require special hack fixes.

Hence the OS version code can be used at runtime too. SO we are reusing the code.

How to reproduce

make something crash and see the logs.

Example code

No response

Relevant output

No response

Platform

macOS

gedw99 avatar May 19 '24 02:05 gedw99

I agree that this would be nice. I did some research and it doesn't seem like there is an easy way to get the os version on all platforms; if you can find a way to do that, that would be great! There is some discussion on this thread: https://groups.google.com/g/golang-nuts/c/NzEPGqlHIYQ.

kkoreilly avatar May 19 '24 05:05 kkoreilly

Yep, we need web, desktop, and mobile. Web should be easy, as we can just use the user agent string. I'm not sure about the other platforms though. I think it would be nice to have the OS version and the version of the graphics driver, but it isn't a very high priority, so I will leave this open but mark it as low priority, and we can come back to it later.

kkoreilly avatar May 19 '24 16:05 kkoreilly

Yep, we don't want to depend on any server side things. I can definitely do the web version information soon once I finish this configuration rewrite, and if you can figure out a native way to get the desktop/mobile version, I would consider a PR for that.

kkoreilly avatar May 20 '24 18:05 kkoreilly

I implemented this on web in 6535cc3 using userAgent with a new system.App.SystemInfo method that can also be implemented on other platforms.

kkoreilly avatar Jun 14 '24 22:06 kkoreilly