libretro / LRPS2

GNU General Public License v2.0
172 stars 49 forks source link

"Illegal instruction" - Can't boot any rom #187

Open 0yz opened 3 years ago

0yz commented 3 years ago

(I hope this is the correct place to post this. If not, please tell me where i need to go.)

PCSX2 version: alpha d08cb17 (latest core update from retroarch)

PCSX2 options: default

Description of the issue: All PS2 Roms loaded in RetroArch will immediately crash the emulator with the error message "Illegal instruction" (see log)

How to reproduce the issue: Open RetroArch, load any PS2 rom (Redump or not), The emulator/retroarch is crashing immediately.

PC specifications:

kma@plexserver:~$ screenfetch

         _,met$$$$$gg.           kma@plexserver
      ,g$$$$$$$$$$$$$$$P.        OS: Debian 11 bullseye
    ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 5.10.0-9-amd64
   ,$$P'              `$$$.      Uptime: 4d 22h 13m
  ',$$P       ,ggs.     `$$b:    Packages: 3046
  `d$$'     ,$P"'   .    $$$     Shell: bash 5.1.4
   $$P      d$'     ,    $$P     Resolution: 1920x1080
   $$:      $$.   -    ,d$$'     DE: KDE 5.78.0 / Plasma 5.20.5
   $$\;      Y$b._   _,d$P'      WM: KWin
   Y$$.    `.`"Y$$$$P"'          GTK Theme: Breeze [GTK2/3]
   `$$b      "-.__               Icon Theme: BeautyLine
    `Y$$                         Disk: 2.1T / 6.2T (36%)
     `Y$$.                       CPU: Intel Core i5-3570T @ 4x 3.3GHz [47.0°C]
       `$$b.                     GPU: Quadro P400
         `Y$$b.                  RAM: 2683MiB / 7910MiB
            `"Y$b._             
                `""""           

-- RetroArch log: https://pastebin.com/7teQPK16

bslenul commented 3 years ago

[INFO] [CORE]: Using content: /media/HDD_4TB/Roms/Sony Playstation 2/Gecko Blaster (Europe).zip.

Extract your game, it won't run from a .zip/.7z.

0yz commented 3 years ago

Extract your game, it won't run from a .zip/.7z.

Unfortunately this didn't solve the issue. The exact same "Illegal instruction" error occurs when booting a zip, a bin/cue or iso.

bslenul commented 3 years ago

OK :/ And with the extracted game, logs are the same or do they go a little further?

0yz commented 3 years ago

Seems like the same output. Meanwhile I installed other bios files but that also didn't help.

Log: https://pastebin.com/7tTHgjd4

bslenul commented 3 years ago

Yeah no change indeed :/

Does it work with older versions? Like if you grab the core from the RA 1.9.12 cores package (https://buildbot.libretro.com/stable/1.9.12/linux/x86_64/RetroArch_cores.7z) or from 1.9.11 (https://buildbot.libretro.com/stable/1.9.11/linux/x86_64/RetroArch_cores.7z)?

ghost commented 2 years ago

I've tested from 1.9.11 to 1.9.13, retroarch with pcsx2 core can't boot any roms on Ubuntu 21.10 .

realnc commented 2 years ago

What's your CPU? Does it have support for AVX2? Because that's listed as a requirement in the documentation:

https://docs.libretro.com/library/pcsx2/#requirements

bonswouar commented 2 years ago

@realnc Is AVX2 support really required? According to the official PCSX2 wiki it'd be recommended, only SSE2 support is required.

I'm personally having the same issue, but I've just noticed this difference between Libretro & PCSX2 documentation. Thus I'm curious if there was any way to make it work without a CPU supporting AVX2 instructions?

azw71 commented 2 years ago

I can confirm that AVX2 support ist required under linux. My Jasper Lake pentium N6005 didn't work with the official flatpak version 1.10.3. Manually compiling libretro-pcsx2 without avx2 resolved the issue for me.

kins-dev commented 2 years ago

@azw71 would you be so kind as to share your build recipe?

azw71 commented 2 years ago

stay tuned, I'll look for my shell history and post some details here within the next week