Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
141 stars 2 forks source link

SteamAudio throws NullReferenceException on startup sometimes and prevents engine initialization. #741

Open moonman-apollo opened 1 year ago

moonman-apollo commented 1 year ago

Describe the bug?

The loading bar keeps getting stuck due to some Exception being thrown by the Twitch API not loading properly on my machine.

To Reproduce

This is a fresh Resonite install being started from Steam in both Screen and VR mode. I have kept it open for many minutes to check if it resolves. It did not.

Expected behavior

Resonite starting past the load screen

Screenshots

20231121112638_1

Resonite Version Number

Beta 2023.11.18.1263

What Platforms does this occur on?

Windows

What headset if any do you use?

Valve Index and Desktop

Log Files

11:25:51 AM.611 ( -1 FPS) Detecting output device 11:25:51 AM.938 ( -1 FPS) Creating FrooxEngineRunner 11:25:51 AM.977 ( -1 FPS) Initializing Engine Runner 11:25:51 AM.977 ( -1 FPS) Microphone permission authorized 11:25:51 AM.977 ( -1 FPS) External storage read permission authorized 11:25:51 AM.977 ( -1 FPS) External storage write permission authorized 11:25:51 AM.977 ( -1 FPS) DeviceName: Screen 11:25:55 AM.122 ( -1 FPS) AppPath: E:\Steam\steamapps\common\Resonite DataPath: C:/Users/thesp/AppData/LocalLow/Yellow Dog Man Studios/Resonite CachePath: C:/Users/thesp/AppData/Local/Temp/Yellow Dog Man Studios/Resonite 11:25:55 AM.158 ( -1 FPS) Initializing App: Beta 2023.11.18.1263 Platform: Windows HeadDevice: Screen IsAOT: False OS: Windows 10 (10.0.19045) 64bit CPU: 12th Gen Intel(R) Core(TM) i9-12900K GPU: NVIDIA GeForce RTX 3080 Ti PhysicalCores: MemoryBytes: 63.78 GB VRAMBytes: 11.82 GB MaxTextureSize: 16384 IsGPUTexturePOTByteAligned: True UsingLinearSpace: True XR Device Name: XR Device Model: StereoRenderingMode: MultiPass Max GC Generation: 0, IsLittleEndian: True System.Numerics.Vectors HW accelerated: False, Vector.Count: 4 Brotli native encoding/decoding supported: True 11:25:55 AM.158 ( -1 FPS) Supported Texture Formats: Alpha8, RGB24, ARGB32, RGBA32, BGRA32, RGBAHalf, RGBAFloat, BC1, BC3, BC4, BC5, BC6H, BC7 11:25:55 AM.160 ( -1 FPS) Processing startup commands... 11:25:55 AM.165 ( -1 FPS) Scanning locales... 11:25:55 AM.168 ( -1 FPS) Available locales: cs, de, en, en-gb, eo, es, et, fi, fr, is, ja, ko, nl, no, pl, pt-br, ru, sv, tr, zh-cn, zh-tw 11:25:55 AM.172 ( -1 FPS) Loading Config.json... 11:25:55 AM.173 ( -1 FPS) Computing compatibility hash... 11:25:55 AM.175 ( -1 FPS) Compatibility Hash: MUCMAhUUW2SqXWzI/WuKPw== 11:25:55 AM.176 ( -1 FPS) Initializing FrooxEngine... 11:25:55 AM.813 ( -1 FPS) FreeImage Version: 3.18.1 11:25:55 AM.813 ( -1 FPS) BepuPhysics Version: 2.4.0-frooxengine 11:25:55 AM.830 ( -1 FPS) FreeType Version: 2.10.4 11:25:55 AM.830 ( -1 FPS) Opus Version: libopus 1.3.1-138-g07376903 11:25:55 AM.878 ( -1 FPS) Supported 3D model formats: meshx, 3d, 3ds, 3mf, ac, ac3d, acc, amf, ase, ask, assbin, b3d, blend, bsp, bvh, cob, csm, dae, dxf, enff, fbx, glb, gltf, hmp, ifc, ifczip, iqm, irr, irrmesh, lwo, lws, lxo, md2, md3, md5anim, md5camera, md5mesh, mdc, mdl, mesh, mesh.xml, mot, ms3d, ndo, nff, obj, off, ogex, pk3, ply, pmx, prj, q3o, q3s, raw, scn, sib, smd, step, stl, stp, ter, uc, vta, x, x3d, x3db, xgl, xml, zae, zgl 11:25:55 AM.878 ( -1 FPS) Supported point cloud formats: pts, las, laz 11:25:55 AM.879 ( -1 FPS) Supported image formats: bmp, ico, jpg, jif, jpeg, jpe, jng, koa, iff, lbm, mng, pbm, pcd, pcx, pgm, png, ppm, ras, tga, targa, tif, tiff, wap, wbmp, wbm, psd, psb, cut, xbm, xpm, dds, gif, hdr, g3, sgi, rgb, rgba, bw, exr, j2k, j2c, jp2, pfm, pct, pict, pic, 3fr, arw, bay, bmq, cap, cine, cr2, crw, cs1, dc2, dcr, drf, dsc, dng, erf, fff, ia, iiq, k25, kc2, kdc, mdc, mef, mos, mrw, nef, nrw, orf, pef, ptx, pxn, qtk, raf, raw, rdc, rw2, rwl, rwz, sr2, srf, srw, sti, x3f, webp, jxr, wdp, hdp 11:25:55 AM.879 ( -1 FPS) Supported audio formats: wav, wave, flac, fla, ogg, aiff, aif, aifc 11:25:55 AM.879 ( -1 FPS) Supported video formats: mp4, mpeg, avi, mov, mpg, mkv, flv, webm, mts, 3gp, bik, m2v, m2s, wmv, m3u8, m3u, pls, m4a, mp3, mpeg3, aac, ac3, aif, aiff, ape, au, it, mka, mod, mp1, mp2, opus, s3m, sid, w64, wma, xm, nsf, nsfe, gbs, vgm, vgz, spc, gym 11:25:55 AM.879 ( -1 FPS) Supported font formats: ttf, otf, ttc, otc, woff 11:25:55 AM.879 ( -1 FPS) Supported subtitle formats: srt, sub, sub, ssa, ttml, vtt 11:25:55 AM.947 ( -1 FPS) Exception getting types from assembly TwitchLib.Api.V5.Models, Version=3.4.0.0, Culture=neutral, PublicKeyToken=null: System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown. at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool) at System.Reflection.Assembly.GetTypes () [0x00000] in <9577ac7a62

DESKTOP-R0AAKME - 2023.11.18.1263 - 2023-11-21 11_25_51.log

Player.log

Additional Context

No response

Reporters

Discord: steuernsindraub.

art0007i commented 1 year ago

I wanna say correlation does not imply causation because I get that twitch lib error every time and my game also gets past the loading screen without issue every time. In this case I'd also recommend sending the Player.log file (located in AppData/LocalLow/Yellow Dog Man Studios/Resonite) since that might have some additional information about this issue

moonman-apollo commented 1 year ago

Good point Here's the most recent player log. Player.log

shiftyscales commented 1 year ago

Hmm- I see in your Player.log that SteamAudio is throwing a NullReferenceException continually. I suspect that is our smoking gun to figuring out this issue, @Frooxius @moonman-apollo.

I've also had this occur- but have not found any particular conditions under which it reliably occurs- it just seems as though it randomly happens sometimes.

shiftyscales commented 1 year ago

Updated the title to be more descriptive of what I believe this issue is likely related to.