Comments (7)
Oh I will look into it.
If you set the rust flags like this:
$ export RUSTFLAGS=-Zsanitizer=address RUSTDOCFLAGS=-Zsanitizer=address
And run your code with the nightly version, what does the dump say?
from screencapturekit-rs.
Tried doing this. But was unable to get the Sanitizer to work. I see the following issue
Specifically the Please launch the executable with: ....
.
Tried a couple of things but was not able to get rid of it. Do you know how I can get the Address Sanitizer working?
I was able to get the AddressSanitizer to work by explicitly passing in the --target
option. Here's the output -
from screencapturekit-rs.
I also forked the repo and tried running the tests in screencapturekit/src/sc_stream.rs
. Those tests look almost the same as the above code, but those tests pass and work as expected.
from screencapturekit-rs.
Cool that helps!
It's an issue with how something being dropped with the wrong refcount. This will be fixed with my core-foundation pr. but I can fix it here too.
Thanks
from screencapturekit-rs.
Great! Do you have an estimate on by when this'll be available?
Is there some workaround I can try in the meantime?
Also, out of curiosity, how did you figure It's an issue with how something being dropped with the wrong refcount.
?
from screencapturekit-rs.
Fixed and pushed a new version v0.2.2
from screencapturekit-rs.
It was the call to CFRelease at the top which is called via the Id/ShareId traits which calls the CFRelease via its drop trait.
Objective C uses refcounting a similar model as RC and ARC.
The segfault happened in the CMSampleBuffer as it hold references to underlying image/pixelbuffers which was created in a bad way messing up the ref count.
from screencapturekit-rs.
Related Issues (20)
- How do I read the image buffer? HOT 3
- Implement SCContentSharingPicker
- Consider a more permissive license HOT 2
- Audio stream support HOT 3
- Trying to capture screen but not able to pass stream output type HOT 9
- SCStreamFrameInfo.status always return Idle? HOT 1
- Why not use bindgen for screencapturekit-sys? HOT 2
- Better readme HOT 1
- Use rustdoc
- Better error management (No panics)
- Updating stream configuration to use a different pixel format has no effect HOT 3
- Can no longer import SCFrameStatus HOT 1
- minimum_frame_interval not working as expected HOT 3
- After packaged by tarui , it asks to apply for privacy permission, but after this , itdoes not really trigger the application to restart HOT 1
- If I only need to record system voice and don't need to record the screen, is there a way to apply for only the system voice recording permission, instead of applying for the screen capture and voice recording permissions HOT 1
- SCShareableContent::current() blocks code if screen capturing is denied in privacy settings HOT 3
- Fix for Intermittent Crashes When Using get_av_audio_buffer_list
- StreamOutput won't be dropped when SCStream::stop_capture is called
- ContentFilter init method "DisplayIncludingApplicationsExceptingWindows" sends "excludingApplications" and vice-versa HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from screencapturekit-rs.