video priorities options crash BB

Issue #5666 new
IceLancer SR created an issue

options in launchbox

video priorities:

-video snap

-theme video

that is default order , but if i change order to

-theme video

-video snap

BB would attempt to search for non existent folder “theme” within “video” folders and crash/hang BB

2020-10-13 12:13:01 AM FIRST CHANCE EXCEPTION: Access to the path 'E:\Roms\Sony PlayStation 2\Video\Theme' is denied.
   at System.IO.FileSystem.CreateDirectory(String fullPath, Byte[] securityDescriptor)
   at System.IO.Directory.CreateDirectory(String path)
   at Unbroken.LaunchBox.Windows.Paths.CreateDirectory(String path)
   at Unbroken.LaunchBox.Windows.Data.Platform.GetVideosFolderPath(String videoType)
   at Unbroken.LaunchBox.Windows.Data.Game.GetVideoFilePaths(String videoType)
   at N3bIj1TAGCejFqv1GDO.S2WdDKntp(Object , String imageType, N3bIj1TAGCejFqv1GDO )
   at Unbroken.LaunchBox.Windows.Data.Game.GetVideoPath(String videoType)
   at Unbroken.LaunchBox.Windows.Data.Game.GetVideoPath(Boolean prioritizeThemeVideos)
   at Unbroken.LaunchBox.Windows.BigBox.ViewModels.WheelGamesViewModel.LoadDetails(Guid instance)
   at LJTUSgevspT4d7UwAPb.V9TexO9GG(Object , Guid  , LJTUSgevspT4d7UwAPb )
   at Unbroken.LaunchBox.Windows.BigBox.ViewModels.GamesViewModelBase.<>c__DisplayClass188_0.YiZ97uHOeV()
   at Unbroken.LaunchBox.Windows.Threading.<>c__DisplayClass1_0.v4LDw1QZ1s()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---

Comments (10)

  1. IceLancer SR reporter

    Its also happening when game has no video , it tries to search the non existent folder and freezes

  2. Christian

    Seems we are having issues creating the folder to place the videos in. Should bring up an error message, not crash or hang LaunchBox. Do you have any weird permissions set on that directory by chance? Can you manually create the folder you see LaunchBox trying to create? Does it let you?

  3. IceLancer SR reporter

    No. its big folder with all roms in there. Different systems. For couple systems i see that folder is created , but some others its not and BB freezes. Well, not entirely freeze, theme works i can go up down next right. But i cannot go back i am just stuck at that system unable to go anywhere else.

    Why is BB even attempting to create those folders ? It can’t be theme beside aobox dll i have no other mods or anything weird that would attempt to make theme folder

  4. Christian

    Could you send me a zip of your Data folder? It would appear to me that you have changed a platforms video folder to point to “E:\Roms\Sony Playstation 2\Video”. Theme videos by default go in \\{NameOfVideoFolder}\Theme and so if it isn’t there when any part of LaunchBox or Big Box asks for a Theme Video it will attempt to create it. Since you put theme as top priority any control that wants to play a default video will attempt to grab a theme video which is why you get that error.

  5. Christian

    Also we have video related fixes in the most recent beta, would it be possible for you to move to 11.7 beta 7 so we can make sure those errors aren’t affecting what you are seeing as well? I ask because the exception you post is a “First Chance Exception” which should NOT be hanging your application. It WOULD make any video controls simply not play though.

  6. IceLancer SR reporter

    I use that kind of setup for portability purposes of my arcade cabinet. And yes before BB would always look inside LaunchBox\Videos\%platform%\theme before

    i know as i was testing some hyperspin recorded snaps. But now its not doing that any more its attempting to read theme videos from my other drive where videos are and fails

  7. IceLancer SR reporter

    I just noticed that some of my systems got new folders inside video folders. Trailer and Recordings , but others did not. And those without those 3 folders would cause the problem.

    I did correct my self. Its not entirely freeze of BB it just becomes unresponsive , or rather i can do things inside of that patform, but thats it, i cant get out of it i cant start game and no videos would show , only solution is force close

  8. IceLancer SR reporter

    I did another extensive test with latest beta. all 3 folders seems to be automatically created now , and platform doesnt bug out . I am at the moment unable to reproduce problem , because all folders create properly. But it still cause a problem , what if for some reason folders fails to create? And it is kinda annoying to see new folders created in there.

    P.S i see new change, game without video shows black screen, before it would keep playing last working video

  9. Log in to comment