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

ASSERT: "byid[size_t(id)]" == nullptr #2

Open
XiaowjGH opened this issue Jul 7, 2022 · 2 comments
Open

ASSERT: "byid[size_t(id)]" == nullptr #2

XiaowjGH opened this issue Jul 7, 2022 · 2 comments

Comments

@XiaowjGH
Copy link

XiaowjGH commented Jul 7, 2022

image

After initialization,

Multithreaded write right now,

There's a high probability of this happening,

The solution:

  1. Call the: QLOG_****() macro before starting the thread

  2. Before starting a thread calls: QCalendar: : availableCalendars () function

@XiaowjGH XiaowjGH closed this as completed Jul 7, 2022
@XiaowjGH XiaowjGH closed this as not planned Won't fix, can't repro, duplicate, stale Jul 7, 2022
@XiaowjGH XiaowjGH changed the title Problems with multithreading and singleton patterns ASSERT: "byid[size_t(id)]" == nullptr Jul 7, 2022
@XiaowjGH XiaowjGH reopened this Jul 7, 2022
@jhofstee
Copy link
Contributor

jhofstee commented Jul 7, 2022

Thanks, do note that this is just a clone, upstream is here, https://bitbucket.org/codeimproved/qslog/commits/. We could sync, but logging improved in Qt5 / Qt6 itself, so personally I would think this code is obsolete.

@XiaowjGH
Copy link
Author

XiaowjGH commented Jul 8, 2022

谢谢,请注意,这只是一个克隆,上游在这里,https://bitbucket.org/codeimproved/qslog/commits/。我们可以同步,但是在Qt5 / Qt6本身中日志记录得到了改进,因此我个人认为此代码已经过时了。

That's very helpful. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants