Unity: NullReferenceException: Object reference not set to an instance of an object
Prerequisites
- Be sure to run with tracing enabled to capture runtime details in the log file
- Include the log file in the PR.
- On Windows, the extension log file is at
%LOCALAPPDATA%\GitHubUnity\github-unity.log
- On macOS, the extension log file is at
~/Library/Application Support/GitHubUnity/github-unity.log
- On Windows, the extension log file is at
Description
Right after installing the extenstion, and opening the Github Window the console is spammed with errors and the window is blank. The settings window works tho.
Steps to Reproduce
- [First Step] Install Github for Unity
- [Second Step] Open the Github Window
- [and so on…] Look at console
Expected behavior: [What you expect to happen] For the window to show up with no errors Actual behavior: [What actually happens] The window is blank and there are errors Reproduces how often: [What percentage of the time does it reproduce?] 100% of the time
Additional Information
I have Unity 2017.2.0b5 (64-bit) and the latest Github for Unity release. Any additional information, configuration or data that might be necessary to reproduce the issue. github-unity.log
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 15 (12 by maintainers)
Commits related to this issue
- Merge pull request #395 from GalHorowitz/master Fixing #351 — committed to github-for-unity/Unity by shana 7 years ago
Any idea when this will be fixed in release? Thanks!
If anyone needs this right now, I just built and tested what @shiena said, and it works.
We are still in Alpha ourselves. So we are mostly focusing on core functionality. Right now it’s caching and #23
2017.2 was just made official earlier this month and we haven’t gotten the chance to get to it yet… although…
We appreciate the love guys.
\
We are just busy chasing other stability issues at the moment. Hopefully in a few weeks we can get to this.
shakes fist at Unity
Ok so the problem is that
ImageConversion
got moved out to a separate DLL, which means usingTexture2D
as a DLL location base no longer works. Worse, it got moved to its own assembly - literally a DLL which only contains this class, which means there is no type we can use to get at its location. So, sigh, we’ll need to add yet another codepath to theStreamExtensions
code to reference theUnityEngine.ImageConversionModule.dll
dll and get theImageConversion
type.