OpenCL freezes when trying to run kernel code

Hi,
I have some openCL kernel that runs through pixels stored in a frame buffer object, and counts non-black and non-white pixels. It used to run fine on my machine, but I believe that updates to Mac OS X and/or devtools might have caused a problem to cause it stall.
The kernel object associated with the kernel code is attached to a QT window, and the kernel code is run n-times when the window requires an render update. This window is updated twice after it is created initially, which means that the sequence of openCL code does not cause problems initially. When I bring the window to the foreground, it requires another update and attempts to run the kernel code another n-times. But in the middle of those n-times, it stalls. i.e. if it needs to run 51 times, it stalls at iteration 26.  It appears that a call to clEnqueueReadBuffer causes a stall.
I'm going to leave out details about why I use the openCL code unless it's absolutely necessary since that might confuse code. I thought it would be good to focus on the OpenCL code itself. Here it is for reference: http://dl.dropbox.com/u/10838242/forumsquestion.cpp
Here's the gdb backtrace:
#0  0x00007fff8e3a6122 in __psynch_mutexwait ()
#1  0x00007fff8955ad9d in pthread_mutex_lock ()
#2  0x000000010dd3acbd in gldFlushQueue ()
#3  0x000000010bbc193f in IOAccelContextFinishResourceSysMem ()
#4  0x000000010bbcd5b0 in gpumAcquireFenceOnQueue ()
#5  0x000000010dd43fcd in gldCopyBufferDataWithQueue ()
#6  0x00007fff8ffa7e2e in GCC_except_table49 ()
#7  0x00007fff8ffc5f11 in clFinish ()
#8  0x00007fff936800b6 in _dispatch_client_callout ()
#9  0x00007fff93681723 in _dispatch_barrier_sync_f_invoke ()
#10 0x00007fff8ffc5ddb in clFinish ()
#11 0x00007fff8ffc25c2 in clSetEventCallback ()
#12 0x00007fff8ffb86e6 in clEnqueueReadBuffer ()
#13 0x0000000100020a31 in CLHandler::update (this=0x107683e20, tagged=@0x7fff5fbfb960, w=761, h=711) at clhandler.cpp:343
#14 0x000000010002f8c1 in CustomBladesGLWidget::render (this=0x1072b09e0, indexMode=true, offset=135288, numPnts=4416, blobID=25, bladeIdsIntersected=@0x7fff5fbfb960) at customBladesGLWidget.cpp:943
In the attached file, line 343 (bold above) corresponds to this call (in function CLHandler::update):
//read data from buffer
  status = clEnqueueReadBuffer(cqueue,hitbuffer,CL_TRUE,0,mNumBladeCells * sizeof(float),mBladesHit,0,
                               NULL,&event);
  handleError("clEnqueueReadBuffer","",status);
Now, if I were to comment everything BELOW the initial call to clEnqueueWriteBuffer, it would stall at that function call instead. I have no idea why this occurs. Any help is greatly appreciated.
If this problem is indicative of something more problematic then I guess Apple support might be one option.  System specs: MacbookPro 8,2, Core i7 2.2 GHz, AMD Radeon HD 6750M, OS X 10.8.2.
Thanks

Oh, I see, sorry, if it is legitmate, then ignore my post. My copy runs perfectly so I was wondering why yours did not. I understand that its a valuable computer, in fact, for the amount of money you payed for that mbp, you can build a computer of your own with state of the art components. Just saying. @sig, lets hope that he finds something on the support page to help him.

