Skip to content

ios log missing #728

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

Closed
NoCodeBugsFree opened this issue Jan 10, 2025 · 11 comments
Closed

ios log missing #728

NoCodeBugsFree opened this issue Jan 10, 2025 · 11 comments
Labels
Bug Something isn't working

Comments

@NoCodeBugsFree
Copy link

Environment - IOS

How do you use Sentry?
Sentry SaaS (sentry.io) or self-hosted/on-premise (which version?) ( both same result )

Which version of the SDK? 0.21.1

Which version of Unreal? 5.3

Steps to Reproduce

project , configured with attach game logs
https://i.imgur.com/vv2dOsL.png
this one forks fine for me on windows, linux, android , but ios crash report have no log attached.

Expected Result

ios crash have a log like other platforms did

Actual Result

no logs for ios crash https://i.imgur.com/UMXmmxd.png

@tustanivsky
Copy link
Collaborator

@NoCodeBugsFree On iOS, game logs can only be attached to captured events in development (non-shipping) builds. Could you let us know if you have this issue in that configuration as well?

Also, there is another related bug with iOS game log attachments (specific to crash events) - #302

@NoCodeBugsFree
Copy link
Author

  1. I have engine modified to have logs both development/shipping builds
  2. even in development builds we dont have logs attached
  3. 100 percent logs exist on devices and I can fetch it both development/shipping builds

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 10, 2025
@tustanivsky
Copy link
Collaborator

Did you make any changes to the engine related to log file naming/location?

Is the missing log issue occurring only for crashes, or does it also affect events that are manually captured?

The underlying Sentry Cocoa SDK should always be able to pick up a log file from its default location if the Attach game log to captured events option was enabled in project settings:

const FString logFilePath = IFileManager::Get().ConvertToAbsolutePathForExternalAppForRead(*FGenericPlatformOutputDevices::GetAbsoluteLogFilename());

@NoCodeBugsFree
Copy link
Author

Did you make any changes to the engine related to log file naming/location?

nope, only to produce logs even in shipping builds

Is the missing log issue occurring only for crashes, or does it also affect events that are manually captured?
idk, will try it and report

@NoCodeBugsFree
Copy link
Author

or does it also affect events that are manually captured?

tested.
no logs for ios. android is fine

@NoCodeBugsFree
Copy link
Author

@tustanivsky
const FString logFilePath = IFileManager::Get().ConvertToAbsolutePathForExternalAppForRead(*FGenericPlatformOutputDevices::GetAbsoluteLogFilename());
error is here
such check will fail
if((IFileManager::Get().FileExists(*logFilePath)))

@NoCodeBugsFree
Copy link
Author

@tustanivsky
please check #732
Its working for me, but probably you will find a better solution

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 13, 2025
@bruno-garcia
Copy link
Member

Affecting Supercell too. Can we bump this?

@tustanivsky
Copy link
Collaborator

@NoCodeBugsFree Do you have Support iTunes File Sharing option enabled in your projects Platform -> iOS settings? Also, do you override the default log file name via LOG/ABSLOG command line params or by defining UE_CUSTOM_LOG_FILENAME?

I couldn't reproduce this issue so far as log files are always saved under NSDocumentDirectory on my iOS device rather than NSLibraryDirectory.

@tustanivsky
Copy link
Collaborator

@NoCodeBugsFree Another reason the log file path might point to the Library directory is if SUPPORTS_LOGS_IN_USERDIR is set to 1. Could you confirm if that's the case?

@tustanivsky
Copy link
Collaborator

Fixed in #873

@github-project-automation github-project-automation bot moved this to Done in GDX May 1, 2025
@linear linear bot added the Bug Something isn't working label May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Status: Done
Archived in project
Development

No branches or pull requests

3 participants