mttrb / antipopd Goto Github PK
View Code? Open in Web Editor NEWantipopd is a drop in replacement for Robert Tomsick's antipopd 1.0.2 bash script
antipopd is a drop in replacement for Robert Tomsick's antipopd 1.0.2 bash script
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.
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:
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
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
Seems like itβs not compatible with Big Sur, can someone confirm this or does someone have a solution?
Is it possible to add second timer which will record audio? To prevent clicks on recording.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.