View Issue Details

IDProjectCategoryView StatusLast Update
0000014Kohi EngineBugspublic2026-10-19 18:04
Reportertravisvroman Assigned Totravisvroman  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
PlatformLinux DesktopOSGNU/LinuxOS VersionN/A
Summary0000014: [BUG] u64 tree bugs
Description

Ported over from GitHub issues: https://github.com/travisvroman/kohi/issues/271

Describe the bug
I found 2 bugs in the tree implementation:

  1. When deleting a node, only the key value of the following node that closes the gap is copied, not the value, which leads the texture/resource system to delete already deleted lookup_ids
  2. When inserting into the tree, the rest of the code expects to get the inserted node as a return, but the actual implementation always returns the root node.

I came across them, while working with the engine source and I came across the first one, because I changed my local version of the engine to shutdown properly when a crash is detected.

I wanted to discuss these issues first before opening a pull request, I fixed the issues already locally and added some asserts into the caller codes. Can you verify that those behaviors were not intended, or did I misunderstood something in the tree implementation?

Tagsbug
Revision

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2026-10-19 18:04 travisvroman New Issue
2026-10-19 18:04 travisvroman Status new => assigned
2026-10-19 18:04 travisvroman Assigned To => travisvroman
2026-10-19 18:04 travisvroman Tag Attached: bug