{"action":"created","issue":{"url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1935","repository_url":"https://api.github.com/repos/PCSX2/pcsx2","labels_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1935/labels{/name}","comments_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1935/comments","events_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1935/events","html_url":"https://github.com/PCSX2/pcsx2/issues/1935","id":227385738,"number":1935,"title":"pcsx2 crashs after starting with 'Illegal instruction' if wxGTK3 is built without SDL2.","user":{"login":"orbea","id":4204285,"avatar_url":"https://avatars1.githubusercontent.com/u/4204285?v=3","gravatar_id":"","url":"https://api.github.com/users/orbea","html_url":"https://github.com/orbea","followers_url":"https://api.github.com/users/orbea/followers","following_url":"https://api.github.com/users/orbea/following{/other_user}","gists_url":"https://api.github.com/users/orbea/gists{/gist_id}","starred_url":"https://api.github.com/users/orbea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbea/subscriptions","organizations_url":"https://api.github.com/users/orbea/orgs","repos_url":"https://api.github.com/users/orbea/repos","events_url":"https://api.github.com/users/orbea/events{/privacy}","received_events_url":"https://api.github.com/users/orbea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-05-09T14:28:10Z","updated_at":"2017-05-09T15:12:29Z","closed_at":null,"body":"***PCSX2 version:***\r\n`pcsx2-2017.05.08_9b0b32533_master-x86_64-1_git`\r\n`wxGTK3-3.0.3-x86_64-1_SBo`\r\n\r\n***PCSX2 options:***\r\nOccurs even after the first start up without a configuration file.\r\n\r\n***Description of the issue:***\r\nIf wxGTK3 is built without `-with-sdl` pcsx2 will crash after starting with `Illegal instruction`. If there is no configuration file it will crash after hitting 'Next' in the configuration wizard. Further more pcsx2 will not build if wxGTK3 is built with SDL2 and will also fail to build with `DSDL2_API=FALSE`.\r\n```\r\n$ PCSX2 \r\nInterface is initializing.  Entering Pcsx2App::OnInit!\r\nApplying operating system default language...\r\nCommand line parsing...\r\nCommand line parsed!\r\nCreating UserLocalData folder: /home/orbea/.config/PCSX2\r\nIllegal instruction\r\n```\r\nGDB log: https://pastebin.com/BTiaHsWp\r\n\r\n***How to reproduce the issue:***\r\n1. Build wxGTK3 without SDL(2).\r\n1. Build pcsx2 and start it.\r\n\r\n***Last known version to work:***\r\n```\r\nef3435441f7a86d2062f2eeaa0508455c296feaf is the first bad commit\r\ncommit ef3435441f7a86d2062f2eeaa0508455c296feaf\r\nAuthor: Gregory Hainaut <gregory.hainaut@gmail.com>\r\nDate:   Sat Apr 15 14:57:00 2017 +0200\r\n\r\n    onepad: create a legacy version for SDL1\r\n    \r\n    The legacy version is the version 1.3\r\n    \r\n    The new version is the version 2.0. It would be based on SDL2 only\r\n    \r\n    Distribution information.\r\n    If you link wxWidget with SDL, you will need to be sure it is SDL2 or upgrade.\r\n    \r\n    You can build wxWidget with SDL2 with the following trick\r\n    \r\n    export SDL_CONFIG=/usr/bin/sdl2-config\r\n    ./configure --with-sdl .....\r\n\r\n:040000 040000 a289d4b0a8efaf6380daaf5b7023de6689dc9d11 cb4e544be1dbed9ca1ce49f4e5a7e6e9b9747a22 M\tcmake\r\n:040000 040000 73ec2b83821437382b3614f5a6d1cbf643c4b49a eaca65a43c10adaf0fda260a1ba6850b75dd8480 M\tplugins\r\n```\r\nef3435441f7a86d2062f2eeaa0508455c296feaf\r\n\r\nSo I attempted to follow the advice in the commit message and built wxGTK3 with SDL2 and got this. During the wxGTK3 compile I did see it include SDL2, but maybe wxGTK3 version is too old?\r\n```\r\n-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so  \r\nCMake Error at cmake/ApiValidation.cmake:23 (message):\r\n  WxWidget is linked to SDL (wxUSE_LIBSDL) and it is likely SDL1.2.\r\n\r\n          Unfortunately you try to build PCSX2 with SDL2 support which is not compatible\r\n          Please use -DSDL2_API=FALSE\r\nCall Stack (most recent call first):\r\n  cmake/SearchForStuff.cmake:194 (WX_vs_SDL)\r\n  CMakeLists.txt:61 (include)\r\n\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"/tmp/SBo/pcsx2/build/CMakeFiles/CMakeOutput.log\".\r\n```\r\nSo I then tried `-DSDL2_API=FALSE` and got this instead...\r\n```\r\n-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so  \r\nCMake Error at cmake/SelectPcsx2Plugins.cmake:20 (message):\r\n  Skip build of onepad: miss some dependencies:check these libraries -> sdl2,\r\n  X11, gtk2\r\nCall Stack (most recent call first):\r\n  cmake/SelectPcsx2Plugins.cmake:228 (print_dep)\r\n  CMakeLists.txt:62 (include)\r\n\r\n-- Configuring incomplete, errors occurred!\r\nSee also \"/tmp/SBo/pcsx2/build/CMakeFiles/CMakeOutput.log\".\r\n```\r\nIs there a way out of this? \r\n\r\n***PC specifications:***\r\nOS: `Slackware64-current`\r\nCPU: `amd fx 6350`\r\nGPU: `GTX 780 Ti`\r\n"},"comment":{"url":"https://api.github.com/repos/PCSX2/pcsx2/issues/comments/300196431","html_url":"https://github.com/PCSX2/pcsx2/issues/1935#issuecomment-300196431","issue_url":"https://api.github.com/repos/PCSX2/pcsx2/issues/1935","id":300196431,"user":{"login":"orbea","id":4204285,"avatar_url":"https://avatars1.githubusercontent.com/u/4204285?v=3","gravatar_id":"","url":"https://api.github.com/users/orbea","html_url":"https://github.com/orbea","followers_url":"https://api.github.com/users/orbea/followers","following_url":"https://api.github.com/users/orbea/following{/other_user}","gists_url":"https://api.github.com/users/orbea/gists{/gist_id}","starred_url":"https://api.github.com/users/orbea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orbea/subscriptions","organizations_url":"https://api.github.com/users/orbea/orgs","repos_url":"https://api.github.com/users/orbea/repos","events_url":"https://api.github.com/users/orbea/events{/privacy}","received_events_url":"https://api.github.com/users/orbea/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T15:12:29Z","updated_at":"2017-05-09T15:12:29Z","body":"While disabling `-DPACKAGE_MODE` seems to work around this, it doesn't really work for my system installed pcsx2 package as is created with my pcsx2 slackbuild. :)"}}
{"actor":{"display_login":"orbea"}}