libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
9.74k stars 1.77k forks source link

Random freezin on startup! #6652

Open metspo opened 6 years ago

metspo commented 6 years ago

First and foremost consider this:

Description

[RA freezes on random startup, at this spot "[INFO] [DINPUT]: Enumerating joypads ..."]

Expected behavior

[Start "instantly"]

Actual behavior

[RA starts and hangs for 30sec-1min on startup "[INFO] [DINPUT]: Enumerating joypads ..."]

Steps to reproduce the bug

  1. [Connect controller]
  2. [Start RA]

Bisect Results

Version/Commit

You can find this information under Information/System Information

Environment information

RobLoach commented 6 years ago

Mind posting your full log?

metspo commented 6 years ago

[INFO] RetroArch 1.7.2 (Git 2160f185f1) [INFO] === Build ======================================= Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AES Built: Apr 24 2018 [INFO] Version: 1.7.2 [INFO] Git: 2160f185f1 [INFO] ================================================= [INFO] Environ SET_PIXEL_FORMAT: RGB565. [INFO] Redirecting save file to "C:\Users\Matti\AppData\Roaming\RetroArch\saves.srm". [INFO] Redirecting savestate to "C:\Users\Matti\AppData\Roaming\RetroArch\states.state". [INFO] Version of libretro API: 1 [INFO] Compiled against API: 1 [INFO] [Audio]: Set audio input rate to: 29970.03 Hz. [INFO] [Video]: Video @ fullscreen [INFO] [GL]: Found GL context: wgl [INFO] [GL]: Detecting screen resolution 1920x1080.

[INFO] [GL]: Vendor: NVIDIA Corporation, Renderer: GeForce GTX 1070/PCIe/SSE2. [INFO] [GL]: Version: 4.6.0 NVIDIA 397.31. [INFO] [GL]: Using ARB_sync to reduce latency. [INFO] [GL]: Using resolution 1920x1080 [INFO] [GL]: Default shader backend found: glsl. [INFO] [Shader driver]: Using GLSL shader backend. [INFO] [GLSL]: Checking GLSL shader support ... [INFO] Found #pragma parameter AS Curve Height (CURVE_HEIGHT) 1.000000 0.300000 2.000000 0.100000 [INFO] Found #pragma parameter AS Video Lvl Out (VIDEO_LEVEL_OUT) 0.000000 0.000000 1.000000 1.000000 [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Using GLSL version 130. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] Setting up menu pipeline shaders for XMB ... [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] [GLSL]: Found GLSL vertex shader. [INFO] [GLSL]: Found GLSL fragment shader. [INFO] [GLSL]: Linking GLSL program. [INFO] Resetting shader to defaults ... [INFO] [GL]: Using 4 textures. [INFO] [GL]: Loaded 2 program(s). [INFO] [GL]: Using GL_RGB565 for texture uploads. [INFO] [GL]: Creating FBO 0 @ 512x512 [INFO] [XInput]: Found XInput v1.4. [INFO] [XInput]: Found XInput v1.4. [INFO] [DINPUT]: Enumerating joypads ... ------------------------------------------THIS IS WHERE IT HANGS. After the hangup.

[INFO] [DINPUT]: Device #0 PID: {6101} VID:{2DC8} [INFO] [Autoconf]: 67 profiles found. [INFO] [autoconf]: selected configuration: C:\Users\Matti\AppData\Roaming\RetroArch\autoconfig\xinput\8Bitdo_Pro_SN30_BT.cfg [INFO] [DINPUT]: Done enumerating joypads ... [INFO] [Joypad]: Found joypad driver: "dinput". [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Video]: Found display server: win32 [INFO] Found shader "C:\Users\Matti\AppData\Roaming\RetroArch\shaders\retroarch.glslp" [INFO] XAudio2: Requesting 45 ms latency, using 45 ms latency. [INFO] [Menu]: Found menu display driver: "menu_display_gl". [INFO] Found #pragma parameter AS Curve Height (CURVE_HEIGHT) 1.000000 0.300000 2.000000 0.100000 [INFO] Found #pragma parameter AS Video Lvl Out (VIDEO_LEVEL_OUT) 0.000000 0.000000 1.000000 1.000000 [INFO] [Font]: Using font rendering backend: freetype. [INFO] [Font]: Using font rendering backend: freetype. [INFO] [LED]: LED driver = 'null' 000000000089D4E0 [WARN] Input device ID 5 is unknown to this libretro implementation. Using RETRO_DEVICE_JOYPAD. [INFO] SRAM will not be saved. [INFO] Found #pragma parameter AS Curve Height (CURVE_HEIGHT) 1.000000 0.300000 2.000000 0.100000 [INFO] Found #pragma parameter AS Video Lvl Out (VIDEO_LEVEL_OUT) 0.000000 0.000000 1.000000 1.000000 [INFO] Loading history file: [C:\Users\Matti\AppData\Roaming\RetroArch\content_history.lpl]. [INFO] Loading history file: [C:\Users\Matti\AppData\Roaming\RetroArch\content_favorites.lpl]. [INFO] Loading history file: [C:\Users\Matti\AppData\Roaming\RetroArch\content_music_history.lpl]. [INFO] Loading history file: [C:\Users\Matti\AppData\Roaming\RetroArch\content_video_history.lpl]. [INFO] Loading history file: [C:\Users\Matti\AppData\Roaming\RetroArch\content_image_history.lpl]. [INFO] [GL]: VSync => on

[WARN] [WGL]: wglSwapInterval() failed. [INFO] [GL]: VSync => on

[WARN] [WGL]: wglSwapInterval() failed.

ghost commented 6 years ago

Do you have some other program running that supports gamepads? Like Steam or something? If you're not sure or don't find anything, you could try running RetroArch in safe mode and see if it still happens. That might narrow the issue down to a windows system file or driver issue instead of another application interfering.

metspo commented 6 years ago

Well, steam. I can try without it to reproduce the freezing.

metspo commented 6 years ago

Could not get RA to freeze on startup with steam on or off right now, changing between raw and dinput driver. This is getting weird. Last time i coudlnt even start RA without freezing.

inactive123 commented 6 years ago

I think it's related to which USB devices you have connected -

more info is here on issues with IDirectInput8_EnumDevices -

https://stackoverflow.com/questions/10967795/directinput8-enumdevices-sometimes-painfully-slow?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

inactive123 commented 6 years ago

Seems to be happening for plenty of others too on Windows 10 with other apps -

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/db490151-b26b-42d0-8cf5-131ef05776da/directinput-function-idirectinput8enumdevices-bug-on-win10?forum=vcgeneral