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

ctx poc #2270

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

ctx poc #2270

wants to merge 17 commits into from

Conversation

nic11
Copy link
Collaborator

@nic11 nic11 commented Dec 13, 2024

No description provided.

@nic11
Copy link
Collaborator Author

nic11 commented Dec 13, 2024

skymp@c33be74f949f:/home/roma/my/skymp/skymp-ctx$ nice ./build.sh --build --target=aaa_playground && ./build/aaa-playground/aaa_playground
[4/4] Linking CXX executable aaa-playground/aaa_playground
hello world
hello test
Exception in this context's scope
Macro was called at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:7 in test3
Exception in this context's scope
Macro was called at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:14 in test2
Exception in this context's scope
Macro was called at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:21 in test
caught baibai
Exception witness #0
Hello from PrintTrace()!
Macro was called at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:21 in test
Stack trace (most recent call first):
#0 0x00005ea2824817e7 in Antigo::ContextImpl::ContextImpl(char const*, unsigned long, char const*) at /home/roma/my/skymp/skymp-ctx/antigo/src/antigo/Context.cpp:23:77
#1 0x00005ea28247ed40 in std::_MakeUniq<Antigo::ContextImpl>::__single_object std::make_unique<Antigo::ContextImpl, char const*&, unsigned long&, char const*&>(char const*&, unsigned long&, char const*&) at /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:962:34
#2 0x00005ea28247eadc in Antigo::Context::Context(char const*, unsigned long, char const*) at /home/roma/my/skymp/skymp-ctx/antigo/src/antigo/Context.cpp:87:9
#3 0x00005ea28247e813 in test() at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:21:3
#4 0x00005ea28247e8c7 in main at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:32:5
#5 0x0000773385929d8f in __libc_start_call_main at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#6 0x0000773385929e3f in __libc_start_main_impl at ./csu/../csu/libc-start.c:392:3
#7 0x00005ea28247e5d4 at /home/roma/my/skymp/skymp-ctx/build/aaa-playground/aaa_playground
Exception witness #1
Hello from PrintTrace()!
Macro was called at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:14 in test2
Stack trace (most recent call first):
#0 0x00005ea2824817e7 in Antigo::ContextImpl::ContextImpl(char const*, unsigned long, char const*) at /home/roma/my/skymp/skymp-ctx/antigo/src/antigo/Context.cpp:23:77
#1 0x00005ea28247ed40 in std::_MakeUniq<Antigo::ContextImpl>::__single_object std::make_unique<Antigo::ContextImpl, char const*&, unsigned long&, char const*&>(char const*&, unsigned long&, char const*&) at /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:962:34
#2 0x00005ea28247eadc in Antigo::Context::Context(char const*, unsigned long, char const*) at /home/roma/my/skymp/skymp-ctx/antigo/src/antigo/Context.cpp:87:9
#3 0x00005ea28247e786 in test2(int) at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:14:3
#4 0x00005ea28247e835 in test() at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:23:3
#5 0x00005ea28247e8c7 in main at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:32:5
#6 0x0000773385929d8f in __libc_start_call_main at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#7 0x0000773385929e3f in __libc_start_main_impl at ./csu/../csu/libc-start.c:392:3
#8 0x00005ea28247e5d4 at /home/roma/my/skymp/skymp-ctx/build/aaa-playground/aaa_playground
Exception witness #2
Hello from PrintTrace()!
Macro was called at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:7 in test3
Stack trace (most recent call first):
#0 0x00005ea2824817e7 in Antigo::ContextImpl::ContextImpl(char const*, unsigned long, char const*) at /home/roma/my/skymp/skymp-ctx/antigo/src/antigo/Context.cpp:23:77
#1 0x00005ea28247ed40 in std::_MakeUniq<Antigo::ContextImpl>::__single_object std::make_unique<Antigo::ContextImpl, char const*&, unsigned long&, char const*&>(char const*&, unsigned long&, char const*&) at /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/unique_ptr.h:962:34
#2 0x00005ea28247eadc in Antigo::Context::Context(char const*, unsigned long, char const*) at /home/roma/my/skymp/skymp-ctx/antigo/src/antigo/Context.cpp:87:9
#3 0x00005ea28247e6c6 in test3(int) at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:7:3
#4 0x00005ea28247e79e in test2(int) at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:16:5
#5 0x00005ea28247e835 in test() at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:23:3
#6 0x00005ea28247e8c7 in main at /home/roma/my/skymp/skymp-ctx/aaa-playground/src/main.cpp:32:5
#7 0x0000773385929d8f in __libc_start_call_main at ./csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#8 0x0000773385929e3f in __libc_start_main_impl at ./csu/../csu/libc-start.c:392:3
#9 0x00005ea28247e5d4 at /home/roma/my/skymp/skymp-ctx/build/aaa-playground/aaa_playground

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

Successfully merging this pull request may close these issues.

1 participant