LadybirdBrowser / ancient-history

The Ladybird web browser
BSD 2-Clause "Simplified" License
1.62k stars 107 forks source link

Crashes trying to load pages #5

Closed nonetrix closed 2 years ago

nonetrix commented 2 years ago

The program will open but upon trying to load a page it will crash with this

rwinkhart commented 2 years ago

Edit: After attempting to navigate to a local directory, browsing is now working for basic sites.

I am having the exact same issue on my end, also on an Arch-based system (Artix). My symptoms are identical.

System info, if necessary (while we're playing the Neofetch game):

                   '                      
                  'o'                     
                 'ooo'                    OS: Artix Linux x86_64 
                'ooxoo'                   Host: X570 AORUS ELITE WIFI -CF 
               'ooxxxoo'                  Kernel: 5.18.6-artix1-1 
              'oookkxxoo'                 Uptime: 14 hours, 12 mins 
             'oiioxkkxxoo'                Packages: 876 (pacman) 
            ':;:iiiioxxxoo'               Shell: bash 5.1.16 
               `'.;::ioxxoo'              Resolution: 2560x1440, 3840x2160 
          '-.      `':;jiooo'             DE: Plasma 5.25.2 
         'oooio-..     `'i:io'            WM: KWin 
        'ooooxxxxoio:,.   `'-;'           Theme: [Plasma], Breeze [GTK3] 
       'ooooxxxxxkkxoooIi:-.  `'          Icons: [Plasma], breeze [GTK3] 
      'ooooxxxxxkkkkxoiiiiiji'            Terminal: yakuake 
     'ooooxxxxxkxxoiiii:'`     .i'        CPU: AMD Ryzen 9 3900X (24) @ 3.800GHz 
    'ooooxxxxxoi:::'`       .;ioxo'       GPU: NVIDIA GeForce RTX 3080 
   'ooooxooi::'`         .:iiixkxxo'      Memory: 5868MiB / 32019MiB 
  'ooooi:'`                `'';ioxxo'
 'i:'`                          '':io'                            
'`                                   `'
nonetrix commented 2 years ago

Welp now it doesn't even build 2022-07-06-161201_1920x1080_scrot

thpk commented 2 years ago

I figured it doesn't start to build since https://github.com/SerenityOS/serenity/commit/0a62fcfbdfe190945868f19f49a7e34a50b4468a

Now to figure out why, for someone who has never used cmake before. o-o

ADKaster commented 2 years ago

Yeah looks like I broke that. Removing the WebSocket link from the CMake lists in this repo will fix it, since Andreas made it use QNetwork instead of the serenity network stack. I'll have to mess with the target/output name of the WebSocket server bin in serenity for a proper fix

ADKaster commented 2 years ago

That build issue is fixed, but it looks like your original issue was related to certificate loading when using LibCrypto/LibTLS from serenity. Those dependencies have been replaced with QNetwork for doing actual http requests.

Please check again and close this issue if google works. Any other page is a toss-up whether it works and probably will relate to actual bugs in the LibWeb engine, so unrelated to this GUI frontend for it.

For what it's worth strace cmake is not particularly useful information, and not a real backtrace. To get a real backtrace, you would run ninja -C Build debug, run the app through GDB, and get a backtrace from gdb.