Skip to content

glTexImage2D invalid value (crash) #3

Open

Description

@bshanks

Trying to view the attached file, a photosphere taken with the built-in camera app on an Android Nexus 5x (Android 6.0 = Android Marshmallow), causes the following error:

2015-11-24 17 02 04

Traceback (most recent call last):
  File "PhotoSphere.py", line 197, in <module>
    main()
  File "PhotoSphere.py", line 134, in main
    Initialize (640, 480, fileUrl)
  File "/home/username/Downloads/PhotoSphereBundle/App/PhotoSphereRenderer.py", line 153, in Initialize
    GL_RGB, GL_UNSIGNED_BYTE, g_texData
  File "/usr/lib/python2.7/dist-packages/OpenGL/latebind.py", line 45, in __call__
    return self._finalCall( *args, **named )
  File "/usr/lib/python2.7/dist-packages/OpenGL/wrapper.py", line 792, in wrapperCall
    raise err
OpenGL.error.GLError: GLError(
        err = 1281,
        description = 'invalid value',
        baseOperation = glTexImage2D,
        pyArgs = (
                GL_TEXTURE_2D,
                0,
                GL_RGB,
                8704,
                5657,
                0,
                GL_RGB,
                GL_UNSIGNED_BYTE,
                array([0, 0, 0, ..., 0, 0, 0], dtype=...,
        ),
        cArgs = (
                GL_TEXTURE_2D,
                0,
                GL_RGB,
                8704,
                5657,
                0,
                GL_RGB,
                GL_UNSIGNED_BYTE,
                array([0, 0, 0, ..., 0, 0, 0], dtype=...,
        ),
        cArguments = (
                GL_TEXTURE_2D,
                0,
                GL_RGB,
                8704,
                5657,
                0,
                GL_RGB,
                GL_UNSIGNED_BYTE,
                array([0, 0, 0, ..., 0, 0, 0], dtype=...,
        )
)

Activity

  1. bshanks commented on Dec 2, 2015

    @bshanks
    Author

    Fork https://github.com/andree182/PythonPhotoSphere seems to be able to handle this file without crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions