godotengine / godotengine/godot

Godot crashes when the logger is configured to log in a relative path

Open
#98,522 0 comments 0 reactions 0 assignees View on GitHub
bug crash topic:core
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

Reproducible in 4.3.stable, 4.2.1.stable, and likely in older versions.

### System information

Windows 10, Godot 4.3

### Issue description

Godot crashes when the logger is configured to write log files in a path that is relative to the project or working directory path.

It only fails when it needs to create a folder. If the folder already exists, the logger works correctly.

### Steps to reproduce

- Start with an empty project
- Go to Project Settings and enable Advanced Settings
- Set the `Debug>File Logging>Log Path` setting to any of these:
- `logs/my_project.log`
- `res://logs/my_project.log`
- Run the project

### Minimal reproduction project (MRP)

An empty project will do

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.