View Issue Details

IDProjectCategoryView StatusLast Update
0000164madVRbugpublic2014-03-02 12:14
Reporterlolly Assigned Tomadshi  
PrioritynormalSeverityminorReproducibilityunable to reproduce
Status closedResolutionnot fixable 
Platformx86OSWindows XP Pro OS Version5.1.2600 (SP3)
Summary0000164: Resample shaders logic error
DescriptionWhen trying to start playing back a video, madVR only rendered blackness.

I quickly toggled between windowed (not maximized) and fullscreen a couple times, a procedure which has helped me before with similar issues (flickering when toggling FRC, blackness when rendering subtitles courtesy of XySubFilter), but this time a "Resample shaders logic error" error message eventually showed up (as pasted below), after which the player disappeared without providing any further crash information.

Note that I switched between windowed and fullscreen mode by double-clicking on the video, which means that both the resolution and the playback state (playing/paused) changed.

This was an one-off occurrence, and I observed it shortly before or after noticing issue 0000163 for the first time, so I suspect(ed) it might be related to running out of video memory as well, but when trying several times to reproduce the issue, even with low video memory I only got the player to disappear on me twice, and it never threw the error message again.
Additional Information---------------------------
Error...
---------------------------
ResampleX[1,0,0]

Resample shaders logic error (3).

sampler SourceSampler : register(s0);
sampler ScaleSampler : register(s2);
float4 infoConsts : register(c0);
#define srcSize (infoConsts[0])
#define dstSize (infoConsts[1])
#define loopStart (infoConsts[2])
#define loopStep (infoConsts[3])
#define sigmoidalContrast 7.5
#define sigmoidalWhatever 0.95404526017994873
#define A -0.003
#define B +1.192

float4 main(float2 Tex : TEXCOORD0) : COLOR0
{
  float3 result = 0;
  float loopPos = loopStart;
  for (int iy = 0; iy < 120; iy++)
  {
    float2 contrib = tex2Dlod(ScaleSampler, float4(loopPos, Tex.y, 0, 0)).rg;
    float3 pix = tex2Dlod(SourceSampler, float4(Tex.x, contrib[0], 0, 0)).rgb;
    result = result + pix * contrib[1];
    loopPos += loopStep;
  }
  return float4(result, 0);
}
---------------------------
OK
---------------------------
TagsNo tags attached.
madVR Version0.87.4 final Dither 3
Media Player (with version info)MPC-HC (Nightly) 1.7.3.45
Splitter (with version info)LAV Splitter 0.60.1
Decoder (with version info)LAV Video Decoder 0.60.1
DecodingSoftware
Deinterlacingnone (progressive)
DXVA2 Scaling Activeno
Aero / Desktop CompositionOff
Problem occurs with modewindowed mode
GPU ManufacturerNVidia
GPU ModelGTS 8800 320 MB (G80)
GPU Driver Version332.21

Activities

madshi

2014-03-02 12:13

administrator   ~0000398

Hmmmm... This is a weird one. It should not happen. The only way I can see this happening is if a part of the RAM area madVR was using was overwritten with other data for some reason. This can occur when a process crashes very very badly, or if the RAM has a hardware defect. In this case I guess the process crashed so bad that this problem was a random consequence of that.

This all means that this problem is not a bug in itself. The real bug was that (probably) some code in the media player process has overwritten a memory area reserved for madVR. So I'll close this bug report, because there's nothing I can fix here.

Issue History

Date Modified Username Field Change
2014-02-27 15:41 lolly New Issue
2014-03-02 12:13 madshi Note Added: 0000398
2014-03-02 12:14 madshi Status new => closed
2014-03-02 12:14 madshi Assigned To => madshi
2014-03-02 12:14 madshi Resolution open => not fixable