Fatal error received in: "init_video_input()

I recently picked up a Dell Venue 8 Pro tablet (Atom BayTrail-T Z3740D), and I’ve been trying to get RetroArch running, but it just stops before I get to RGUI with the error given in the subject line.

Full log:

=== Build =======================================
Compiler: MinGW (4.8.2) 32-bit
Built: Jan  3 2014
=================================================
RetroArch: [CPUID]: Vendor: GenuineIntel
RetroArch: [CPUID]: MMX:   1
RetroArch: [CPUID]: SSE:   1
RetroArch: [CPUID]: SSE2:  1
RetroArch: [CPUID]: SSE3:  1
RetroArch: [CPUID]: SSSE3: 1
RetroArch: [CPUID]: AVX:   0
RetroArch: Loading default config.
=== Config ===
=== Config end ===
RetroArch [WARN] :: system_directory is not set in config. Assuming system direc
tory is same folder as game: "".
RetroArch: Found default config: retroarch.cfg.
RetroArch: Environ SET_PIXEL_FORMAT: RGB565.
RetroArch: Version of libretro API: 1
RetroArch: Compiled against API: 1
RetroArch: Set audio input rate to: 29975.00 Hz.
RetroArch: Video @ 960x720
RetroArch: Setting multimedia scheduling for DWM.
RetroArch: Found GL context: wgl
RetroArch: Detecting screen resolution 1280x800.
RetroArch: [WGL]: wglSwapInterval(1)
RetroArch: [GL]: Vendor: Intel, Renderer: Intel(R) HD Graphics.
RetroArch: [GL]: Version: 4.0.0 - Build 10.18.10.3306.
RetroArch: Querying GL extension: ARB_ES2_compatibility => exists
RetroArch: Querying GL extension: ARB_sync => exists
RetroArch: Querying GL extension: ARB_texture_float => exists
RetroArch: GL: Using resolution 960x720
RetroArch: [GL]: Not loading any shader.
RetroArch: GL: Using 4 textures.
RetroArch: GL: Loaded 0 program(s).
RetroArch: [GL]: Using GL_RGB565 for texture uploads.
RetroArch: Using font rendering backend: freetype.
RetroArch: Graphics driver did not initialize an input driver. Attempting to pic
k a suitable driver.
RetroArch [ERROR] :: Cannot init input driver. Exiting ...
RetroArch [ERROR] :: Fatal error received in: "init_video_input()"

Any help with the problem is much appreciated.

Looks like DirectInput is failing to initialize either keyboard or mouse interface. I’ve pushed a commit with some more in-detail error logging. If you can build latest and give me the new log, that would help.

It’s failing because there are no directinput devices attached (no mouse specifically). Even if a controller is attached, if there’s no mouse connected, retroarch will not launch. This only happens on tablets, as in desktops, retroarch launches fine even without a mouse connected to it.

I see. I’ve pushed a commit which should fix this issue.

Took me awhile to set up Linux VM to compile but finally did and tested on my tablet and it works. Thanks! :smiley:

Hi,

I’ll use this post to introduce myself also =D

I’m getting the same error on a Debian x64 machine, I could compile and install without problems but…

this is only when I try to run RetroArch with gl drivers.

ian@DebianDesktop:~$ /usr/local/bin/retroarch /home/adrian/RetroArch/ROMS/Super\ Mario\ Bros..zip -c /home/adrian/RetroArch/retroarch.cfg -v
=== Build =======================================
Compiler: GCC (4.7.2) 64-bit
Built: May 19 2014
Version: 1.0.0.2
Git: 7213c3a
=================================================
RetroArch: [CPUID]: Vendor: GenuineIntel
RetroArch: [CPUID]: MMX:    1
RetroArch: [CPUID]: MMXEXT: 1
RetroArch: [CPUID]: SSE:    1
RetroArch: [CPUID]: SSE2:   1
RetroArch: [CPUID]: SSE3:   1
RetroArch: [CPUID]: SSSE3:  1
RetroArch: [CPUID]: SSE4:   1
RetroArch: [CPUID]: SSE4.2: 1
RetroArch: [CPUID]: AVX:    1
RetroArch: [CPUID]: AVX2:   0
RetroArch: Loading config from: /home/adrian/RetroArch/retroarch.cfg.
=== Config ===
video_driver = "gl" 
audio_driver = "alsa" 
libretro_path = "/usr/local/lib/libretro/bnes_libretro.so" 
phoenix_last_rom = "/home/adrian/RetroArch/ROMS/Super Mario Bros..zip" 
rgui_browser_directory = "/home/adrian/RetroArch/ROMS/" 
savestate_directory = "/home/adrian/RetroArch/SAVE/savestate/" 
screenshot_directory = "/home/adrian/RetroArch/SAVE/screenshots/" 
savefile_directory = "/home/adrian/RetroArch/SAVE/savefile/" 
system_directory = "/home/adrian/RetroArch/" 
video_vsync = "false" 
video_windowed_fullscreen = "false" 
video_smooth = "false" 
video_force_aspect = "false" 
=== Config end ===
RetroArch: Loading dynamic libretro from: "/usr/local/lib/libretro/bnes_libretro.so"
RetroArch: Version of libretro API: 1
RetroArch: Compiled against API: 1
RetroArch: Loading ROM file: /home/adrian/RetroArch/ROMS/Super Mario Bros..nes.
RetroArch: Did not find a valid ROM patch.
RetroArch: CRC32: 0x3337ec46, SHA256: f61548fdf1670cffefcc4f0b7bdcdd9eaba0c226e3b74f8666071496988248de
RetroArch: Set audio input rate to: 31920.23 Hz.
RetroArch: Video @ 768x720
RetroArch [WARN] :: 0RGB1555 pixel format is deprecated, and will be slower. For 15/16-bit, RGB565 format is preferred.
RetroArch [ERROR] :: Cannot open video driver ... Exiting ...
RetroArch [ERROR] :: Fatal error received in: "init_video_input()"

