akiver / cs-demo-manager

Companion application for your Counter-Strike demos.
https://cs-demo-manager.com
MIT License
1.42k stars 198 forks source link

Raw files not found #763

Closed kmesong closed 7 months ago

kmesong commented 8 months ago

Describe the bug

When I try to generate a video and if I keep the game on the foreground, it immediately closes and I have the error Raw files not found. If I leave it in the background, then it can generate a video but at the risk of not being in the right view (as described in the FAQ). It happens with every demos (even before the big patch).

Demo links

No response

Steps to reproduce

  1. Go to a demo
  2. Select video and generate kill sequences
  3. Select Generate button
  4. Game is launching on the foreground and closes.
  5. Raw files not found on the application

Expected behavior

  1. Go to a demo
  2. Select video and generate kill sequences
  3. Select Generate button
  4. Game is launching on the foreground
  5. Video is generated

How often does this bug happen?

Every time

Log file

csdm.log

Environment information

Version: 3.2.3 OS: win32 x64 10.0.22631 Electron: 28.2.2 Chrome: 120.0.6099.276 Last database migrations: v1 - 2024-01-29T15:38:50.402Z

Additional context

No response

akiver commented 8 months ago

I can't reproduce the issue. Could you upload the demo please?

Did you try to watch the demo directly from the game? See this doc for details.
If the game crashes when the playback starts, it may be due to a demo/game bug.

kmesong commented 8 months ago

Here is a demo: https://www.mediafire.com/file/s19a9wnvlygbpru/match730_003667426248537145557_1073661515_377.dem/file

I can watch the demo directly from the game without any issues.

akiver commented 8 months ago

Just tried without problems, could you send a screenshot of your sequences?

I tried with a single sequence: f

kmesong commented 8 months ago

I used the Generate player's kill sequence functionality:

Screenshot 2024-02-13 200029 Screenshot 2024-02-13 200013

If I delete all but the first one, it seems to be working but the sequence is too short (not going until the end).

akiver commented 8 months ago

I still can't reproduce the problem :/
I generated kills of the player "KM" based on your screenshot and I don't have any errors - the video is generated and contains all kills.

I added some logs to try to understand the problem, it will be in the next version. In the meantime you could:

kmesong commented 8 months ago

I have 80Gb free on my drive where CS2 is installed, 220 on my D: drive. The estimated usage is 8GB so I don't think it is the issue. I have done some more testing:

kmesong commented 8 months ago

One extra thing I have noticed: if I have no more sound after a few seconds, I know that I will have the error.

akiver commented 8 months ago

Could you try with v3.3.0 and upload the logs file please?

kmesong commented 8 months ago

I still have the issue with v3.3.0. csdm.log

akiver commented 8 months ago

I still can't reproduce the problem.

Fri, 16 Feb 2024 10:43:16 GMT | ERROR | server | TGA files not found for sequence 2-sequence

I think there are 2 possible reasons:

I added some logs to try to understand, could you please try with the new version and upload the log file if it still doesn't work?

kmesong commented 8 months ago

Your change seems to be enough. I did not have the error at all now. I started playing on FaceIT now, is there a known issue where the POV is not on the selected user on faceit demos? For Valve demos, it seems to be okay though.

akiver commented 7 months ago

Cool! About the POV it could be the same as https://github.com/akiver/cs-demo-manager/issues/775

aserighelli commented 4 months ago

Sorry to bump an old topic, dont know if i sould create a new one or not.

I am having this error on version 3.6.3 when i try to generate a video of round 16 of the below demo. https://www.mediafire.com/file/0v6z32sljiharwo/match730_003690266270436950035_2060405378_201.dem/file

All i am getting in the log file is

Sun, 16 Jun 2024 01:17:52 GMT | LOG | server | Starting HLAE with command "C:\Users\aseri\.csdm\hlae\hlae.exe" -noGui -autoStart -afxDisableSteamStorage -customLoader -hookDllPath "C:\Users\aseri\.csdm\hlae\x64\AfxHookSource2.dll" -programPath "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\bin\win64\cs2.exe" -cmdLine "-insecure -novid +playdemo \"C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\replays\match730_003690266270436950035_2060405378_201.dem\" -width 1024 -height 768 -sw" Sun, 16 Jun 2024 01:17:54 GMT | LOG | server | HLAE exited with code 0 Sun, 16 Jun 2024 01:18:04 GMT | ERROR | server | Recording folder does not exist C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\csgo\csdm\movie Sun, 16 Jun 2024 01:18:04 GMT | LOG | renderer | WS:: message with name "videos-generation-error" received from server Sun, 16 Jun 2024 01:18:04 GMT | ERROR | server | Error while generating videos Sun, 16 Jun 2024 01:18:04 GMT | ERROR | server | Error: Raw files not found at iVe (C:\Users\aseri\AppData\Local\Programs\cs-demo-manager\resources\src\node\video\sequences\move-sequences-raw-files.ts:35:11) at oVe (C:\Users\aseri\AppData\Local\Programs\cs-demo-manager\resources\src\node\video\generate-videos.ts:273:5) at sVe (C:\Users\aseri\AppData\Local\Programs\cs-demo-manager\resources\src\server\handlers\renderer-process\video\generate-videos-handler.ts:56:5) at t.onRendererProcessSocketMessage (C:\Users\aseri\AppData\Local\Programs\cs-demo-manager\resources\src\server\server.ts:177:26)

ehwhattaugonnado commented 1 month ago

After having this problem, stumbling across this issue, and testing some things out I think I have a pretty good idea what's going on. I think it is caused by the raw files not being copied fast enough/some other issue in the copying. It only happens when I'm telling it to move the raw files to a different drive and recording at a low resolution. Even then it only happens with short sequences.

Generate kill video of a 7 kill game at 720p 30 raw files not found. Same sequence at 1080p60 works. I'm moving from nvme to nvme so it's copying quick.

Your idea that the files for multiple sequences are being moved at the same time seems likely. It would only happen with very small files when the raw output folder is on a different drive than the game.

I still can't reproduce the problem.

Fri, 16 Feb 2024 10:43:16 GMT | ERROR | server | TGA files not found for sequence 2-sequence

I think there are 2 possible reasons:

  • The files of the sequence 2 were moved at the same time as files of the sequence 1
  • The game didn't generate images

I added some logs to try to understand, could you please try with the new version and upload the log file if it still doesn't work?

akiver commented 4 weeks ago

Thanks all for the help! I managed to reproduce the issue.

I will update the status in https://github.com/akiver/cs-demo-manager/issues/920 as this issue is not the same problem.