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

Added check in contextValid() method for empty context.driverInfo String #720

Closed
wants to merge 1 commit into from
Closed

Conversation

vpmedia
Copy link
Contributor

@vpmedia vpmedia commented Jun 1, 2015

Hi!

I've noticed in some exception log files that the Context3D.driverInfo string can be empty, and in this case the context is also invalid. (The Context3D.profile has null value both when the string is empty "''" or 'Disposed'). The problem occurs mostly using Flash Player 16.X.

Just for note: the documentation about the possible values is not really detailed: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display3D/Context3D.html#driverInfo

Best regards!
Andrew

@vpmedia
Copy link
Contributor Author

vpmedia commented Jun 1, 2015

The exception which I'm trying to solve..:

Error: Error #3694: The object was disposed by an earlier call of dispose() on it.
at flash.display3D::VertexBuffer3D/uploadFromVector()
at starling.display::QuadBatch/syncBuffers()[starling\display\QuadBatch.as:210]
at starling.display::QuadBatch/renderCustom()[starling\display\QuadBatch.as:222]
at starling.core::RenderSupport/finishQuadBatch()[starling\core\RenderSupport.as:596]
at starling.core::RenderSupport/applyClipRect()[starling\core\RenderSupport.as:423]
at starling.core::RenderSupport/setRenderTarget()[starling\core\RenderSupport.as:372]
at starling.core::RenderSupport/set renderTarget()[starling\core\RenderSupport.as:361]
at starling.core::Starling/render()[starling\core\Starling.as:518]
at starling.core::Starling/nextFrame()[starling\core\Starling.as:478]
at starling.core::Starling/onEnterFrame()[starling\core\Starling.as:699]

Maybe connected to #627 ?

@PrimaryFeather
Copy link
Contributor

Thanks, Andrew, that's interesting!

Did you literally see in your logs that the driverInfo string is empty, or do you just expect it to be empty, because it would explain the error you're getting?

In any case, it wouldn't surprise me if Adobe's engineers forgot to set the correct string in some situations.

@vpmedia
Copy link
Contributor Author

vpmedia commented Jun 2, 2015

Yes, I'm logging the driverInfo string to php and it's an empty string (NOT null)

@PrimaryFeather
Copy link
Contributor

Thanks for the information, I was not aware of that!
I added that change right away.
(With a slightly modified source style, but the logic is the same.)

@vpmedia
Copy link
Contributor Author

vpmedia commented Jun 2, 2015

Thanks, I'll try to re-test the issue with my app (Losing context while uploading textures).

Oldes pushed a commit to Oldes/Starling-Framework that referenced this pull request Jun 4, 2015
@Oldes
Copy link

Oldes commented Jun 4, 2015

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

Successfully merging this pull request may close these issues.

3 participants