Search Issue Tracker
Fixed in 5.0.X
Votes
0
Found in
4.5.2f1
Issue ID
625149
Regression
Yes
Calling WebCamTexture.GetPixel(..) after .Play() causes a crash (OSX)
To Reproduce:
1. Open the attached 'repro453p1.zip' & run scene 1.
2. Observe that Unity crashes on the second WebCamTexture.GetPixel(..) line (the one after play).
Regression from 4.3.4f1
Comments (2)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Lightmap Asset icon changes colours after Baked Lightmap Viewer window is opened
- VideoClipImporter preset not applied when applying Preset Selector on already imported video clips
- Frame Debugger gets disabled when any Editor window is maximised and minimised
- TextMeshPro InputField view is not updated when OnEndEdit is triggered
- The "Open Frame Debugger" button in the Game View toolbar not only opens the Frame Debugger window but toggles between enabling/disabling the Frame Debugger when pressed
Kurt-Dekker
Feb 16, 2015 23:12
This seems to be some kind of race condition: if you wait a second from when you start the WebCamTexture, then read with .GetPixel(), it appears not to crash. That's not very reassuring inasmuch as it still might be stomping on something else, but perhaps it's a datapoint for the fellow in charge of fixing this annoying bug. :)
And keep in mind this is after cross checking .didUpdateThisFrame and .isReadable to make sure things are valid.
Kurt-Dekker
Feb 04, 2015 23:53
We are trying to develop an iOS/Android app and we are not able to test in the editor. I believe it is for this reason. Any attempt at using .GetPixel() on a WebCamTexture results in the editor instantly crashing.
Is there any visibility as to when this might be fixed? Is there any easy workaround? Do we need to render to a render texture and then read the rendertexture pixels instead?