File Logging option crashes Unity Editor
Summary
When using the option "--file-logging" as parameters to create a new LibVLC object, the Unity Editor crashes without opening the "Unity has stopped working..." window and without creating an editor crash log. Because there is no crash log, it is hard to understand what is causing the crash in the first place.
Minimal project and steps to reproduce
This project is very minimal so you can follow this list from 1 or clone this project and skip to step number 9.
- Create a new Unity Project in Unity Hub with version 2019.3.2 or higher
- Go to the asset store within the editor and import
- Download and import entire package
- Locate folder Assets\VLC-Unity-Windows\Scripts in the Editor project view
- Double click on the main scene to open the scene
- Double Click on UseRenderingPlugin.cs to open the script in a code editor
- On line 17, add the option
"--file-logging"
to the LibVLC object constructor parameters - Save the file
- Within the Unity Editor, play the scene.
- When the editor crashes, notice it doesn't display the "Unity has stopped working... Report a bug" window
- Locate C:\Users\you\AppData\Local\Temp\Unity\Editor\Crashes and note there is no crash log
What is the current bug behavior?
The current bug behavior is that it crashes the unity editor. In addition this crash doesn't create a Unity Editor crash report.
What is the expected correct behavior?
The expected behavior is that the Editor starts the scene and plays the video. In conjunction there should be a log file created containing the log reports. This log file should be in the location specified in the option "--logfile=C:/temp/vlclog.txt"
Does it work on other plaforms? Does it work with the official VLC apps?
Using these same LibVLC options when starting a video in VLC from the command line, the file is properly create and filled with the correct log information. The VLC player does not crash and continues to play properly.
Relevant logs and/or screenshots
Due to there being no VLC logs nor Crash logs, I have no logs to share. However if there is any other logs or relavent information needed, I will share.
Environment
- OS: windows 10
- Version 1909
- Version 1909
- Device: i7, 16gm ram, 1070
- LibVLC: unsure (using only unity vlc package)
- LibVLCSharp version: (using only unity vlc package)
- VLC Unity plugin version: 0.0.5
Possible fixes
I have not completed the setup process for builds, I familiarizing myself with LLVM currently as I've not yet used it before (I've never come across anything like it in Unity, a bit more setup info could be helpful but that's a separate issue). That is the only reason I could foresee there being this issue. The editor plays fine without any of the logging options which seems strange. This happens for streams and for local files.