Git Product home page Git Product logo

clipcrash's Introduction

This application can crash your Macs clipboard, at least on Snow Leopard 10.6.8

The process to do so is quite simple, but requires a few manual steps.

0. Close all applications that are not vital to this test, i.e. everything except Activity Monitor and XCode.
1. Load the project in XCode and start it.
2. Let it run for a few seconds. You can put a few things into your clipboard to see the output.
3. Kill the application in XCode.
4. You should get the familiar "kill\nquit\nProgram ended with exit code: 0" message.
5. Try to copy something to the clipboard. The application that you do this in will lock up (if not, repeat steps 2--4). In fact, any application that tries to access the system clipboard will freeze up and go into a loop. This can and will include XCode, every browser you have open, every terminal you have open and eventually the Finder.

As soon as your Finder freezes, you don't have much chance to save your system. The only thing that helps is a hard shut down. If your Finder isn't frozen yet, you can avoid the shutdown by quickly force-killing every frozen application and logging out. Logging back in will reset the clipboard and give you a clean slate.

I have tried debugging into a freezing application, and the code the breaks is already the retrieval of the system clipboard via
  pb = [NSPasteboard generalPasteboard];
This call will go into a rather tight spin lock, from which it will not return. As to the reason for this, I have no idea.

Note that the only reference I could find to a similar phenomenon is a StackOverflow question under
http://stackoverflow.com/questions/2796997/crashing-the-os-x-pasteboard

clipcrash's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.