-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video encoding returned exit code: -1073740791 (0xC0000409) #553
Comments
I think the test build below might help, fixing misaligned access in spline36 resize. Please have a try. If it does not help, I think we need to narrow down where the error is caused, by removing filters one by one. |
tHANKS RIGAYA, Ill give it a try. |
so it got worse. but only on run on large files. So 110 files are 17 minute episodes they all work fine. but on The Introduction stories called Gaiden the story are 2 hours and yjays when things het difficult. I have tons of ram I wonder if theres any way to leverage the excess ram I have during mvidia rendering sorry. What tests should I do next to creatte some useful data. Thanks |
I see... I've also tried with some files but were not able to reproduce the error... I think we need to narrow down which filter is causing the error, as there are many options used, making it difficult to find out what is the cause. We actually have 4 filters running, and hard to say which is the cause.
Please have a try for steps below, and would you let me know which step make the encode run fine? In this way, it should be able to identify which filter is the problem. (I'm sorry, this will be time consuming)
|
NO PROBLEM THANKS FOR THE LAYOUT OF TESTS ILL RUN THEM ALL WITH A FILE THAT HAS FAILED BEFORE. |
Im doing the testing without using staxrrip so theres no avisynth messing around in this. |
These all ran fine. I think to get to bottom of this error I need some kind of debugging log ALL THE TIME. so thaT when it does blow usually about 7% OF THE FILES i CAN CAPTURE USEFUL INFO. i have plenty of HD space for useless lgs to catch the good one. ONE will error and well catch it. |
I added -log %sourcefile% --log-level debug in ALL my runs. were gonna catch the bug, |
OK heres a few logs from both staxrip and NvencC 7.42.1beta THAT CRASHED. The 7.42.1.release crashes more than the beta so Im using it. Theres no real scientific reason, it just works better IT APPEARS. Could be digital hocus pocus. I added those two --log and --log-level flags to give you more info hopefully so that is what the NvencC.log files are. the others are just staxrip logs but lots of useful info. Also episodes 50-53 ALL CRASHED but when reripped they ran through fine. very strange and unpredictable this bug but it likes error 409 and I assure you its in here and Im gonna find it. TO THE HUNT!! hahhaa. LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1994.S03E073.NvencC.log along comes a third LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1994.S03E078.NvencC.log and a fourth LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1994.S03E080_staxrip.log Well I guess my luck is either terrible or great depending. Video encoding returned exit code: -1073741819 (0xC0000005) staxrip caught the error but the nvencC log did NOT. very strange staxrip would be a better log than NvencC. |
I feel like STAXRIP should be involved. Reason when I do just two jobs at a time no error. so if I do 40 at once in the queue this somehow affects outcome i think. bigger the queue bigger number errors. But why?? i think ive seen a trend in this manner. Like memory getting cleared etc for next job but something in the queue process messes with memory by not clearing it or something. |
Actually your logs still have all 4 filters activated, therefore there are possibility of error in each filter, so I cannot tell anything from it.
As I've said in the previous message, please try switching off one by one, and check which filter is causing the issue. In order to figure out the problem, we need to make things more simple. At least, please remove --vpp-convolution3d and --vpp-edgelevel on test so that we can make sure the problem is in the nvvfx-superres. Currently, we need to think of all 4 filters, and this is making things unnecessarily complicated. I'm really not sure what is going on on your PC, but I've made a test build which might improve the error, fixing another possiblity of unaligned access. |
I ran the new build and it errored 409 the usual misaligned address I then turned off 3d convolution and edgelevel and the error went away. this is the most reproducable sequence i have had. with just edgelevel on it completed so I guess we are loking at 3d convolusion as the issue maybe. But I changed the settings on convolution from 30-10-30-10 to 30-11-30-11 and the file went through no bugs. the command was in this log from NvencC because of the constant debug logs. Ill change back to the VERY original settings and see if it fails again like last time on episode 94 almost immediately bombed so ill try again to reproduce the bug on 94. do you wish to examine further with the actual file or what should I do next. |
II think Ive got a reproducable error. 94 failed with 3d set to 30-10-30-10 TWICE. otherwise heres the file downlaod from my google drive. https://drive.google.com/uc?id=1Y7JQMLr2Ru73VFuWQmCMFE6aK8wfYbs-&export=download NVEncC 7.42.2 "F:\Downloads\APPS and INSTALLERS\StaxRip-v2.34.0-x64\Apps\Encoders\NVEncC\NVEncC64.exe" --avsdll "F:\Downloads\APPS and INSTALLERS\StaxRip-v2.34.0-x64\Apps\FrameServer\AviSynth\AviSynth.dll" --qvbr 18 --codec h265 --preset P7 --output-depth 10 --level 5.1 --multipass 2pass-full --qp-init 18 --qp-max 20 --qp-min 18 --max-bitrate 8000 --aq --aq-strength 1 --bframes 4 --ref 8 --lookahead 12 --gop-len 120 --cu-min 8 --vpp-resize algo=nvvfx-superres --vpp-convolution3d matrix=standard,ythresh=30,cthresh=10,t_ythresh=30,t_cthresh=10 --vpp-edgelevel strength=7,threshold=25,black=12 --colormatrix bt709 --colorprim bt709 --transfer bt709 --colorrange limited --cuda-schedule spin --output-buf 128 --perf-monitor-interval 2000 --vbr-quality 18 --output-res 1920x1080 --log "F:\Downloads\STAXRIP CACHE\LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1996.S04E094_temp\LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1996.S04E094.NvencC.log" --log-level debug --mv-precision q-pel -i "F:\Downloads\STAXRIP CACHE\LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1996.S04E094_temp\LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1996.S04E094.avs" -o "F:\Downloads\STAXRIP CACHE\LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1996.S04E094_temp\LOGH.(Ginga.Eiyuu.Densetsu).Main.Series.720p.1996.S04E094_out.h265" |
Well I've `done 20 more and only 2 errored. I added a CloseProject command in staxrip after every completed job. that might helped. no idea. tell me what to do next and ill stick this out. Im willing to do whatever testing u like since nvvfx is gonna be very busy w these amazing results. seriously reduce the compression size by 20%. and at such a high CQP 16 setting. These were 720p but Blu-ray masters so they came out even better than studio could produce with some of the most powerful ripping machines around. RARELY have I EVER seen the background white noise go down SOOOOO much to drop an already STUDIO COMPRESSED video by 20% frickin percent NEVER!. just through AI color contrast brightness unification and white noise removal. SIMPLY ASTOUNDING. For a 8 core i7 laptop with 10TB SSD it does pretty amazing stuff with off the shelf technology like NvencC and StaxRip. I cant stand handbrake. no freedom, canned boring stuff. Maybe they use NvencC as well, u would know. |
I actually did not expect it to work by making --vpp-convolution3d and --vpp-edgelevel disabled, because it would mean that there is a problem with --vpp-convolution3d and --vpp-edgelevel. I have rechecked the code for these 2 filters quite carefully, but could not find anything that might cause the error. Also I tried testing your input file, but unfortunately(?) there were nothing strange, it run with no problem using your options. This might be because our system has quite different setups in many ways, different OS, different GPU, so on.
With everything I can come up of at this point having been done, and with the difficulty of reproducing the problem at my own system, I can no longer come up with any extra ideas. I am sorry, but please understand I'm not being able to come up of any more suggestions. As --vpp-convolution3d might be the cause of trouble, I suggest you to disable --vpp-convolution3d and use convolution3d from Avisynth filter, it might be useful to avoid the error. |
Thanks for the tip Ive successfully installed and run it through avisynth seems to all work fine. |
Misalignment is accessing memory in address which cannot be divided by it’s access size, but I’m not sure and actually have no idea about it’s cause this time. Anyway, it’s nice to hear that the solution worked out fine, I’ll close the issue since we’ve got to a workaround. |
I just want to report that I also often get similar errors (0xc0000005 and 0xC0000409) after updating StaxRip to a newer version. |
Hey rigaya,
Its me again causing trouble for you.
Can you help me figure out why the nvvfx-ssuperres kicks out this error randomly it seems
Reripping usually takes care of the issue but its a hassle redoing rips that take 20 minutes then rerip sometimes twice more to finality get finished. The quality though id AMAZING so we work our best issue.
Heres the rest of the log of one of them.
Thx, Randy
--------------------------- Video encoding ---------------------------
NVEncC 7.42
"F:\Downloads\APPS and INSTALLERS\StaxRip-v2.34.0-x64\Apps\Encoders\NVEncC\NVEncC64.exe" --avsdll "F:\Downloads\APPS and INSTALLERS\StaxRip-v2.34.0-x64\Apps\FrameServer\AviSynth\AviSynth.dll" --qvbr 18 --codec h265 --preset P7 --output-depth 10 --level 5.1 --multipass 2pass-full --qp-init 18 --qp-max 20 --qp-min 18 --max-bitrate 8000 --aq --aq-strength 1 --bframes 4 --ref 8 --lookahead 12 --gop-len 120 --cu-min 8 --vpp-resize algo=nvvfx-superres --vpp-convolution3d matrix=standard,ythresh=30,cthresh=10,t_ythresh=30,t_cthresh=10 --vpp-edgelevel strength=7,threshold=25,black=12 --colormatrix bt709 --colorprim bt709 --transfer bt709 --colorrange limited --cuda-schedule spin --output-buf 128 --perf-monitor-interval 2000 --vbr-quality 18 --output-res 1920x1080 --mv-precision q-pel -i "F:\Downloads\STAXRIP CACHE\LOGH.G07E03_temp\LOGH.G07E03.avs" -o "F:\Downloads\STAXRIP CACHE\LOGH.G07E03_temp\LOGH.G07E03_out.h265"
F:\Downloads\STAXRIP CACHE\LOGH.G07E03_temp\LOGH.G07E03_out.h265
NVEncC (x64) 7.42beta1 (r2683) by rigaya, Jan 27 2024 07:27:38 (VC 1929/Win)
OS Version Windows 10 x64 (17763) [CP1252]
CPU Intel Core i7-10750H @ 2.60GHz [TB: 4.51GHz] (6C/12T)
GPU #0: NVIDIA GeForce RTX 2070 (2304 cores, 1455 MHz)[PCIe3x16][551.23]
NVENC / CUDA NVENC API 12.1, CUDA 12.4, schedule mode: spin
Input Buffers CUDA, 32 frames
Input Info AviSynth+ 3.7.3 r4003(yv12)->nv12 [AVX2], 960x720, 60/1 fps
Vpp Filters copyHtoD
cspconv(nv12 -> yv12(16bit))
convolution3d: matrix standard, mode normal
threshold spatial luma 30, chroma 10, temporal luma 30, chroma 10
resize: nvvfx-superres 960x720 -> 1920x1440
nvvfx-superres: cspconv(yv12(16bit) -> bgr(fp32))
nvvfx-superres: mode: 1 (aggressive), strength 0.40
cspconv(bgr(fp32) -> yv12(16bit))
spline36 1920x1440 -> 1920x1080
edgelevel: strength 7.0, threshold 25.0, black 12.0, white 0.0
cspconv(yv12(16bit) -> p010)
Output Info H.265/HEVC main10 @ Level 5.1
1920x1080p 1:1 60.000fps (60/1fps)
Encoder Preset quality
Rate Control VBR
Multipass 2pass-full
Bitrate 0 kbps (Max: 8000 kbps)
Target Quality 18.00
Initial QP I:18 P:18 B:18
QP range I:18-20 P:18-20 B:18-20
QP Offset cb:0 cr:0
VBV buf size auto
Split Enc Mode auto
Lookahead on, 12 frames, Adaptive I, B Insert
GOP length 120 frames
B frames 4 frames [ref mode: middle]
Ref frames 8 frames, MultiRef L0:auto L1:auto
AQ on (spatial, strength 1)
CU max / min auto / 8
VUI matrix:bt709,colorprim:bt709,transfer:bt709,range:limited
Others mv:Q-pel
cspconv: error at convert_from_rgb_list(bgr(fp32) -> yv12(16bit)): misaligned address.
nvvfx-superres: Error while running filter "cspconv".
resize: Error while running filter "nvvfx-superres".
Error while running filter "resize".
Error cudaEventSynchronize: 716 ().
ERROR: 1: [fusedConvActRunner.cpp::nvinfer1::rt::cuda::FusedConvActRunner::destroyFilterTexture::293] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [defaultAllocator.cpp::nvinfer1::internal::DefaultAllocator::deallocate::42] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [defaultAllocator.cpp::nvinfer1::internal::DefaultAllocator::deallocate::42] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaStream::~ScopedCudaStream::47] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaResources.cpp::nvinfer1::ScopedCudaEvent::~ScopedCudaEvent::24] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [defaultAllocator.cpp::nvinfer1::internal::DefaultAllocator::deallocate::42] Error Code 1: Cuda Runtime (misaligned address)
ERROR: 1: [cudaDriverHelpers.cpp::nvinfer1::CuDeleter<struct CUmod_st *,&enum cudaError_enum __cdecl nvinfer1::cuModuleUnloadWrapper(struct CUmod_st *)>::operator ()::29] Error Code 1: Cuda Driver (misaligned address)
ERROR: 1: [cudaDriverHelpers.cpp::nvinfer1::CuDeleter<struct CUmod_st *,&enum cudaError_enum __cdecl nvinfer1::cuModuleUnloadWrapper(struct CUmod_st *)>::operator ()::29] Error Code 1: Cuda Driver (misaligned address)
ERROR: 1: [cudaDriverHelpers.cpp::nvinfer1::CuDeleter<struct CUmod_st *,&enum cudaError_enum __cdecl nvinfer1::cuModuleUnloadWrapper(struct CUmod_st *)>::operator ()::29] Error Code 1: Cuda Driver (misaligned address)
ERROR: 1: [cudaDriverHelpers.cpp::nvinfer1::CuDeleter<struct CUmod_st *,&enum cudaError_enum __cdecl nvinfer1::cuModuleUnloadWrapper(struct CUmod_st *)>::operator ()::29] Error Code 1: Cuda Driver (misaligned address)
ERROR: 1: [cudaDriverHelpers.cpp::nvinfer1::CuDeleter<struct CUmod_st *,&enum cudaError_enum __cdecl nvinfer1::cuModuleUnloadWrapper(struct CUmod_st *)>::operator ()::29] Error Code 1: Cuda Driver (misaligned address)
ERROR: 1: [cudaDriverHelpers.cpp::nvinfer1::CuDeleter<struct CUmod_st *,&enum cudaError_enum __cdecl nvinfer1::cuModuleUnloadWrapper(struct CUmod_st *)>::operator ()::29] Error Code 1: Cuda Driver (misaligned address)
ERROR: 1: [defaultAllocator.cpp::nvinfer1::internal::DefaultAllocator::deallocate::42] Error Code 1: Cuda Runtime (misaligned address)
The text was updated successfully, but these errors were encountered: