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

RNW integrate the VLC player crash. #13299

Closed
annpeter opened this issue Jun 5, 2024 · 4 comments
Closed

RNW integrate the VLC player crash. #13299

annpeter opened this issue Jun 5, 2024 · 4 comments
Labels
bug Extensions Tracks issues against community modules and extensions Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) no-recent-activity Issue/PR has gone stale and may be closed (label applied by bot)

Comments

@annpeter
Copy link

annpeter commented Jun 5, 2024

Problem Description

RNW uses LibVLCSharp to integrate the VLC player to play rtmp stream. When loading the player control, the program crashes without any logs. Where can I find the logs? Additionally, I tried loading a control implemented with UserControl, and it did not crash, but loading a control implemented with Control causes the program to crash.

Steps To Reproduce

1、new project
2、 integrate the VLC player, use https://github.com/videolan/libvlcsharp.

Expected Results

No response

CLI version

13.6.6

Environment

System:
  OS: Windows 11 10.0.22631
  CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13490F
  Memory: 12.16 GB / 31.82 GB
Binaries:
  Node:
    version: 20.12.2
    path: D:\Software\nodejs\node.EXE
  Yarn:
    version: 3.6.4
    path: D:\Software\nodejs\yarn.CMD
  npm:
    version: 10.5.0
    path: D:\Software\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.9.34728.123 (Visual Studio Community 2022)
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: ^18.3.1
  react-native:
    installed: 0.74.1
    wanted: ^0.74.1
  react-native-windows:
    installed: 0.74.7
    wanted: ^0.74.7
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: Not found
  newArchEnabled: Not found
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Community Modules

No response

Target Platform Version

10.0.22621

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

@annpeter annpeter added the bug label Jun 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) label Jun 5, 2024
@chrisglein
Copy link
Member

It sounds like you're having an issue with a specific module. Have you tried opening an issue on that repo?

You asked about where to get the crash information. The first thing I would do is launch the app from Visual Studio instead of the command line, and get the logs and exception info from that. Then follow up with an issue on that repo. Or if you find an issue that's not related to the module, continue on here.

@chrisglein chrisglein added Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) Extensions Tracks issues against community modules and extensions and removed Needs: Triage 🔍 New issue that needs to be reviewed by the issue management team (label applied by bot) labels Jun 6, 2024
@annpeter
Copy link
Author

annpeter commented Jun 7, 2024

I konw how to use VS to attach the process, and i did so, but the process just crash When it finishes executing the constructor of the ui control that I want to use, i didn't get any error message.

And i don't konw how to launch the app from Visual Studio.

LibVLCSharp is a video player application written in C#. Its underlying layer is in C. It can run on UWP, and I have successfully run its UWP sample. Currently, no third party has integrated it with RNW, so I have no place to raise this issue.

@chrisglein

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot) and removed Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) labels Jun 7, 2024
@chrisglein
Copy link
Member

I konw how to use VS to attach the process, and i did so, but the process just crash When it finishes executing the constructor of the ui control that I want to use, i didn't get any error message.

Generally that means there's an WinRTOriginate exception that you can get in the debugger.
I'll look around for a general guide on that. In the meantime, I'll share this: https://learn.microsoft.com/en-us/windows/uwp/cpp-and-winrt-apis/troubleshooting

And i don't konw how to launch the app from Visual Studio.

Instructions for that are here: https://microsoft.github.io/react-native-windows/docs/getting-started#running-a-react-native-windows-app

That seems like a key part, because it'll increase your likelihood of just getting that exception right away. Let us know how that pans out.

@chrisglein chrisglein added Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) and removed Needs: Attention 👋 An issue that had been tagged "Needs: Author Feedback" has received activity (label applied by bot) labels Jun 10, 2024
Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 7 days. It will be closed if no further activity occurs within 7 days of this comment.

@microsoft-github-policy-service microsoft-github-policy-service bot added the no-recent-activity Issue/PR has gone stale and may be closed (label applied by bot) label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Extensions Tracks issues against community modules and extensions Needs: Author Feedback The issue/PR needs activity from its author (label drives bot activity) no-recent-activity Issue/PR has gone stale and may be closed (label applied by bot)
Projects
None yet
Development

No branches or pull requests

2 participants