VW7.7NC OpenGL on a 64bits VM/image on linux

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

VW7.7NC OpenGL on a 64bits VM/image on linux

Daniel Galdames
Hi, i was trying the openGL-lesson on a vw7.7nc, using the 64 bits linux VM, but I can't get it works. Using a 32 bits enviroment works well.
Greetings, and thanks.
  Daniel Galdames G.
I attached the debug stack:

Unhandled exception: exception occured #(11 140115044517581)
GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
GLX.GLXInterface>>glXCreateContext:with:with:with:
ExternalMethod>>unlinkedCall:arguments:
GLX.RenderContextX11Window>>initializeContext
GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
GLX.RenderContextX11Window>>initialize:
OpenGL.RenderContext class>>on:
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
optimized [] in OpenGL.Lessons.Lesson>>start
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

----------------------------------------------------------------------
GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
Receiver:
        a GLX.GLXInterface
Arguments:
        errorCode = a SystemError(#'exception occured',#(11 140115044517581))
Temporaries:
        errorString = 'exception occured #(11 140115044517581)'
Context PC = 44

----------------------------------------------------------------------
GLX.GLXInterface>>glXCreateContext:with:with:with:
Receiver:
        a GLX.GLXInterface
Arguments:
        display = 62889600
        visualInfo = 0
        shareList = nil
        direct = 1
Temporaries:
        _errorCode = a SystemError(#'exception occured',#(11 140115044517581))
Context PC = 10

----------------------------------------------------------------------
ExternalMethod>>unlinkedCall:arguments:
Receiver:
        an ExternalMethod
Instance Variables:
        bytes = a ByteArray[14]
        mclass = GLX.GLXInterface
        sourceCode = 54071910
        handle = 140115015178128
        specifierFlags = 18
        argumentKinds = a ByteArray[5]
        structArgSize = 0
        structReturnSize = 0
        datumClass = CPointer
        resultType = GLXContext
        virtuals = nil
        methodSelector = #glXCreateContext:with:with:with:
        external = #glXCreateContext
Arguments:
        receiver = a GLX.GLXInterface
        arguments = an Array[4]
Context PC = 15

----------------------------------------------------------------------
GLX.RenderContextX11Window>>initializeContext
Receiver:
        a GLX.RenderContextX11Window
Instance Variables:
        interface = nil
        view = an ApplicationWindow 100664171
        vendor = nil
        renderer = nil
        version = nil
        program = nil
        textures = nil
        texturesHistory = nil
        extensions = nil
        xif = a GLX.GLXInterface
        drawableHandle = 100664171
        context = nil
        displayHandle = 62889600
Temporaries:
        drawableData = a Graphics64BitHandle(100664171)
        visualInfo = 0
Context PC = 39

----------------------------------------------------------------------
GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
Receiver:
        a GLX.RenderContextX11Window
Instance Variables:
        interface = nil
        view = an ApplicationWindow 100664171
        vendor = nil
        renderer = nil
        version = nil
        program = nil
        textures = nil
        texturesHistory = nil
        extensions = nil
        xif = a GLX.GLXInterface
        drawableHandle = 100664171
        context = nil
        displayHandle = 62889600
Arguments:
        aView = an ApplicationWindow 100664171
Context PC = 6

----------------------------------------------------------------------
GLX.RenderContextX11Window>>initialize:
Receiver:
        a GLX.RenderContextX11Window
Instance Variables:
        interface = nil
        view = an ApplicationWindow 100664171
        vendor = nil
        renderer = nil
        version = nil
        program = nil
        textures = nil
        texturesHistory = nil
        extensions = nil
        xif = a GLX.GLXInterface
        drawableHandle = 100664171
        context = nil
        displayHandle = 62889600
Arguments:
        aView = an ApplicationWindow 100664171
Context PC = 10

----------------------------------------------------------------------
OpenGL.RenderContext class>>on:
Receiver:
        a OpenGL.RenderContext class
Instance Variables:
        superclass = Object
        methodDict = a MethodDictionary[24]
        format = 16393
        subclasses = an Array[3]
        instanceVariables = an Array[9]
        organization = ('accessing' #bounds #extensions #program #program: #renderer #vendor #version #view)
('private' #activateContext #assignTextureUnitTo: #deactivateContext #leastUsedTextureUnit #resetProgram #resetTextures)
('initialize-release' #initialize: #initializeContext #initializeInterface #initializeParameters #on:)
('api' #activate #deactivate #flush #resize #whileCurrentDo:)

        name = #RenderContext
        classPool = a NameSpaceOfClass[1]
        environment = a NameSpace[34]
Arguments:
        aView = an ApplicationWindow 100664171
Context PC = 8

----------------------------------------------------------------------
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
Receiver:
        a OpenGL.Lessons.Lesson01Geometry
Instance Variables:
        isRunning = true
        window = an ApplicationWindow 100664171
        context = nil
        renderJob = nil
        resizeJob = resize
        idleJob = nil
        program = nil
        geometry = nil
        geometryVectors = nil
Context PC = 5

----------------------------------------------------------------------
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
Receiver:
        a OpenGL.Lessons.Lesson01Geometry
Instance Variables:
        isRunning = true
        window = an ApplicationWindow 100664171
        context = nil
        renderJob = nil
        resizeJob = resize
        idleJob = nil
        program = nil
        geometry = nil
        geometryVectors = nil
Context PC = 7

----------------------------------------------------------------------
optimized [] in OpenGL.Lessons.Lesson>>start
Receiver:
        an UndefinedObject
Temporaries:
        .self = an OpenGL.Lessons.Lesson01Geometry
Context PC = 6

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
        a BlockClosure
Instance Variables:
        method = CompiledBlock [] in OpenGL.Lessons.Lesson>>start
        outerContext = nil
        copiedValues = an OpenGL.Lessons.Lesson01Geometry
Arguments:
        anExceptionSelector = TerminateException
        handlerBlock = BlockClosure [] in [] in Process class>>forBlock:priority:
Context PC = 18

----------------------------------------------------------------------
optimized [] in Process class>>forBlock:priority:
Receiver:
        an UndefinedObject
Temporaries:
        .aBlock = BlockClosure [] in OpenGL.Lessons.Lesson>>start
Context PC = 9
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Michael Lucas-Smith-2
I'd guess that the 64 bit .so for opengl is not the same name as the 32 bit .so -- so you'd have to change the <library: > pragma method.

On 2 April 2010 18:37, Daniel Galdames <[hidden email]> wrote:

Hi, i was trying the openGL-lesson on a vw7.7nc, using the 64 bits linux VM,
but I can't get it works. Using a 32 bits enviroment works well.
Greetings, and thanks.
 Daniel Galdames G.
I attached the debug stack:

Unhandled exception: exception occured #(11 140115044517581)
GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
GLX.GLXInterface>>glXCreateContext:with:with:with:
ExternalMethod>>unlinkedCall:arguments:
GLX.RenderContextX11Window>>initializeContext
GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
GLX.RenderContextX11Window>>initialize:
OpenGL.RenderContext class>>on:
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
optimized [] in OpenGL.Lessons.Lesson>>start
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

----------------------------------------------------------------------
GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
Receiver:
       a GLX.GLXInterface
Arguments:
       errorCode = a SystemError(#'exception occured',#(11 140115044517581))
Temporaries:
       errorString = 'exception occured #(11 140115044517581)'
Context PC = 44

----------------------------------------------------------------------
GLX.GLXInterface>>glXCreateContext:with:with:with:
Receiver:
       a GLX.GLXInterface
Arguments:
       display = 62889600
       visualInfo = 0
       shareList = nil
       direct = 1
Temporaries:
       _errorCode = a SystemError(#'exception occured',#(11 140115044517581))
Context PC = 10

----------------------------------------------------------------------
ExternalMethod>>unlinkedCall:arguments:
Receiver:
       an ExternalMethod
Instance Variables:
       bytes = a ByteArray[14]
       mclass = GLX.GLXInterface
       sourceCode = 54071910
       handle = 140115015178128
       specifierFlags = 18
       argumentKinds = a ByteArray[5]
       structArgSize = 0
       structReturnSize = 0
       datumClass = CPointer
       resultType = GLXContext
       virtuals = nil
       methodSelector = #glXCreateContext:with:with:with:
       external = #glXCreateContext
Arguments:
       receiver = a GLX.GLXInterface
       arguments = an Array[4]
Context PC = 15

----------------------------------------------------------------------
GLX.RenderContextX11Window>>initializeContext
Receiver:
       a GLX.RenderContextX11Window
Instance Variables:
       interface = nil
       view = an ApplicationWindow 100664171
       vendor = nil
       renderer = nil
       version = nil
       program = nil
       textures = nil
       texturesHistory = nil
       extensions = nil
       xif = a GLX.GLXInterface
       drawableHandle = 100664171
       context = nil
       displayHandle = 62889600
Temporaries:
       drawableData = a Graphics64BitHandle(100664171)
       visualInfo = 0
Context PC = 39

----------------------------------------------------------------------
GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
Receiver:
       a GLX.RenderContextX11Window
Instance Variables:
       interface = nil
       view = an ApplicationWindow 100664171
       vendor = nil
       renderer = nil
       version = nil
       program = nil
       textures = nil
       texturesHistory = nil
       extensions = nil
       xif = a GLX.GLXInterface
       drawableHandle = 100664171
       context = nil
       displayHandle = 62889600
Arguments:
       aView = an ApplicationWindow 100664171
Context PC = 6

----------------------------------------------------------------------
GLX.RenderContextX11Window>>initialize:
Receiver:
       a GLX.RenderContextX11Window
Instance Variables:
       interface = nil
       view = an ApplicationWindow 100664171
       vendor = nil
       renderer = nil
       version = nil
       program = nil
       textures = nil
       texturesHistory = nil
       extensions = nil
       xif = a GLX.GLXInterface
       drawableHandle = 100664171
       context = nil
       displayHandle = 62889600
Arguments:
       aView = an ApplicationWindow 100664171
Context PC = 10

----------------------------------------------------------------------
OpenGL.RenderContext class>>on:
Receiver:
       a OpenGL.RenderContext class
Instance Variables:
       superclass = Object
       methodDict = a MethodDictionary[24]
       format = 16393
       subclasses = an Array[3]
       instanceVariables = an Array[9]
       organization = ('accessing' #bounds #extensions #program #program:
#renderer #vendor #version #view)
('private' #activateContext #assignTextureUnitTo: #deactivateContext
#leastUsedTextureUnit #resetProgram #resetTextures)
('initialize-release' #initialize: #initializeContext #initializeInterface
#initializeParameters #on:)
('api' #activate #deactivate #flush #resize #whileCurrentDo:)

       name = #RenderContext
       classPool = a NameSpaceOfClass[1]
       environment = a NameSpace[34]
Arguments:
       aView = an ApplicationWindow 100664171
Context PC = 8

----------------------------------------------------------------------
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
Receiver:
       a OpenGL.Lessons.Lesson01Geometry
Instance Variables:
       isRunning = true
       window = an ApplicationWindow 100664171
       context = nil
       renderJob = nil
       resizeJob = resize
       idleJob = nil
       program = nil
       geometry = nil
       geometryVectors = nil
Context PC = 5

----------------------------------------------------------------------
OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
Receiver:
       a OpenGL.Lessons.Lesson01Geometry
Instance Variables:
       isRunning = true
       window = an ApplicationWindow 100664171
       context = nil
       renderJob = nil
       resizeJob = resize
       idleJob = nil
       program = nil
       geometry = nil
       geometryVectors = nil
Context PC = 7

----------------------------------------------------------------------
optimized [] in OpenGL.Lessons.Lesson>>start
Receiver:
       an UndefinedObject
Temporaries:
       .self = an OpenGL.Lessons.Lesson01Geometry
Context PC = 6

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
       a BlockClosure
Instance Variables:
       method = CompiledBlock [] in OpenGL.Lessons.Lesson>>start
       outerContext = nil
       copiedValues = an OpenGL.Lessons.Lesson01Geometry
Arguments:
       anExceptionSelector = TerminateException
       handlerBlock = BlockClosure [] in [] in Process class>>forBlock:priority:
Context PC = 18

----------------------------------------------------------------------
optimized [] in Process class>>forBlock:priority:
Receiver:
       an UndefinedObject
Temporaries:
       .aBlock = BlockClosure [] in OpenGL.Lessons.Lesson>>start
Context PC = 9

--
View this message in context: http://n4.nabble.com/VW7-7NC-OpenGL-on-a-64bits-VM-image-on-linux-tp1749811p1749811.html
Sent from the VisualWorks mailing list archive at Nabble.com.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Daniel Galdames
Hi, thanks for the reply.
I think that is not the problem, the names are the same, but in a
different directory, I changed the GLXInterface libraries methods to
point to the complete path, but it doesn't work.

El vie, 02-04-2010 a las 20:36 -0700, Michael Lucas-Smith escribió:

> I'd guess that the 64 bit .so for opengl is not the same name as the
> 32 bit .so -- so you'd have to change the <library: > pragma method.
>
> On 2 April 2010 18:37, Daniel Galdames <[hidden email]> wrote:
>        
>         Hi, i was trying the openGL-lesson on a vw7.7nc, using the 64
>         bits linux VM,
>         but I can't get it works. Using a 32 bits enviroment works
>         well.
>         Greetings, and thanks.
>          Daniel Galdames G.
>         I attached the debug stack:
>        
>         Unhandled exception: exception occured #(11 140115044517581)
>         GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>         GLX.GLXInterface>>glXCreateContext:with:with:with:
>         ExternalMethod>>unlinkedCall:arguments:
>         GLX.RenderContextX11Window>>initializeContext
>         GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>         GLX.RenderContextX11Window>>initialize:
>         OpenGL.RenderContext class>>on:
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>         optimized [] in OpenGL.Lessons.Lesson>>start
>         BlockClosure>>on:do:
>         optimized [] in Process class>>forBlock:priority:
>        
>         ----------------------------------------------------------------------
>         GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>         Receiver:
>                a GLX.GLXInterface
>         Arguments:
>                errorCode = a SystemError(#'exception occured',#(11
>         140115044517581))
>         Temporaries:
>                errorString = 'exception occured #(11 140115044517581)'
>         Context PC = 44
>        
>         ----------------------------------------------------------------------
>         GLX.GLXInterface>>glXCreateContext:with:with:with:
>         Receiver:
>                a GLX.GLXInterface
>         Arguments:
>                display = 62889600
>                visualInfo = 0
>                shareList = nil
>                direct = 1
>         Temporaries:
>                _errorCode = a SystemError(#'exception occured',#(11
>         140115044517581))
>         Context PC = 10
>        
>         ----------------------------------------------------------------------
>         ExternalMethod>>unlinkedCall:arguments:
>         Receiver:
>                an ExternalMethod
>         Instance Variables:
>                bytes = a ByteArray[14]
>                mclass = GLX.GLXInterface
>                sourceCode = 54071910
>                handle = 140115015178128
>                specifierFlags = 18
>                argumentKinds = a ByteArray[5]
>                structArgSize = 0
>                structReturnSize = 0
>                datumClass = CPointer
>                resultType = GLXContext
>                virtuals = nil
>                methodSelector = #glXCreateContext:with:with:with:
>                external = #glXCreateContext
>         Arguments:
>                receiver = a GLX.GLXInterface
>                arguments = an Array[4]
>         Context PC = 15
>        
>         ----------------------------------------------------------------------
>         GLX.RenderContextX11Window>>initializeContext
>         Receiver:
>                a GLX.RenderContextX11Window
>         Instance Variables:
>                interface = nil
>                view = an ApplicationWindow 100664171
>                vendor = nil
>                renderer = nil
>                version = nil
>                program = nil
>                textures = nil
>                texturesHistory = nil
>                extensions = nil
>                xif = a GLX.GLXInterface
>                drawableHandle = 100664171
>                context = nil
>                displayHandle = 62889600
>         Temporaries:
>                drawableData = a Graphics64BitHandle(100664171)
>                visualInfo = 0
>         Context PC = 39
>        
>         ----------------------------------------------------------------------
>         GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>         Receiver:
>                a GLX.RenderContextX11Window
>         Instance Variables:
>                interface = nil
>                view = an ApplicationWindow 100664171
>                vendor = nil
>                renderer = nil
>                version = nil
>                program = nil
>                textures = nil
>                texturesHistory = nil
>                extensions = nil
>                xif = a GLX.GLXInterface
>                drawableHandle = 100664171
>                context = nil
>                displayHandle = 62889600
>         Arguments:
>                aView = an ApplicationWindow 100664171
>         Context PC = 6
>        
>         ----------------------------------------------------------------------
>         GLX.RenderContextX11Window>>initialize:
>         Receiver:
>                a GLX.RenderContextX11Window
>         Instance Variables:
>                interface = nil
>                view = an ApplicationWindow 100664171
>                vendor = nil
>                renderer = nil
>                version = nil
>                program = nil
>                textures = nil
>                texturesHistory = nil
>                extensions = nil
>                xif = a GLX.GLXInterface
>                drawableHandle = 100664171
>                context = nil
>                displayHandle = 62889600
>         Arguments:
>                aView = an ApplicationWindow 100664171
>         Context PC = 10
>        
>         ----------------------------------------------------------------------
>         OpenGL.RenderContext class>>on:
>         Receiver:
>                a OpenGL.RenderContext class
>         Instance Variables:
>                superclass = Object
>                methodDict = a MethodDictionary[24]
>                format = 16393
>                subclasses = an Array[3]
>                instanceVariables = an Array[9]
>                organization = ('accessing' #bounds #extensions
>         #program #program:
>         #renderer #vendor #version #view)
>         ('private' #activateContext #assignTextureUnitTo:
>         #deactivateContext
>         #leastUsedTextureUnit #resetProgram #resetTextures)
>         ('initialize-release' #initialize: #initializeContext
>         #initializeInterface
>         #initializeParameters #on:)
>         ('api' #activate #deactivate #flush #resize #whileCurrentDo:)
>        
>                name = #RenderContext
>                classPool = a NameSpaceOfClass[1]
>                environment = a NameSpace[34]
>         Arguments:
>                aView = an ApplicationWindow 100664171
>         Context PC = 8
>        
>         ----------------------------------------------------------------------
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>         Receiver:
>                a OpenGL.Lessons.Lesson01Geometry
>         Instance Variables:
>                isRunning = true
>                window = an ApplicationWindow 100664171
>                context = nil
>                renderJob = nil
>                resizeJob = resize
>                idleJob = nil
>                program = nil
>                geometry = nil
>                geometryVectors = nil
>         Context PC = 5
>        
>         ----------------------------------------------------------------------
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>         Receiver:
>                a OpenGL.Lessons.Lesson01Geometry
>         Instance Variables:
>                isRunning = true
>                window = an ApplicationWindow 100664171
>                context = nil
>                renderJob = nil
>                resizeJob = resize
>                idleJob = nil
>                program = nil
>                geometry = nil
>                geometryVectors = nil
>         Context PC = 7
>        
>         ----------------------------------------------------------------------
>         optimized [] in OpenGL.Lessons.Lesson>>start
>         Receiver:
>                an UndefinedObject
>         Temporaries:
>                .self = an OpenGL.Lessons.Lesson01Geometry
>         Context PC = 6
>        
>         ----------------------------------------------------------------------
>         BlockClosure>>on:do:
>         Receiver:
>                a BlockClosure
>         Instance Variables:
>                method = CompiledBlock [] in
>         OpenGL.Lessons.Lesson>>start
>                outerContext = nil
>                copiedValues = an OpenGL.Lessons.Lesson01Geometry
>         Arguments:
>                anExceptionSelector = TerminateException
>                handlerBlock = BlockClosure [] in [] in Process
>         class>>forBlock:priority:
>         Context PC = 18
>        
>         ----------------------------------------------------------------------
>         optimized [] in Process class>>forBlock:priority:
>         Receiver:
>                an UndefinedObject
>         Temporaries:
>                .aBlock = BlockClosure [] in
>         OpenGL.Lessons.Lesson>>start
>         Context PC = 9
>        
>         --
>         View this message in context:
>         http://n4.nabble.com/VW7-7NC-OpenGL-on-a-64bits-VM-image-on-linux-tp1749811p1749811.html
>         Sent from the VisualWorks mailing list archive at Nabble.com.
>         _______________________________________________
>         vwnc mailing list
>         [hidden email]
>         http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Michael Lucas-Smith-2
My problem is that I don't have a set up to try this out on. Does anyone else have a working opengl environment on a 64bit linux that might be able to lend a hand?

Michael

On 3 April 2010 13:40, Daniel Galdames G. <[hidden email]> wrote:
Hi, thanks for the reply.
I think that is not the problem, the names are the same, but in a
different directory, I changed the GLXInterface libraries methods to
point to the complete path, but it doesn't work.

El vie, 02-04-2010 a las 20:36 -0700, Michael Lucas-Smith escribió:
> I'd guess that the 64 bit .so for opengl is not the same name as the
> 32 bit .so -- so you'd have to change the <library: > pragma method.
>
> On 2 April 2010 18:37, Daniel Galdames <[hidden email]> wrote:
>
>         Hi, i was trying the openGL-lesson on a vw7.7nc, using the 64
>         bits linux VM,
>         but I can't get it works. Using a 32 bits enviroment works
>         well.
>         Greetings, and thanks.
>          Daniel Galdames G.
>         I attached the debug stack:
>
>         Unhandled exception: exception occured #(11 140115044517581)
>         GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>         GLX.GLXInterface>>glXCreateContext:with:with:with:
>         ExternalMethod>>unlinkedCall:arguments:
>         GLX.RenderContextX11Window>>initializeContext
>         GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>         GLX.RenderContextX11Window>>initialize:
>         OpenGL.RenderContext class>>on:
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>         optimized [] in OpenGL.Lessons.Lesson>>start
>         BlockClosure>>on:do:
>         optimized [] in Process class>>forBlock:priority:
>
>         ----------------------------------------------------------------------
>         GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>         Receiver:
>                a GLX.GLXInterface
>         Arguments:
>                errorCode = a SystemError(#'exception occured',#(11
>         140115044517581))
>         Temporaries:
>                errorString = 'exception occured #(11 140115044517581)'
>         Context PC = 44
>
>         ----------------------------------------------------------------------
>         GLX.GLXInterface>>glXCreateContext:with:with:with:
>         Receiver:
>                a GLX.GLXInterface
>         Arguments:
>                display = 62889600
>                visualInfo = 0
>                shareList = nil
>                direct = 1
>         Temporaries:
>                _errorCode = a SystemError(#'exception occured',#(11
>         140115044517581))
>         Context PC = 10
>
>         ----------------------------------------------------------------------
>         ExternalMethod>>unlinkedCall:arguments:
>         Receiver:
>                an ExternalMethod
>         Instance Variables:
>                bytes = a ByteArray[14]
>                mclass = GLX.GLXInterface
>                sourceCode = 54071910
>                handle = 140115015178128
>                specifierFlags = 18
>                argumentKinds = a ByteArray[5]
>                structArgSize = 0
>                structReturnSize = 0
>                datumClass = CPointer
>                resultType = GLXContext
>                virtuals = nil
>                methodSelector = #glXCreateContext:with:with:with:
>                external = #glXCreateContext
>         Arguments:
>                receiver = a GLX.GLXInterface
>                arguments = an Array[4]
>         Context PC = 15
>
>         ----------------------------------------------------------------------
>         GLX.RenderContextX11Window>>initializeContext
>         Receiver:
>                a GLX.RenderContextX11Window
>         Instance Variables:
>                interface = nil
>                view = an ApplicationWindow 100664171
>                vendor = nil
>                renderer = nil
>                version = nil
>                program = nil
>                textures = nil
>                texturesHistory = nil
>                extensions = nil
>                xif = a GLX.GLXInterface
>                drawableHandle = 100664171
>                context = nil
>                displayHandle = 62889600
>         Temporaries:
>                drawableData = a Graphics64BitHandle(100664171)
>                visualInfo = 0
>         Context PC = 39
>
>         ----------------------------------------------------------------------
>         GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>         Receiver:
>                a GLX.RenderContextX11Window
>         Instance Variables:
>                interface = nil
>                view = an ApplicationWindow 100664171
>                vendor = nil
>                renderer = nil
>                version = nil
>                program = nil
>                textures = nil
>                texturesHistory = nil
>                extensions = nil
>                xif = a GLX.GLXInterface
>                drawableHandle = 100664171
>                context = nil
>                displayHandle = 62889600
>         Arguments:
>                aView = an ApplicationWindow 100664171
>         Context PC = 6
>
>         ----------------------------------------------------------------------
>         GLX.RenderContextX11Window>>initialize:
>         Receiver:
>                a GLX.RenderContextX11Window
>         Instance Variables:
>                interface = nil
>                view = an ApplicationWindow 100664171
>                vendor = nil
>                renderer = nil
>                version = nil
>                program = nil
>                textures = nil
>                texturesHistory = nil
>                extensions = nil
>                xif = a GLX.GLXInterface
>                drawableHandle = 100664171
>                context = nil
>                displayHandle = 62889600
>         Arguments:
>                aView = an ApplicationWindow 100664171
>         Context PC = 10
>
>         ----------------------------------------------------------------------
>         OpenGL.RenderContext class>>on:
>         Receiver:
>                a OpenGL.RenderContext class
>         Instance Variables:
>                superclass = Object
>                methodDict = a MethodDictionary[24]
>                format = 16393
>                subclasses = an Array[3]
>                instanceVariables = an Array[9]
>                organization = ('accessing' #bounds #extensions
>         #program #program:
>         #renderer #vendor #version #view)
>         ('private' #activateContext #assignTextureUnitTo:
>         #deactivateContext
>         #leastUsedTextureUnit #resetProgram #resetTextures)
>         ('initialize-release' #initialize: #initializeContext
>         #initializeInterface
>         #initializeParameters #on:)
>         ('api' #activate #deactivate #flush #resize #whileCurrentDo:)
>
>                name = #RenderContext
>                classPool = a NameSpaceOfClass[1]
>                environment = a NameSpace[34]
>         Arguments:
>                aView = an ApplicationWindow 100664171
>         Context PC = 8
>
>         ----------------------------------------------------------------------
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>         Receiver:
>                a OpenGL.Lessons.Lesson01Geometry
>         Instance Variables:
>                isRunning = true
>                window = an ApplicationWindow 100664171
>                context = nil
>                renderJob = nil
>                resizeJob = resize
>                idleJob = nil
>                program = nil
>                geometry = nil
>                geometryVectors = nil
>         Context PC = 5
>
>         ----------------------------------------------------------------------
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>         Receiver:
>                a OpenGL.Lessons.Lesson01Geometry
>         Instance Variables:
>                isRunning = true
>                window = an ApplicationWindow 100664171
>                context = nil
>                renderJob = nil
>                resizeJob = resize
>                idleJob = nil
>                program = nil
>                geometry = nil
>                geometryVectors = nil
>         Context PC = 7
>
>         ----------------------------------------------------------------------
>         optimized [] in OpenGL.Lessons.Lesson>>start
>         Receiver:
>                an UndefinedObject
>         Temporaries:
>                .self = an OpenGL.Lessons.Lesson01Geometry
>         Context PC = 6
>
>         ----------------------------------------------------------------------
>         BlockClosure>>on:do:
>         Receiver:
>                a BlockClosure
>         Instance Variables:
>                method = CompiledBlock [] in
>         OpenGL.Lessons.Lesson>>start
>                outerContext = nil
>                copiedValues = an OpenGL.Lessons.Lesson01Geometry
>         Arguments:
>                anExceptionSelector = TerminateException
>                handlerBlock = BlockClosure [] in [] in Process
>         class>>forBlock:priority:
>         Context PC = 18
>
>         ----------------------------------------------------------------------
>         optimized [] in Process class>>forBlock:priority:
>         Receiver:
>                an UndefinedObject
>         Temporaries:
>                .aBlock = BlockClosure [] in
>         OpenGL.Lessons.Lesson>>start
>         Context PC = 9
>
>         --
>         View this message in context:
>         http://n4.nabble.com/VW7-7NC-OpenGL-on-a-64bits-VM-image-on-linux-tp1749811p1749811.html
>         Sent from the VisualWorks mailing list archive at Nabble.com.
>         _______________________________________________
>         vwnc mailing list
>         [hidden email]
>         http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Daniel Galdames
Hi Michael, can you give me some advice about where to look at to try to
fix it?.
Greetings,
  Daniel Galdames G.


El mar, 06-04-2010 a las 10:03 -0700, Michael Lucas-Smith escribió:

> My problem is that I don't have a set up to try this out on. Does
> anyone else have a working opengl environment on a 64bit linux that
> might be able to lend a hand?
>
>
> Michael
>
> On 3 April 2010 13:40, Daniel Galdames G. <[hidden email]> wrote:
>         Hi, thanks for the reply.
>         I think that is not the problem, the names are the same, but
>         in a
>         different directory, I changed the GLXInterface libraries
>         methods to
>         point to the complete path, but it doesn't work.
>        
>        
>         El vie, 02-04-2010 a las 20:36 -0700, Michael Lucas-Smith
>         escribió:
>        
>        
>         > I'd guess that the 64 bit .so for opengl is not the same
>         name as the
>         > 32 bit .so -- so you'd have to change the <library: > pragma
>         method.
>         >
>         > On 2 April 2010 18:37, Daniel Galdames <[hidden email]>
>         wrote:
>         >
>         >         Hi, i was trying the openGL-lesson on a vw7.7nc,
>         using the 64
>         >         bits linux VM,
>         >         but I can't get it works. Using a 32 bits enviroment
>         works
>         >         well.
>         >         Greetings, and thanks.
>         >          Daniel Galdames G.
>         >         I attached the debug stack:
>         >
>         >         Unhandled exception: exception occured #(11
>         140115044517581)
>         >
>         GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>         >         GLX.GLXInterface>>glXCreateContext:with:with:with:
>         >         ExternalMethod>>unlinkedCall:arguments:
>         >         GLX.RenderContextX11Window>>initializeContext
>         >
>         GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>         >         GLX.RenderContextX11Window>>initialize:
>         >         OpenGL.RenderContext class>>on:
>         >
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>         >
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>         >         optimized [] in OpenGL.Lessons.Lesson>>start
>         >         BlockClosure>>on:do:
>         >         optimized [] in Process class>>forBlock:priority:
>         >
>         >
>         ----------------------------------------------------------------------
>         >
>         GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>         >         Receiver:
>         >                a GLX.GLXInterface
>         >         Arguments:
>         >                errorCode = a SystemError(#'exception
>         occured',#(11
>         >         140115044517581))
>         >         Temporaries:
>         >                errorString = 'exception occured #(11
>         140115044517581)'
>         >         Context PC = 44
>         >
>         >
>         ----------------------------------------------------------------------
>         >         GLX.GLXInterface>>glXCreateContext:with:with:with:
>         >         Receiver:
>         >                a GLX.GLXInterface
>         >         Arguments:
>         >                display = 62889600
>         >                visualInfo = 0
>         >                shareList = nil
>         >                direct = 1
>         >         Temporaries:
>         >                _errorCode = a SystemError(#'exception
>         occured',#(11
>         >         140115044517581))
>         >         Context PC = 10
>         >
>         >
>         ----------------------------------------------------------------------
>         >         ExternalMethod>>unlinkedCall:arguments:
>         >         Receiver:
>         >                an ExternalMethod
>         >         Instance Variables:
>         >                bytes = a ByteArray[14]
>         >                mclass = GLX.GLXInterface
>         >                sourceCode = 54071910
>         >                handle = 140115015178128
>         >                specifierFlags = 18
>         >                argumentKinds = a ByteArray[5]
>         >                structArgSize = 0
>         >                structReturnSize = 0
>         >                datumClass = CPointer
>         >                resultType = GLXContext
>         >                virtuals = nil
>         >                methodSelector =
>         #glXCreateContext:with:with:with:
>         >                external = #glXCreateContext
>         >         Arguments:
>         >                receiver = a GLX.GLXInterface
>         >                arguments = an Array[4]
>         >         Context PC = 15
>         >
>         >
>         ----------------------------------------------------------------------
>         >         GLX.RenderContextX11Window>>initializeContext
>         >         Receiver:
>         >                a GLX.RenderContextX11Window
>         >         Instance Variables:
>         >                interface = nil
>         >                view = an ApplicationWindow 100664171
>         >                vendor = nil
>         >                renderer = nil
>         >                version = nil
>         >                program = nil
>         >                textures = nil
>         >                texturesHistory = nil
>         >                extensions = nil
>         >                xif = a GLX.GLXInterface
>         >                drawableHandle = 100664171
>         >                context = nil
>         >                displayHandle = 62889600
>         >         Temporaries:
>         >                drawableData = a
>         Graphics64BitHandle(100664171)
>         >                visualInfo = 0
>         >         Context PC = 39
>         >
>         >
>         ----------------------------------------------------------------------
>         >
>         GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>         >         Receiver:
>         >                a GLX.RenderContextX11Window
>         >         Instance Variables:
>         >                interface = nil
>         >                view = an ApplicationWindow 100664171
>         >                vendor = nil
>         >                renderer = nil
>         >                version = nil
>         >                program = nil
>         >                textures = nil
>         >                texturesHistory = nil
>         >                extensions = nil
>         >                xif = a GLX.GLXInterface
>         >                drawableHandle = 100664171
>         >                context = nil
>         >                displayHandle = 62889600
>         >         Arguments:
>         >                aView = an ApplicationWindow 100664171
>         >         Context PC = 6
>         >
>         >
>         ----------------------------------------------------------------------
>         >         GLX.RenderContextX11Window>>initialize:
>         >         Receiver:
>         >                a GLX.RenderContextX11Window
>         >         Instance Variables:
>         >                interface = nil
>         >                view = an ApplicationWindow 100664171
>         >                vendor = nil
>         >                renderer = nil
>         >                version = nil
>         >                program = nil
>         >                textures = nil
>         >                texturesHistory = nil
>         >                extensions = nil
>         >                xif = a GLX.GLXInterface
>         >                drawableHandle = 100664171
>         >                context = nil
>         >                displayHandle = 62889600
>         >         Arguments:
>         >                aView = an ApplicationWindow 100664171
>         >         Context PC = 10
>         >
>         >
>         ----------------------------------------------------------------------
>         >         OpenGL.RenderContext class>>on:
>         >         Receiver:
>         >                a OpenGL.RenderContext class
>         >         Instance Variables:
>         >                superclass = Object
>         >                methodDict = a MethodDictionary[24]
>         >                format = 16393
>         >                subclasses = an Array[3]
>         >                instanceVariables = an Array[9]
>         >                organization = ('accessing' #bounds
>         #extensions
>         >         #program #program:
>         >         #renderer #vendor #version #view)
>         >         ('private' #activateContext #assignTextureUnitTo:
>         >         #deactivateContext
>         >         #leastUsedTextureUnit #resetProgram #resetTextures)
>         >         ('initialize-release' #initialize:
>         #initializeContext
>         >         #initializeInterface
>         >         #initializeParameters #on:)
>         >         ('api' #activate #deactivate #flush #resize
>         #whileCurrentDo:)
>         >
>         >                name = #RenderContext
>         >                classPool = a NameSpaceOfClass[1]
>         >                environment = a NameSpace[34]
>         >         Arguments:
>         >                aView = an ApplicationWindow 100664171
>         >         Context PC = 8
>         >
>         >
>         ----------------------------------------------------------------------
>         >
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>         >         Receiver:
>         >                a OpenGL.Lessons.Lesson01Geometry
>         >         Instance Variables:
>         >                isRunning = true
>         >                window = an ApplicationWindow 100664171
>         >                context = nil
>         >                renderJob = nil
>         >                resizeJob = resize
>         >                idleJob = nil
>         >                program = nil
>         >                geometry = nil
>         >                geometryVectors = nil
>         >         Context PC = 5
>         >
>         >
>         ----------------------------------------------------------------------
>         >
>         OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>         >         Receiver:
>         >                a OpenGL.Lessons.Lesson01Geometry
>         >         Instance Variables:
>         >                isRunning = true
>         >                window = an ApplicationWindow 100664171
>         >                context = nil
>         >                renderJob = nil
>         >                resizeJob = resize
>         >                idleJob = nil
>         >                program = nil
>         >                geometry = nil
>         >                geometryVectors = nil
>         >         Context PC = 7
>         >
>         >
>         ----------------------------------------------------------------------
>         >         optimized [] in OpenGL.Lessons.Lesson>>start
>         >         Receiver:
>         >                an UndefinedObject
>         >         Temporaries:
>         >                .self = an OpenGL.Lessons.Lesson01Geometry
>         >         Context PC = 6
>         >
>         >
>         ----------------------------------------------------------------------
>         >         BlockClosure>>on:do:
>         >         Receiver:
>         >                a BlockClosure
>         >         Instance Variables:
>         >                method = CompiledBlock [] in
>         >         OpenGL.Lessons.Lesson>>start
>         >                outerContext = nil
>         >                copiedValues = an
>         OpenGL.Lessons.Lesson01Geometry
>         >         Arguments:
>         >                anExceptionSelector = TerminateException
>         >                handlerBlock = BlockClosure [] in [] in
>         Process
>         >         class>>forBlock:priority:
>         >         Context PC = 18
>         >
>         >
>         ----------------------------------------------------------------------
>         >         optimized [] in Process class>>forBlock:priority:
>         >         Receiver:
>         >                an UndefinedObject
>         >         Temporaries:
>         >                .aBlock = BlockClosure [] in
>         >         OpenGL.Lessons.Lesson>>start
>         >         Context PC = 9
>         >
>         >         --
>         >         View this message in context:
>         >
>         http://n4.nabble.com/VW7-7NC-OpenGL-on-a-64bits-VM-image-on-linux-tp1749811p1749811.html
>         >         Sent from the VisualWorks mailing list archive at
>         Nabble.com.
>         >         _______________________________________________
>         >         vwnc mailing list
>         >         [hidden email]
>         >         http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>         >
>        
>        
>         _______________________________________________
>         vwnc mailing list
>         [hidden email]
>         http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>        
>
>


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Michael Lucas-Smith-2
Usually I'd write a minimal c program to recreate what it was I was
trying to do in Smalltalk. But in this case it's more likely some sort
of linking problem so I'd turn on #debug mode on the GLXInterface class
and step through its linking code where it breaks in the debugger.

Michael

On 4/6/10 6:31 PM, Daniel Galdames G. wrote:

> Hi Michael, can you give me some advice about where to look at to try to
> fix it?.
> Greetings,
>    Daniel Galdames G.
>
>
> El mar, 06-04-2010 a las 10:03 -0700, Michael Lucas-Smith escribió:
>    
>> My problem is that I don't have a set up to try this out on. Does
>> anyone else have a working opengl environment on a 64bit linux that
>> might be able to lend a hand?
>>
>>
>> Michael
>>
>> On 3 April 2010 13:40, Daniel Galdames G.<[hidden email]>  wrote:
>>          Hi, thanks for the reply.
>>          I think that is not the problem, the names are the same, but
>>          in a
>>          different directory, I changed the GLXInterface libraries
>>          methods to
>>          point to the complete path, but it doesn't work.
>>
>>
>>          El vie, 02-04-2010 a las 20:36 -0700, Michael Lucas-Smith
>>          escribió:
>>
>>
>>          >  I'd guess that the 64 bit .so for opengl is not the same
>>          name as the
>>          >  32 bit .so -- so you'd have to change the<library:>  pragma
>>          method.
>>          >
>>          >  On 2 April 2010 18:37, Daniel Galdames<[hidden email]>
>>          wrote:
>>          >
>>          >          Hi, i was trying the openGL-lesson on a vw7.7nc,
>>          using the 64
>>          >          bits linux VM,
>>          >          but I can't get it works. Using a 32 bits enviroment
>>          works
>>          >          well.
>>          >          Greetings, and thanks.
>>          >           Daniel Galdames G.
>>          >          I attached the debug stack:
>>          >
>>          >          Unhandled exception: exception occured #(11
>>          140115044517581)
>>          >
>>          GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>>          >          GLX.GLXInterface>>glXCreateContext:with:with:with:
>>          >          ExternalMethod>>unlinkedCall:arguments:
>>          >          GLX.RenderContextX11Window>>initializeContext
>>          >
>>          GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>>          >          GLX.RenderContextX11Window>>initialize:
>>          >          OpenGL.RenderContext class>>on:
>>          >
>>          OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>>          >
>>          OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>>          >          optimized [] in OpenGL.Lessons.Lesson>>start
>>          >          BlockClosure>>on:do:
>>          >          optimized [] in Process class>>forBlock:priority:
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >
>>          GLX.GLXInterface(ExternalInterface)>>externalAccessFailedWith:
>>          >          Receiver:
>>          >                 a GLX.GLXInterface
>>          >          Arguments:
>>          >                 errorCode = a SystemError(#'exception
>>          occured',#(11
>>          >          140115044517581))
>>          >          Temporaries:
>>          >                 errorString = 'exception occured #(11
>>          140115044517581)'
>>          >          Context PC = 44
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          GLX.GLXInterface>>glXCreateContext:with:with:with:
>>          >          Receiver:
>>          >                 a GLX.GLXInterface
>>          >          Arguments:
>>          >                 display = 62889600
>>          >                 visualInfo = 0
>>          >                 shareList = nil
>>          >                 direct = 1
>>          >          Temporaries:
>>          >                 _errorCode = a SystemError(#'exception
>>          occured',#(11
>>          >          140115044517581))
>>          >          Context PC = 10
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          ExternalMethod>>unlinkedCall:arguments:
>>          >          Receiver:
>>          >                 an ExternalMethod
>>          >          Instance Variables:
>>          >                 bytes = a ByteArray[14]
>>          >                 mclass = GLX.GLXInterface
>>          >                 sourceCode = 54071910
>>          >                 handle = 140115015178128
>>          >                 specifierFlags = 18
>>          >                 argumentKinds = a ByteArray[5]
>>          >                 structArgSize = 0
>>          >                 structReturnSize = 0
>>          >                 datumClass = CPointer
>>          >                 resultType = GLXContext
>>          >                 virtuals = nil
>>          >                 methodSelector =
>>          #glXCreateContext:with:with:with:
>>          >                 external = #glXCreateContext
>>          >          Arguments:
>>          >                 receiver = a GLX.GLXInterface
>>          >                 arguments = an Array[4]
>>          >          Context PC = 15
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          GLX.RenderContextX11Window>>initializeContext
>>          >          Receiver:
>>          >                 a GLX.RenderContextX11Window
>>          >          Instance Variables:
>>          >                 interface = nil
>>          >                 view = an ApplicationWindow 100664171
>>          >                 vendor = nil
>>          >                 renderer = nil
>>          >                 version = nil
>>          >                 program = nil
>>          >                 textures = nil
>>          >                 texturesHistory = nil
>>          >                 extensions = nil
>>          >                 xif = a GLX.GLXInterface
>>          >                 drawableHandle = 100664171
>>          >                 context = nil
>>          >                 displayHandle = 62889600
>>          >          Temporaries:
>>          >                 drawableData = a
>>          Graphics64BitHandle(100664171)
>>          >                 visualInfo = 0
>>          >          Context PC = 39
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >
>>          GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
>>          >          Receiver:
>>          >                 a GLX.RenderContextX11Window
>>          >          Instance Variables:
>>          >                 interface = nil
>>          >                 view = an ApplicationWindow 100664171
>>          >                 vendor = nil
>>          >                 renderer = nil
>>          >                 version = nil
>>          >                 program = nil
>>          >                 textures = nil
>>          >                 texturesHistory = nil
>>          >                 extensions = nil
>>          >                 xif = a GLX.GLXInterface
>>          >                 drawableHandle = 100664171
>>          >                 context = nil
>>          >                 displayHandle = 62889600
>>          >          Arguments:
>>          >                 aView = an ApplicationWindow 100664171
>>          >          Context PC = 6
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          GLX.RenderContextX11Window>>initialize:
>>          >          Receiver:
>>          >                 a GLX.RenderContextX11Window
>>          >          Instance Variables:
>>          >                 interface = nil
>>          >                 view = an ApplicationWindow 100664171
>>          >                 vendor = nil
>>          >                 renderer = nil
>>          >                 version = nil
>>          >                 program = nil
>>          >                 textures = nil
>>          >                 texturesHistory = nil
>>          >                 extensions = nil
>>          >                 xif = a GLX.GLXInterface
>>          >                 drawableHandle = 100664171
>>          >                 context = nil
>>          >                 displayHandle = 62889600
>>          >          Arguments:
>>          >                 aView = an ApplicationWindow 100664171
>>          >          Context PC = 10
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          OpenGL.RenderContext class>>on:
>>          >          Receiver:
>>          >                 a OpenGL.RenderContext class
>>          >          Instance Variables:
>>          >                 superclass = Object
>>          >                 methodDict = a MethodDictionary[24]
>>          >                 format = 16393
>>          >                 subclasses = an Array[3]
>>          >                 instanceVariables = an Array[9]
>>          >                 organization = ('accessing' #bounds
>>          #extensions
>>          >          #program #program:
>>          >          #renderer #vendor #version #view)
>>          >          ('private' #activateContext #assignTextureUnitTo:
>>          >          #deactivateContext
>>          >          #leastUsedTextureUnit #resetProgram #resetTextures)
>>          >          ('initialize-release' #initialize:
>>          #initializeContext
>>          >          #initializeInterface
>>          >          #initializeParameters #on:)
>>          >          ('api' #activate #deactivate #flush #resize
>>          #whileCurrentDo:)
>>          >
>>          >                 name = #RenderContext
>>          >                 classPool = a NameSpaceOfClass[1]
>>          >                 environment = a NameSpace[34]
>>          >          Arguments:
>>          >                 aView = an ApplicationWindow 100664171
>>          >          Context PC = 8
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >
>>          OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>initializeOpenGL
>>          >          Receiver:
>>          >                 a OpenGL.Lessons.Lesson01Geometry
>>          >          Instance Variables:
>>          >                 isRunning = true
>>          >                 window = an ApplicationWindow 100664171
>>          >                 context = nil
>>          >                 renderJob = nil
>>          >                 resizeJob = resize
>>          >                 idleJob = nil
>>          >                 program = nil
>>          >                 geometry = nil
>>          >                 geometryVectors = nil
>>          >          Context PC = 5
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >
>>          OpenGL.Lessons.Lesson01Geometry(OpenGL.Lessons.Lesson)>>starting
>>          >          Receiver:
>>          >                 a OpenGL.Lessons.Lesson01Geometry
>>          >          Instance Variables:
>>          >                 isRunning = true
>>          >                 window = an ApplicationWindow 100664171
>>          >                 context = nil
>>          >                 renderJob = nil
>>          >                 resizeJob = resize
>>          >                 idleJob = nil
>>          >                 program = nil
>>          >                 geometry = nil
>>          >                 geometryVectors = nil
>>          >          Context PC = 7
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          optimized [] in OpenGL.Lessons.Lesson>>start
>>          >          Receiver:
>>          >                 an UndefinedObject
>>          >          Temporaries:
>>          >                 .self = an OpenGL.Lessons.Lesson01Geometry
>>          >          Context PC = 6
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          BlockClosure>>on:do:
>>          >          Receiver:
>>          >                 a BlockClosure
>>          >          Instance Variables:
>>          >                 method = CompiledBlock [] in
>>          >          OpenGL.Lessons.Lesson>>start
>>          >                 outerContext = nil
>>          >                 copiedValues = an
>>          OpenGL.Lessons.Lesson01Geometry
>>          >          Arguments:
>>          >                 anExceptionSelector = TerminateException
>>          >                 handlerBlock = BlockClosure [] in [] in
>>          Process
>>          >          class>>forBlock:priority:
>>          >          Context PC = 18
>>          >
>>          >
>>          ----------------------------------------------------------------------
>>          >          optimized [] in Process class>>forBlock:priority:
>>          >          Receiver:
>>          >                 an UndefinedObject
>>          >          Temporaries:
>>          >                 .aBlock = BlockClosure [] in
>>          >          OpenGL.Lessons.Lesson>>start
>>          >          Context PC = 9
>>          >
>>          >          --
>>          >          View this message in context:
>>          >
>>          http://n4.nabble.com/VW7-7NC-OpenGL-on-a-64bits-VM-image-on-linux-tp1749811p1749811.html
>>          >          Sent from the VisualWorks mailing list archive at
>>          Nabble.com.
>>          >          _______________________________________________
>>          >          vwnc mailing list
>>          >          [hidden email]
>>          >          http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>          >
>>
>>
>>          _______________________________________________
>>          vwnc mailing list
>>          [hidden email]
>>          http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>>
>>
>>      
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>    

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Holger Kleinsorgen-4
In reply to this post by Daniel Galdames
Am 07.04.2010 03:31, schrieb Daniel Galdames G.:
> Hi Michael, can you give me some advice about where to look at to try to
> fix it?.
> Greetings,
>    Daniel Galdames G.
>
>

I think the answer can be found in this call:

...
GLX.GLXInterface>>glXCreateContext:with:with:with:
Receiver:
    a GLX.GLXInterface
Arguments:
    display = 62889600
    visualInfo = 0
    shareList = nil
    direct = 1
...

it's suspicious that visualInfo is 0. It should be a valid pointer to a
XVisualInfo struct:

On my test machine (Ubuntu 9.10 x86-64, fglrx driver), the lessons work
without modification.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Holger Kleinsorgen-4
Am 07.04.2010 20:46, schrieb Holger Kleinsorgen:

> Am 07.04.2010 03:31, schrieb Daniel Galdames G.:
>> Hi Michael, can you give me some advice about where to look at to try to
>> fix it?.
>> Greetings,
>> Daniel Galdames G.
>>
>>
>
> I think the answer can be found in this call:
>
> ...
> GLX.GLXInterface>>glXCreateContext:with:with:with:
> Receiver:
> a GLX.GLXInterface
> Arguments:
> display = 62889600
> visualInfo = 0
> shareList = nil
> direct = 1
> ...
>
> it's suspicious that visualInfo is 0. It should be a valid pointer to a
> XVisualInfo struct:
>
> On my test machine (Ubuntu 9.10 x86-64, fglrx driver), the lessons work
> without modification.
>

ouch, I first used a 32 bit image, no wonder that it worked out of the
box ;)

I've published a patch (OpenGL-Linux 3.0 15 x86-64fix), which solves the
problem. the following two lines won't work in a 64 environment:

displayHandle := drawableData unsignedLongAt: 9.
visualInfo := drawableData unsignedLongAt: 13.

ps: it looks like Cairo could be affected by this problem, too
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: VW7.7NC OpenGL on a 64bits VM/image on linux

Daniel Galdames
Thanks!!! now it's working!!, but the Lesson06Animations don't draws a
pyramid, instead it draws a triangle but I think that's unrelated with
the previous problem.
I will look at the code later, I think that it's just something small.
Greetings
  Daniel Galdames G.

El mié, 07-04-2010 a las 22:22 +0200, Holger Kleinsorgen escribió:

> Am 07.04.2010 20:46, schrieb Holger Kleinsorgen:
> > Am 07.04.2010 03:31, schrieb Daniel Galdames G.:
> >> Hi Michael, can you give me some advice about where to look at to try to
> >> fix it?.
> >> Greetings,
> >> Daniel Galdames G.
> >>
> >>
> >
> > I think the answer can be found in this call:
> >
> > ...
> > GLX.GLXInterface>>glXCreateContext:with:with:with:
> > Receiver:
> > a GLX.GLXInterface
> > Arguments:
> > display = 62889600
> > visualInfo = 0
> > shareList = nil
> > direct = 1
> > ...
> >
> > it's suspicious that visualInfo is 0. It should be a valid pointer to a
> > XVisualInfo struct:
> >
> > On my test machine (Ubuntu 9.10 x86-64, fglrx driver), the lessons work
> > without modification.
> >
>
> ouch, I first used a 32 bit image, no wonder that it worked out of the
> box ;)
>
> I've published a patch (OpenGL-Linux 3.0 15 x86-64fix), which solves the
> problem. the following two lines won't work in a 64 environment:
>
> displayHandle := drawableData unsignedLongAt: 9.
> visualInfo := drawableData unsignedLongAt: 13.
>
> ps: it looks like Cairo could be affected by this problem, too
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc