Skip to content
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

Play video operator crash T3 #252

Open
microvswind opened this issue Apr 20, 2023 · 7 comments
Open

Play video operator crash T3 #252

microvswind opened this issue Apr 20, 2023 · 7 comments

Comments

@microvswind
Copy link

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

Editor_CTQIXvH4me.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.

gRenderCallback|1()
at SharpDX.Windows.RenderLoop.Run(Control form, RenderCallback renderCallback, Boolean useApplicationDoEvents)
at T3.Editor.Program.Main(String[] args)

@microvswind
Copy link
Author

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

@sense-amr
Copy link
Contributor

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..

@pixtur
Copy link
Collaborator

pixtur commented Apr 27, 2023

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....

@HolgerFoerterer
Copy link
Contributor

@pixtur Might that be shader or shader version related?

@pixtur
Copy link
Collaborator

pixtur commented Jul 20, 2023

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

@HolgerFoerterer
Copy link
Contributor

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.

@pixtur
Copy link
Collaborator

pixtur commented Aug 9, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants