Out of memory error

Bug #852035 reported by David Griffin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyGL3Display
Fix Released
Medium
David Griffin

Bug Description

http://pastebin.com/8R7F5BhE

Proposed fix by Saluk64007:

Change testAtlasSize to the following:

    def testAtlasSize(self, atlasSize):
        """Helper function to determine maximum atlas size
        Arguments:
         atlasSize : test if an atlas of atlasSizexatlasSize can be created"""
        try:
            glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_RGBA,
                         atlasSize, atlasSize, 0,
                         GL_RGBA, GL_UNSIGNED_BYTE, (ctypes.c_int * atlasSize * atlasSize)())
            return glGetTexLevelParameteriv(GL_PROXY_TEXTURE_2D,
                        0, GL_TEXTURE_WIDTH)

        except GLError:
            return False

Rejected on the grounds that it involves a large speed penalty during initialisation on compliant systems due to creating unnecessary large ctypes arrays. May be the basis of an alternative code path though.

David Griffin (habilain)
Changed in pygl3display:
importance: Undecided → High
importance: High → Medium
assignee: nobody → David Griffin (habilain)
milestone: none → 1.1
status: New → Confirmed
Revision history for this message
David Griffin (habilain) wrote :

Attempted fix committed to trunk, release shortly.

As unable to reproduce and the fix should work according to current information, will mark as fixed and reopen if necessary.

Changed in pygl3display:
status: Confirmed → Fix Committed
David Griffin (habilain)
Changed in pygl3display:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.