Skip to content
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

Log file is not generated on first run #727

Closed
1 task done
wrybyte opened this issue Mar 19, 2025 · 0 comments
Closed
1 task done

Log file is not generated on first run #727

wrybyte opened this issue Mar 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@wrybyte
Copy link
Contributor

wrybyte commented Mar 19, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Affected Build(s)

Tested on the latest commit (d59ea25), 2120-rc1, and 2120-rc3.

Description of Issue

When running Azahar for the first time, the log/ directory is not created and azahar_log.txt is not written to. Only after reopening the emulator will a log file be generated. This is not ideal because this may result in important error information being lost.

I suspect this is due to the fact that the azahar-emu/ directory itself is not created initially until another action is performed (e.g., installing a CIA, launching a title, etc.).

Expected Behavior

The log file should be generated on first run.

Reproduction Steps

  1. Remove the current Azahar directories (simulate first run).
rm --recursive ~/.local/share/azahar-emu/ ~/.config/azahar-emu/
  1. Run Azahar.
azahar &
  1. Select "No" when prompted to migrate from Citra/Lime3DS.

Before doing anything else, azahar-emu/ is not created:

$ ls --directory ~/.local/share/azahar-emu/
ls: cannot access '/home/user/.local/share/azahar-emu/': No such file or directory
  1. Install a CIA or run a title, then return to the initial window.

This will generate azahar-emu/.

  1. Attempt to open the log directory (Help > Open Log Folder).

An error is emitted to the console:

xdg-open: file '/home/user/.local/share/azahar-emu/log/' does not exist
  1. Verify that the log/ subdirectory has not been created.
$ ls --classify ~/.local/share/azahar-emu/
nand/  sdmc/  sysdata/
  1. Close and reopen Azahar. Note that the log file has now been generated.
$ ls ~/.local/share/azahar-emu/log/
azahar_log.txt

Log File

Well, the issue is that there is not a log file...

azahar_log.txt

System Configuration

CPU: AMD Ryzen 5 7640U
GPU/Driver: AMD Radeon 760M (RADV PHOENIX)
RAM: 2 x 8GB 5600 MT/s
OS: Fedora Linux 41 (Sway)

@wrybyte wrybyte added the bug Something isn't working label Mar 19, 2025
wrybyte added a commit to wrybyte/azahar that referenced this issue Mar 19, 2025
This fix resolves issue azahar-emu#727.

On first start, Log::Initialize attempts to create the `azahar-emu/log/`
directory. However, it fails because `azahar-emu/` does not exist. Using
FileUtil::CreateFullPath instead will create both `azahar-emu` and
`log/`.
PabloMK7 pushed a commit to wrybyte/azahar that referenced this issue Mar 19, 2025
This fix resolves issue azahar-emu#727.

On first start, Log::Initialize attempts to create the `azahar-emu/log/`
directory. However, it fails because `azahar-emu/` does not exist. Using
FileUtil::CreateFullPath instead will create both `azahar-emu` and
`log/`.
OpenSauce04 pushed a commit that referenced this issue Mar 20, 2025
* Fix bug where log file was not generated on first run

This fix resolves issue #727.

On first start, Log::Initialize attempts to create the `azahar-emu/log/`
directory. However, it fails because `azahar-emu/` does not exist. Using
FileUtil::CreateFullPath instead will create both `azahar-emu` and
`log/`.

* Update license header
OpenSauce04 pushed a commit that referenced this issue Mar 20, 2025
* Fix bug where log file was not generated on first run

This fix resolves issue #727.

On first start, Log::Initialize attempts to create the `azahar-emu/log/`
directory. However, it fails because `azahar-emu/` does not exist. Using
FileUtil::CreateFullPath instead will create both `azahar-emu` and
`log/`.

* Update license header
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
None yet
Development

No branches or pull requests

2 participants