Skip to content

Hitting addition with overflow in FlushingPolicyState #1359

Description

@jeandudey

System information:

  • GPU: 7900 XTX 24 GB VRAM (not an OOM error since it seems to only use half of it).
  • OS: Ubuntu 24.04 on Windows 11 using WSL2.
  • Backend: Using ROCm with librocdxg on commit 9fa6ae22c722201a43901788f371a6904f81f600.
  • ROCm version: 6.4.2
  • Burn version: 0.21 from crates.io
  • rustc 1.95.0 (59807616e 2026-04-14)

Disclaimer: this could very well me being the problem since I'm new to machine learning and I'm currently learning by trying to train a model.

I'm currently hitting an attempt add with overflow in the register method of FlushingPolicyState when trying to train a model using resnet-burn and burn.

The experiment.log, so the training goes well up until the point that it crashes with a panic (training tries to keep working but keeps failing):

thread 'DSD-0-0' (93753) panicked at /home/jeandudey/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cubecl-runtime-0.10.0/src/memory_management/drop_queue/policy.rs:36:9:
attempt to add with overflow
=== PANIC ===
A fatal error happened, you can check the experiment logs here => './artifacts/experiment.log'
=============

I've tried searching if anyone had hit this but I didn't find anything, the code that reproduces this error can be found here:

https://github.com/jeandudey/burn-experiment/blob/main/src/main.rs

On commit: 77f18b171cb1c0aac34feed8b09bc033f6d1633d

It requires libmatio-dev and pkg-config and the 300W-LP dataset extracted in repo-directory/datasets/300W_LP being 300W_LP the root of the dataset.

I'm not sure what could be the cause of this, and I found that increasing the number of workers for the data loaders makes it happen quicker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions