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

Crash using script::Engine at exit to print console output (e.g. in Dialog close event) #3237

Closed
sentry-io bot opened this issue Apr 6, 2022 · 0 comments
Assignees
Milestone

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 6, 2022

Sentry Issue: ASEPRITE-7D

This crash happens when a Lua error happens in a Dialog onclose event handler (so the App::m_engine is nullptr and cannot be used to print the error).

EXC_BAD_ACCESS / KERN_INVALID_ADDRESS / 0x8: Fatal Error: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS / 0x8
  File "../src/app/script/engine.cpp", line 567, in app::script::Engine::onConsolePrint
    if (m_delegate)
  File "../src/app/script/engine.h", line 98, in app::script::Engine::consolePrint
    onConsolePrint(text);
  File "../src/app/script/dialog_class.cpp", line 216, in app::script::(anonymous namespace)::Dialog_connect_signal<T>::lambda::operator()
    ->consolePrint(s);
  File "type_traits", line 3694, in std::__1::__invoke<T>
    _LIBCPP_INVOKE_RETURN(_VSTD::forward<_Fp>(__f)(_VSTD::forward<_Args>(__args)...))
  File "__functional_base", line 348, in std::__1::__invoke_void_return_wrapper<T>::__call<T>
    _VSTD::__invoke(_VSTD::forward<_Args>(__args)...);
...
(17 additional frame(s) were not displayed)
@sentry-io sentry-io bot assigned dacap Apr 6, 2022
@dacap dacap added the bug label Apr 6, 2022
@dacap dacap added this to the v1.2.35 milestone Apr 6, 2022
@dacap dacap added the time-1 label Apr 6, 2022
@dacap dacap closed this as completed in 2594892 Apr 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant