Platform: Darwin MacBook-Pro.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64 (Mac OS Sierra 10.12.6)
Kap Version: 1.0.1.1
brew caskRecording error popup window:

Recording without error.
None
I've tried reinstalling and uninstalling throuh brew but no success.
Also downloading the app directly still gives an error.
Getting the same thing, used to work previously but no longer does. Reinstalling didn't help. :(
Darwin Daumantass-MacBook-Air.local 16.0.0 Darwin Kernel Version 16.0.0: Mon Aug 29 17:56:20 PDT 2016; root:xnu-3789.1.32~3/RELEASE_X86_64 x86_64

Are you on the same version as the Original Poster @donnervetter, or are you running a build from master etc.?
Kap version 1.0.1 (1.0.1.170)
Just posting the error and stack track here to make it searchable. Also removing Can't reproduce since we've had multiple other reports.
**Recording Error **
fatal error: unexpectedly found nil while unwrapping an Optional value
Current stack trace:
0 main 0x00000001085e5590 swift_reportError + 132
1 main 0x0000000108602940 _swift_stdlib_reportFatalError + 61
2 main 0x00000001082bc110 specialized specialized StaticString.withUTF8Buffer<A> ((UnsafeBufferPointer<UInt8>) -> A) -> A + 656
3 main 0x0000000108572910 partial apply for (_fatalErrorMessage(StaticString, StaticString, StaticString, UInt, flags : UInt32) -> Never).(closure #2) + 109
4 main 0x00000001082bc110 specialized specialized StaticString.withUTF8Buffer<A> ((UnsafeBufferPointer<UInt8>) -> A) -> A + 656
5 main 0x000000010852d360 specialized _fatalErrorMessage(StaticString, StaticString, StaticString, UInt, flags : UInt32) -> Never + 96
6 main 0x00000001082b9330 Recorder.init(destinationPath : String, fps : String, coordinates : [String], showCursor : Bool, highlightClicks : Bool, displayId : UInt32, audioDeviceId : String) throws -> Recorder + 2453
7 main 0x00000001082ba520 Recorder.__allocating_init(destinationPath : String, fps : String, coordinates : [String], showCursor : Bool, highlightClicks : Bool, displayId : UInt32, audioDeviceId : String) throws -> Recorder + 267
8 main 0x00000001082bd7e0 record() throws -> () + 2515
9 main 0x00000001082bd3f0 main + 168
10 libdyld.dylib 0x00007fff95fd35c8 start + 1
Does anyone know if this only happens with multiple monitor setups? Could it be related to #141?
This also happens without any external monitors hooked up to my macbook pro.
I'm looking through the aperture swift code and I'm finding some places where the error could originate from. I will send a PR to aperture with better error handling (better logging so we can see what goes wrong) and can build a custom Kap with this version (or just provide the aperture binary if you're comfortable switching it out in your Kap.app)
Just to make sure it's nothing silly, could you try switching the fps ?
@sindresorhus i sent this PR to aperture, but later saw that I had based it of an outdated master.
I think we'll get better error with https://github.com/wulkano/aperture/pull/48 ?
@dagvers @donnervetter Can you try the latest build https://kap-artifacts.now.sh/master and see if it's still an issue? There has been a lot of changes since v1.
@sindresorhus it's working! yay
Awesome @donnervetter 馃帀 Let's wait for @dagvers to confirm it too before closing this.

Most helpful comment