Git Product home page Git Product logo

Comments (12)

alexeyknyshev avatar alexeyknyshev commented on July 20, 2024

I try to figure out root of problem
426db21 hangs

from kiui.

hugoam avatar hugoam commented on July 20, 2024

Does that fix it ? f7d10df
(It's the path set by CMake that might have been wrong, if you don't want to rerun cmake you can modify KIUI_EXAMPLE_RESSOURCE_PATH manually and tell me if that fixes it)

The backtrace is really weird though. I don't see what could go wrong so early...

from kiui.

hugoam avatar hugoam commented on July 20, 2024

Oooh wait I think I'm starting to seeing the problem in Type(), calling Type::cls() from Type::cls()

from kiui.

alexeyknyshev avatar alexeyknyshev commented on July 20, 2024

I'll be able to check at the morning. Now I'm lying in bed :р

from kiui.

hugoam avatar hugoam commented on July 20, 2024

No problem. I think I fixed it in 16b7c4d, keep me posted.

from kiui.

alexeyknyshev avatar alexeyknyshev commented on July 20, 2024

Looks like it's not connected with Type() bug.
Problem has not gone. I'm trying to figure out...

from kiui.

hugoam avatar hugoam commented on July 20, 2024

If the application hangs, it should be possible to pause the debugger and see where exactly the hang happens. Could you try to give me this information so that I try to understand what is going on ?

from kiui.

hugoam avatar hugoam commented on July 20, 2024

Nevermind. The data path was not set properly between win32 and linux 4ef1ec4 and af54385.
Tell me if that solves the problem.

from kiui.

alexeyknyshev avatar alexeyknyshev commented on July 20, 2024

Hang callstack, hangs in static initialization of Type ty(0);
static Type& cls() { static Type ty(0); return ty; }

0 syscall /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.19.so 38 0x7ffff5b91fd9
1 __cxa_guard_acquire 0x7ffff63cf023
2 mk::Type::cls mkType.h 54 0x7ffff79bd748
3 mk::Indexed<mk::Type, void>::indexer mkIndexer.h 78 0x7ffff79be37f
4 mk::Type::Type mkType.cpp 17 0x7ffff79bd3d4
5 mk::Type::cls mkType.h 54 0x7ffff79bd76b
6 mk::Type::Type mkType.cpp 21 0x7ffff79bd43c
7 mk::typecls mkTyped.h 42 0x7ffff79c66b6
8 mk::Dispatch<mk::ValueWidget, bool&, &mk::valueWidget<bool&, mk::Input>>::Dispatch mkDispatch.h 89 0x7ffff79c9b0a
9 __static_initialization_and_destruction_0 mkDispatch.h 102 0x7ffff79c645e
10 _GLOBAL__sub_I_mkInput.cpp(void) mkInput.cpp 110 0x7ffff79c65cb
11 call_init /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so 78 0x7ffff7dea9fa
12 call_init /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so 36 0x7ffff7deaae3
13 _dl_init /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so 126 0x7ffff7deaae3
14 _dl_start_user 0x7ffff7ddd1ca
15 ?? 0x1
16 ?? 0x7fffffffea31
17 ??

Looks like dead look due to double static initailization.
First time it acquires look and goes deeper, calls Type::cls() again and again makes static initialization, which already locked ==> deadlock as the result.

from kiui.

hugoam avatar hugoam commented on July 20, 2024

Yes now I see it. I already removed one such recursion in Type() and now I see there's another one when it calls indexer(). Gonna fix it right away.

from kiui.

hugoam avatar hugoam commented on July 20, 2024

Here dd5d3c8

from kiui.

alexeyknyshev avatar alexeyknyshev commented on July 20, 2024

Ought to be fixed!
Great! Thx a lot!

from kiui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.