t3 icon indicating copy to clipboard operation
t3 copied to clipboard

Play video operator crash T3

Open microvswind opened this issue 1 year ago • 7 comments

Describe the bug Place play video operator on homecanvas and T3 3.51 standalone crashed. same result on any dev version i have tried or built.. same result in Standalone or IDE

Please complete the following information):

  • OS: win 10
  • Version:21H2
  • Graphics card and resolution itel(R) HD Graphics 5000
  • Microsoft surface pro 3

To Reproduce Steps to reproduce the behavior:

  1. launch T3
  2. place playvideo in home canvas.
  3. T3 crash without any tips.

Expected behavior loading The operator PlayVideo ... should allow me to use the operator instead tooll3 is crashing upon load of this operator

Screenshots

https://user-images.githubusercontent.com/103630540/233410949-5c7696a8-5af1-4d21-b9a1-a63a34f30f92.mp4

22

Additional context SharpDX.SharpDXException HResult=0x80070057 Message=HRESULT: [0x80070057], Module: [General], ApiCode: [E_INVALIDARG/Invalid Arguments], Message: 参数错误。

Source=Operators StackTrace: at T3.Operators.Types.Id_914fb032_d7eb_414b_9e09_2bdd7049e049.PlayVideo.SetupTexture(Size2 size) in C:\Users\micro_000\T3_New\Operators\Types\lib\img\video\PlayVideo.cs:line 202 at T3.Operators.Types.Id_914fb032_d7eb_414b_9e09_2bdd7049e049.PlayVideo.Update(EvaluationContext context) in C:\Users\micro_000\T3_New\Operators\Types\lib\img\video\PlayVideo.cs:line 79 at T3.Core.Operator.Slots.Slot1.Update(EvaluationContext context) at T3.Editor.Gui.OutputUi.OutputUi1.DrawValue(ISlot slot, EvaluationContext context, Boolean recompute) at T3.Editor.Gui.Windows.Output.OutputWindow.UpdateAndDrawOutput(Instance instanceForOutput, Instance instanceForEvaluation) at T3.Editor.Gui.Windows.Output.OutputWindow.DrawContent() at T3.Editor.Gui.Windows.Window.DrawOneInstance() at T3.Editor.Gui.Windows.Output.OutputWindow.DrawAllInstances() at T3.Editor.Gui.Windows.Layouts.WindowManager.Draw() at T3.Editor.Gui.T3Ui.ProcessFrame() at T3.Editor.Program.<>cDisplayClass11_0.<Main>gRenderCallback|1() at SharpDX.Windows.RenderLoop.Run(Control form, RenderCallback renderCallback, Boolean useApplicationDoEvents) at T3.Editor.Program.Main(String[] args)

microvswind avatar Apr 20 '23 15:04 microvswind

play video and play video clip have the same issue. either place the operator from Tab/Add Lib / symbol library

microvswind avatar Apr 20 '23 15:04 microvswind

I can only imagine that this is somehow a specific problem with Microsoft Surface video handling .. as i have no issues with this operator .. loading and it plays perfectly .. even on Stanalone 3.5.1 downloaded from the Github ..

I would think this needs to be looked into further specifically to try and identify what makes it crash with this system specifically..

sense-amr avatar Apr 20 '23 15:04 sense-amr

I can't really reproduce the issue.

So ideas what my cause this issue:

  • GraphicCard or driver are no capable enough. Could you open [Demo_There] and see if it runs?
  • 参数错误 (Parameter error) triggered when creating a DirectX Texture2d indicates some kind of driver problem.

I really curious if this problem is really related to video at all or just a symptom....

pixtur avatar Apr 27 '23 22:04 pixtur

@pixtur Might that be shader or shader version related?

HolgerFoerterer avatar May 10 '23 05:05 HolgerFoerterer

@microvswind would it be possible to get a copy of the a video that is causing the exception on your end?

pixtur avatar Jul 20 '23 20:07 pixtur

Looks like it's not related to a specific video. Placing the operator alone already seems to crash the software. It may be the specific texture capabilities we request that the Surface Pro 3 doesn't support.

HolgerFoerterer avatar Jul 21 '23 01:07 HolgerFoerterer

That's sad. Maybe can prevent the crash by first checking the supported texture formats. Also we could add a try/catch around that PlayVideo.cs call.

pixtur avatar Aug 09 '23 20:08 pixtur