Closed diegoiast closed 2 years ago
This error actually occures in FrameLoader.cpp:41
, as the FrameLoader tries to load the default icon and failes to do so.
The logic for finding the Serenity source dir can be found here
For me exporting SERENITY_SOURCE_DIR to the absolute build dir/serenity fixed this crash. Incidentially this is done by cmakes' run
target automatically here
So using ninja -C Build run
should "just work"
Solution for QtCreator:
%{buildDir}
SERENITY_SOURCE_DIR
and set it to serenity
. You should be able to run and debug from QtCreator. I am aware that using a relative path (in step 2) may be considered "hacky" - but I am working on a solution to overcome this (I have some ideas, but it requires a smallish refactoring to the code).
I am building the project on Debian/Testing (Using Qt5, a PR will follow "soon", as it is quite possible and not intrusive). Compiler is
gcc (Debian 11.3.0-3) 11.3.0
I traced the crash here: https://github.com/awesomekling/ladybird/blob/d216df5da1d5e806823207be68dc8aeb68a646ce/WebView.cpp#L277
The assertion is:
Full backtrace: