Giter Club home page Giter Club logo

antipopd's People

Contributors

drye avatar mattrob avatar mttrb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

antipopd's Issues

How widespread is this issue?

I wonder if this is Hardware issue, logic board, busted amp, speaker...
I refuse to believe this happens on every Mac.

Any insights?

I've MacBook Pro 2017 TB, pops after playing brief sounds like notifications.

Potential segmentation fault on High Sierra (10.13.4)

Hey! This is my first issue post in a long time, so I apologize if I'm leaving anything out that is glaringly obvious. I will be happy to amend this issue with necessary information.

The issue that I'm seeing is that after building with the given instructions, the program gives a segmentation fault code related to bad access.

The computer I am using this on is a PC running Mac OS, and so if this runs on High Sierra on real Macs, then there is clearly not a real issue here. The world of debugging unofficial Mac issues is surely a nightmare, and no one could be blamed for not wanting to investigate further.

Included is a terminal log where I:

  • Build with debugging symbols
  • Open antipopd in lldb
  • Set a breakpoint at the exact line that causes the crash
  • Print the value being passed into the function 'CFGetTypeID( )'
  • Take one step in lldb, which displays the crash
  • Exit lldb. Run antipopd as a normal user, and as root, which both result in a segmentation fault

Thank you for reading this issue, take care


div@mac [antipopd]: clang -g -framework CoreFoundation -framework Foundation -framework SystemConfiguration -framework AppKit -arch i386 -arch x86_64 -o antipopd antipopd.m
div@mac [antipopd]: lldb antipopd
(lldb) target create "antipopd"
Traceback (most recent call last):
  File "<input>", line 1, in <module>
  File "/usr/local/opt/python@2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/copy.py", line 52, in <module>
    import weakref
  File "/usr/local/opt/python@2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
Current executable set to 'antipopd' (x86_64).
(lldb) b antipopd.m:78
Breakpoint 1: where = antipopd`getPowerStatus + 43 at antipopd.m:78, address = 0x000000010000165b
(lldb) r
Process 62898 launched: '/Users/div/code/antipopd/antipopd' (x86_64)
Process 62898 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
    frame #0: 0x000000010000165b antipopd`getPowerStatus(store=0x00000001001050c0, changedKeys=@"1 element", info=0x0000000000000000) at antipopd.m:78
   75  		);
   76
   77  		// We should always get a dictionary but we'll check anyway
-> 78  		if (CFGetTypeID(value) == CFDictionaryGetTypeID()) {
   79
   80  			//Get the Power Source State
   81  			CFStringRef powerSourceState = CFDictionaryGetValue(value, POWER_SOURCE);
Target 0: (antipopd) stopped.
(lldb) print value
(CFPropertyListRef) $0 = 0x0000000000000000
(lldb) s
Process 62898 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8)
    frame #0: 0x00007fff55ba70ca CoreFoundation`CFGetTypeID + 10
CoreFoundation`CFGetTypeID:
->  0x7fff55ba70ca <+10>: movq   0x8(%rdi), %rcx
    0x7fff55ba70ce <+14>: movq   (%rdi), %rax
    0x7fff55ba70d1 <+17>: testq  %rax, %rax
    0x7fff55ba70d4 <+20>: je     0x7fff55ba70f9            ; <+57>
Target 0: (antipopd) stopped.
(lldb) exit
Quitting LLDB will kill one or more processes. Do you really want to proceed: [Y/n] y
div@mac [antipopd]: ./antipopd
Segmentation fault: 11
div@mac [antipopd]: sudo ./antipopd
Password:
Segmentation fault: 11

Excellent! Thanks. How to monitor antipopd?

Hi Matthew,
Thanks very much for writing this. Should I be able to see a process called "antipopd" running in Activity Monitor? I don't see any such process executing but the sound popping appears to be fixed. I was just trying to understand how antipopd executes. Thanks.
David

Big Sur compatibility

Seems like itβ€˜s not compatible with Big Sur, can someone confirm this or does someone have a solution?

Clicks on recording

Is it possible to add second timer which will record audio? To prevent clicks on recording.

Support for M1/M2 processor Macs missing

Not a criticism, but it doesn't compile on a bog standard (in this case M1) Macbook Pro.

10 errors are generated similar to:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h:9:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:248:39: error: unknown type name 'NSExtensionContext'; did you mean 'NSAnimationContext'?
@Property (nullable, readonly,retain) NSExtensionContext *extensionContext API_AVAILABLE(macos(10.10));

Thanks for coding the project, amazing how annoying a pop in the ears can be every 20 seconds!

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.