Similar Messages

  • CS 3 Bridge crashes / freezes when trying to run the slideshow feature

    A while back I deactivated Photoshop CS3 that was installed on my laptop. Then this past week I went to reinstall it again. One thing I noticed was that the PS-CS3 and Bridge Icons were still residing on my desktop. I went into the "add/remove programs" and sure enough there was PS-CS3 sitting there. So I tried to do an uninstall first. When I clicked the tab to do a remove program it just sat there. I contacted Adobe Tech support and they sent me the script to to an uninstall. It worked, the Icons went away and so I proceded to do a new install. I entered the serial numbers and activated it and all seemed well. Then I went into the Bridge, everything seemed ok there too. I was able to use the RAW converter, view thumbnails and the rest. Then I went to a specific folder where I had some files that were converted to JPEG to run the slideshow feature. That is when Bridge hung up and a few seconds later it closed the preview window that had opened for the slideshow preview.
    Does this have something to do with the amount of RAM on my laptop? Or maybe the cache? I ask because I had never needed to use the slideshow feature until now and everthing seemed ok even prior to uninstalling and reinstalling.
    I have 1 gig or ram... the hard drive is 350 gigabytes and there is a ton of room still available. The processor is ok. Oh also, I have Lightroom 2 installed on this machine too and it's slideshow feature runs fine. But I would prefer to use the slideshow feature in bridge.
    Any suggestions will be greatly appreciated

    Copy the jdev_home/jlib/redist/uix2_install.zip file to
    jdev_home/jdev/redist folder . It will overwrite an existing uix2_install.zip file.
    Close and open the Jdeveloper IDE. It will prompt you for upgradation of projects. Press OK button in response.
    Now you should be able to run the JSP pages.

  • Error Code 1000 when trying to run Backup Assistant Plus.

    I am getting backup failed and Error Code 1000 when trying to run Backup Assistant Plus.  Have not been able to backup for several weeks.Droid Razr Maxx.

        Hi ellendritz- We are dedicated to make it easier to backup your data! We have integrated Backup Assistant with the Verizon Cloud service offering you many more features and 5GB of storage free! Visit http://www.vzw.com/cloud for more details. The Verizon Cloud app is currently available for download in the Google PlayStore. Please attempt backup with the new application and keep me posted on the status as I would be happy to offer additional support if needed.
    Thank you,
    YaleK_VZW
    Follow us on Twitter @VZWsupport

  • App File Server connection error when trying to run a BI Publisher report..

    hello Gurus...
    As above - App File Server connection error when trying to run a BI Publisher report.. FOR THE FIRST TIME.
    What does our DBA need to do..?
    error message reads..
    Template code: SUARXASR
    Template app:  AR
    Language:      en
    Territory:     GB
    Output type:   EXCEL
    [5/10/10 10:59:27 AM] [UNEXPECTED] [46321:RT1487572]
    oracle.apps.fnd.cp.util.RemoteFileException: An error occurred while attempting to establish an Applications File Server connection with the node FNDFS_*****.ac.uk. There may be a network configuration problem, or the TNS listener on node FNDFS_*****.ac.uk may not be running. Please contact your system administrator.
    at oracle.apps.fnd.cp.util.RemoteFile.readURL(RemoteFile.java:241)
    at oracle.apps.fnd.cp.util.RemoteFile.transferFile(RemoteFile.java:194)
    at oracle.apps.fnd.cp.util.RemoteFile.transfer(RemoteFile.java:130)
    at  oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:264)at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [5/10/10 10:59:27 AM] [46321:RT1487572] Completed post-processing actions for request 1487572.I'm sure we never had to set anything up in our Test instance!??!!??
    many thanks for looking..
    Steven

    nobody experienced this before..?

  • IPhoto freezing when trying to import photos from iPhone

    iPhoto has started freezing when trying to import photos from an iPhone. The device is recognised but just get "loading . . . " message with no photos appearing. Has anyone else seen this?

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. As full a description of the problem as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Any ideas why InCopy would freeze when trying to copy content?

    Any ideas why InCopy would freeze when trying to copy content? This is occurring on a corporate computer running Windows. We've uninstalled and reinstalled InCopy and are still runnng into the same problem.
    Any ideas would be appreciated. Thanks!

    I am also having the same issue when Syncing my 5th gen Nano. I can sync my iPhone, iPad and my sons iPod Touch but not my Nano. When I click to sync I just get the rainbow wheel.

  • Error when trying to run an application that worked when built with 8.6

    I have a simple program that I wrote in version 8.6 that I never had a problem building and running applications built with it in 8.6.  Two weeks ago I got 2009 in the mail because we had very recently purchased 8.6 and I am getting errors when trying to run an application built with the same code using 2009.  The error has to do with the Mean.vi.  It claims it cannot find it.  The error I get reads as follows:
    An error occurred loading VI 'NI_AALBase.lvlib:Mean.vi'.  LabVIEW load error code 3: Could not load front panel.  I don't need access to this vi's front panel, so I am wondering if it is a problem with the runtime engine and not my code.  Please respond as soon as possible as this will quickly start to impact my testing schedule.  Thank You.
    Solved!
    Go to Solution.

    Hi!
    The same problem ???
    I discussed it with my local NI technical support team. The application works without any problems now.
    Basic rule: when creating an installer be sure that option "Run Time Engine xxxx"  in "Additional Installers" category is checked in spite of the fact that Run Time Engine is already installed.
    Best regards.
    Attachments:
    ADDINST.png ‏13 KB

  • Exception when trying to run an Web Application that uses a Web service

    Hello All,
    I get an exception when trying to run an Web Application that uses a Web service. The web application is a WebDynpro Application.(an application similar to the one "Using an Email Web Service in Web Dynpro" in the tutorial section of Web Dynpro but using a different web service)
    The exception is
    <b>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found.</b>
    Could anyone give me an idea on what might be the problem ?
    Regards,
    Loveline.

    Hello,
    Like you said it was the problem with url.
    The webservice I used is actually running on the local machine (where the NetWeaver developer studio is installed); so in the url I had specified localhost. But I deployed the application on another server(SAP J2EE Engine). That is why it didn't work. On changing the url as required, the application is working fine.
    Thanks !
    Regards,
    Loveline.

  • Today my iPad says network error when trying to run amazon instant video...

    Today my iPad says network error when trying to run amazon instant video... I fooled it into starting the movie, but the error message continues...

    What you need to do is go into settings
    Then go to wifi
    Tap the blue arrow to the wifi you are connected to
    Tap forget network
    Retap the wifi you want
    Reinsert your wifi code if you have one

  • Upgraded to 10.5 on windows 7.  now itunes freezes when trying to download old apps.  any solutions?

    10.5 upgrade erased apps & books from ipad.  itunes freezes when trying to download from windows 7 computer.  Any suggestions?

    I am using Window Vista 32bit and have the same problem. After trying uninstall, reinstall, ccclean registry, over and over again and still cannot install itune 10.5. And finally concluded that this might be a registry corruption problem. The following steps is what I did to fix the registry isssue and get my itune 10.5 installed.
    - Run Window update - and check the history file, if you see some failures in previous updates, there is something wrong with the registry.
    - un-install all the apple related software (itune, safari, boujour, apple update, etc).
    - For Vista 32bit, go to the following link and run the script to clean up the registry. I am not sure if other WIndow OS will work or not.
    http://windows.microsoft.com/en-US/windows-vista/Windows-Update-Error-8000FFFF
    - run the Fix-it script. you have to select the Agressive mode (even thou the pop up window advise not to do this)  in order to clean up the registry. When I try without checking the box, and it did not fix the problem.
    - reboot PC
    - Run window update. It will discover a lot of old updates that need to be installed (I suspect that the fix it script delete a lot of stuff in the registry and removed previous updates). I got 53 updates that need to install.
    - run the update and wait for a longtime (mine took ~2 hours).
    - reboot PC
    - run cccleaner
    - reboot PC
    - install itune 10.5
    Now it works. Hopefully other window OS has similar step to fix this. I can only say it works for me using window Vista 32bit. and so far, my PC works correctly.

  • Need advise, I have purchased compressor 4.1 to compress my movie file, particularly MKV files. Problem is, that the software freezes when trying to import the 10GB MKV. Any one that can help?

    Need advise, I have purchased compressor 4.1 to compress my movie file, particularly MKV files. Problem is, that the software freezes when trying to import the 10GB MKV. Any one that can help?

    Afraid Compressor won't work with MKV. If you have access to a system running an earlier version than Mavericks, and with Perian installed you can use MPEG Streamclip or Quick Time Pro to convert to a mov.
    Russ

  • Installed an Windows 8.1 update yesterday; Now coputer freezes when trying to print from Adobe Reader.  Can print from MS word

    Installed a Windows 8.1 update yesterday; now computer freezes when trying to print from Adobe Reader XI.  Still can print a word document from MS Word.

    Was already running latest version 11.0.10.  Tried the re-load fix; tried uninstalling and installing a new one from the web.  Problem still exists -- cannot print any document from Adobe Reader XI.  Computer freezes when the print file is being prepared at 0%.
    Jamesk71259086

  • StackOverFlow when trying to run GUI.

    Hi, got StackOverFlowError when trying to run the GUI, please help..
    public class mainScreen extends JFrame {
        private JTabbedPane tabbedPane;
         private JFrame parent;     //creates a JFrame variable called parent to fit everything inside
         private JLabel lblUserID;     //creates a variable JLabel called lblUserID
         private JLabel lblPwd;          //creates a variable JLabel called lblPwd
         private JTextField tfdUserID;     //creates a JTextField variable called tfdUserID
         private JPasswordField pfdPwd;     //creates a JPasswordField variable called pfdPwd
         private JButton btnLogin, btnReset;     //creates JButton variables called btnLogin and btnReset
    ... yada yada..
       public mainScreen() {
          super( "Client GUI" );
          tabbedPane=new JTabbedPane();
          tabbedPane.addTab("Home", new HomePanel());
          tabbedPane.addTab("Profile",new profile());
          tabbedPane.addTab("Search",new search());
          tabbedPane.addTab("History",new history());
          tabbedPane.addTab("Subscription", new subscription());
          tabbedPane.setSelectedIndex(0);
          getContentPane().add(tabbedPane);
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setSize(600,420);
          setVisible(true);
          setResizable (false);
       }public static void main( String args[] ) {
    new mainScreen();
    Thanks!

    This section from the Swing tutorial on [url http://java.sun.com/docs/books/tutorial/uiswing/components/tabbedpane.html]Using Tabbed Panes gives you a working example. Compare your code with the example. You have so many custom components that we can't tell you what the problem is. Try creating one tab at a time to determine which tab is causing the problem. Basic debugging 101.

  • NullPointerException when trying to run FopPrintServlet

    Dear All,
    I'm trying to run the FopPrintServlet shipped with Apache FOP 0.20.5 bin
    release but i got the following exception which is related to a bug in OracleAS OC4J instance 10.1.2.0.2 as in the FOP code i didn't reference Oracle XML parser but i got the exception from the Class : oracle.xml.jaxp.JXTransformer.reportXSLException
    So, how can i disable OC4J from referencing Oracle XML APIs which running Apache FOP java code.
    java.lang.NullPointerException
    at
    oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:776)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:343)
    at
    oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
    at
    oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:286)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:184)
    at oracle.xml.jaxp.JXXMLFilter.parse(JXXMLFilter.java:96)
    at org.apache.fop.apps.Driver.render(Driver.java:498)
    at
    ws.its.esc.bp.test.FopPrintServlet.renderXML(FopPrintServlet.java:100)
    at
    ws.its.esc.bp.test.FopPrintServlet.doPost(FopPrintServlet.java:68)
    at ws.its.esc.bp.test.FopPrintServlet.doGet(FopPrintServlet.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)

    This is a duplicate of the following post:
    NullPointerException when trying to run FopPrintServlet on JDeveloper
    user513949,
    If you are using OC4J stand-alone version 10.1.2.0.2, I suggest you refer to the following post:
    Class loading issue in 10.1.2?  commons-codec
    And you may need to set the following property:
    javax.xml.parsers.SAXParserFactoryGood Luck,
    Avi.

  • NullPointerException when trying to run FopPrintServlet on JDeveloper

    Dear All,
    I'm trying to run the FopPrintServlet shipped with Apache FOP 0.20.5 bin
    release but i got the following exception which is related to a bug in JDeveloper 10.1.2 as in the FOP code i didn't reference Oracle XML parser but i got the exception from the Class : oracle.xml.jaxp.JXTransformer.reportXSLException
    So, how can i disable JDeveloper from referencing Oracle XML APIs which running Apache FOP java code.
    java.lang.NullPointerException
    at
    oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:776)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:343)
    at
    oracle.xml.jaxp.JXTransformerHandler.endDocument(JXTransformerHandler.java:141)
    at
    oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:286)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:184)
    at oracle.xml.jaxp.JXXMLFilter.parse(JXXMLFilter.java:96)
    at org.apache.fop.apps.Driver.render(Driver.java:498)
    at
    ws.its.esc.bp.test.FopPrintServlet.renderXML(FopPrintServlet.java:100)
    at
    ws.its.esc.bp.test.FopPrintServlet.doPost(FopPrintServlet.java:68)
    at ws.its.esc.bp.test.FopPrintServlet.doGet(FopPrintServlet.java:47)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:649)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at com.evermind[Oracle Application Server Containers for J2EE 10g
    (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)

    This is a duplicate of the following post:
    NullPointerException when trying to run FopPrintServlet
    Cheers,
    Avi.

Maybe you are looking for