Code Monkey home page Code Monkey logo

Comments (1)

hyspace avatar hyspace commented on August 21, 2024

Hi, thank you for your feedback.

The crashing problem can by partially solved by this way: install the newly built screensaver bundle, and goto system preference and switch to it, then quit from system preference. Do not preview or switch to other screensaver. It will work when screensaver actually launched by system. Crashing only occurs in system panel. Or, you can just run it with Xcode, it will work too.

As long as I know, after many hours debugging, this crashing problem is caused by function call to OpenCL. Apple provides a convenient OpenCL initializing api set called gcl, but without detailed documentation. I used gcl in this program for its convenience. It seems that in system preference panel, the screensaver instance is not fully deallocated when you switch between different screensaver(although deallocate function is called). But gcl api have some problem in this situation. When you switch from this screensaver to another, and then switch back, an gcl error happens which says that gcl can not be initialize twice(which means program is not fully deallocated), and cause the whole system preference program to crash. I have done all the releasing step in deallocating function, but it still crashes. I tracked this problem using syslog, but couldn't solve it. May be I should stop using gcl and using OpenCL standard api instead, which require more work to do with OpenCL kernel launching and initialization.

The "black screen" bug may be solved by your advice, thank you for your tip. This project is a final project of my graphic course. Because these bug, I used a window instead of real screensaver to do the presentation :(

from rainsaver.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.