Any Idea? I tried in the same machine with an Ubuntu Live and it works!

Thanks in advance

adryoid: If it’s working on a live cd, it sounds like you might be running an old driver. Which GPU do you have, and are you using proprietary or open source drivers with it?

Hello hunterk,

thanks for the fast reply, this is the current mesa driver which I’m currently running, please let me know if I should update it :slight_smile:

Package: libgl1-mesa-dev                          
Status: installed
Automatically installed: no
Version: 8.0.5-4+deb7u2
Priority: optional
Section: libdevel
Developer: Debian X Strike Force <[email protected]>
Arquitecture: amd64
Size w/o compress: 82,9 k
Depends on: mesa-common-dev (= 8.0.5-4+deb7u2), libgl1-mesa-glx (= 8.0.5-4+deb7u2), libxext-dev
Have conflict with: libgl-dev, libgl1-mesa-dri-dev
Replace: libgl-dev, libgl1-mesa-dri-dev
[...]

anyway I’m at office right now, I will provide you further Information this evening on the affected machine, thanks!

Hi,

here I am again

adrian@DebianDesktop:~$ lspci -nnk | grep -i vga -A3 | grep 'in use'
	Kernel driver in use: i915

for further info please feel free to ask me.

Thanks in advance

Hmm. Yeah, looks like Ubuntu’s all the way on Mesa 10 vs 8 for wheezy, though I’m not sure why that matters, since RetroArch isn’t very demanding of OpenGL features, AFAIK. Are you trying to run from console via KMS?

Hi, I tried both, from console and from retroarch-phoenix, and both the same result, anyway I’ll update mesa drivers and depends. and I’ll be back :slight_smile:

Hi, here I am one more time.

I updated mesa drivers from Debian Jessie Repositoryand now I have the version 10 installed and dependencies also updated.

The last error is gone but get another instead, I paste the code…

adrian@DebianDesktop:~$ /usr/local/bin/retroarch /home/adrian/RetroArch/ROMS/Nintendo\ Entertainment\ System/Super\ Mario\ Bros..zip -L /usr/lib/libretro-super/bnes_libretro.so -v
=== Build =======================================
Compiler: GCC (4.7.2) 64-bit
Built: May 16 2014
Version: 1.0.0.2
Git: cf3c3ef
=================================================
RetroArch: [CPUID]: Vendor: GenuineIntel
RetroArch: [CPUID]: MMX:    1
RetroArch: [CPUID]: MMXEXT: 1
RetroArch: [CPUID]: SSE:    1
RetroArch: [CPUID]: SSE2:   1
RetroArch: [CPUID]: SSE3:   1
RetroArch: [CPUID]: SSSE3:  1
RetroArch: [CPUID]: SSE4:   1
RetroArch: [CPUID]: SSE4.2: 0
RetroArch: [CPUID]: AVX:    0
RetroArch: [CPUID]: AVX2:   0
RetroArch: Loading default config.
RetroArch: Looking for config in: "/home/adrian/.config/retroarch/retroarch.cfg".
=== Config ===
config_save_on_exit = "true" 
=== Config end ===
RetroArch [WARN] :: system_directory is not set in config. Assuming system directory is same folder as game: "".
RetroArch: Found default config: /home/adrian/.config/retroarch/retroarch.cfg.
RetroArch: Loading dynamic libretro from: "/usr/lib/libretro-super/bnes_libretro.so"
RetroArch: Version of libretro API: 1
RetroArch: Compiled against API: 1
RetroArch: Loading ROM file: /home/adrian/RetroArch/ROMS/Nintendo Entertainment System/Super Mario Bros..nes.
RetroArch: Did not find a valid ROM patch.
RetroArch: CRC32: 0x3337ec46, SHA256: f61548fdf1670cffefcc4f0b7bdcdd9eaba0c226e3b74f8666071496988248de
RetroArch: Set audio input rate to: 31920.23 Hz.
RetroArch: Video @ 768x720
RetroArch [WARN] :: 0RGB1555 pixel format is deprecated, and will be slower. For 15/16-bit, RGB565 format is preferred.
Segment violation

I run it without config file, I think this is the best way to test if it works isn’t it?

Thanks :slight_smile:

Does it give the same error with all cores? Also, did you recompile after updating your packages?

Yes, I just finished to do it, I recompiled RetroArch (updating git) but not all cores.

And the problem persists with all cores I tried.

Tomorrow I’ll repeat operations in a Debian virtual machine replica to be sure that I’m not making mistakes.

Can you run it through gdb?

What does --features say?

Hi, after 2 days testing and breaking my Debian system I could determine the root cause, so:

when I updated the libgl1-mesa-dev to version >= 10.1 the libgl1-mesa-dri was still in version 8.0 (from jessie repositories) and there is no way or I think that there is no way to update libgl1-mesa-dri without breaking gnome3.

If you install another desktop environment like MATE or LXDE there is no problem to update both packages and get Retro Arch running with GL drivers and RGUI working.

Anyway, from current Debian Wheezy 7.5 x32 or x64 “Stable” there is no way to run it with gl drivers (libgl1-mesa-x version = 8)

At this moment, I migrate to elementaryOS ant there I have no problem to update both packages, compile and run RetroArch with OpenGL.

Summarizing: No chance for Debian with Gnome3 Desktop Env. :frowning:

Thanks a lot for your support and I’ll be happy to help you if you need someone to test packages on Debian or something.