You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The object's thread is not running, which is a potential issue.
54
54
// Log a critical error as this indicates a problem in the shutdown sequence.
55
55
// This should be an *extremely rare* fallback and indicates a bug in the thread shutdown sequence.
56
-
qCritical().noquote() << QString("|%1| QObject<%2> could not be deleted. Owning thread is not running.").arg(subComponent, typeName);
56
+
qCritical().noquote() << QString("|%1| QObject<%2> could not be deleted. Owning thread is not running. This may cause a memory leak. Please check thread shutdown sequence and object ownership.")
57
+
.arg(subComponent, typeName);
57
58
59
+
// [MEMORYTRACKER] CRITICAL: This code path indicates a potential memory leak, as the QObject cannot be safely deleted.
60
+
// To aid debugging, ensure that all threads are properly shut down before object destruction.
61
+
// Consider adding more diagnostics here, such as emitting a signal or logging additional context (e.g., stack trace, object address).
58
62
//qCDebug(memory_objects).noquote() << QString("|%1| QObject<%2> object's owning thread is not running. Deleted immediately (thread not running)").arg(subComponent, typeName);
59
-
//direct delete will require friendship, to be added (to Logger)
63
+
//direct delete will require friendship, to be added (to Logger)
0 commit comments