Creating a MoltenVK Buffer Crashes iOS App Only When Downloaded Through App Store - vulkan

I have been developing a game in c++ using vulkan and moltenVK for porting to iOS and Mac. The game works fine when I run it through XCode on my iPhone, but when I distribute the app through TestFlight, it crashes immediately. Here is some of the crash report
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000048
Exception Codes: 0x0000000000000001, 0x0000000000000048
VM Region Info: 0x48 is not in any region. Bytes before following region: 4367466424
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104524000-104798000 [ 2512K] r-x/r-x SM=COW ...ons And Mania
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [5132]
And the stack trace points to the first time my program calls MVKBuffer::MVKBuffer() via vkCreateBuffer.
I've verified that the build works when running from my machine, it's only when I build for a generic iOS device (arm64) and distribute through the app store that this is a problem.
Any idea why I would get a segfault when creating buffers?

Related

IntelliJ 2022.2 crashes on on MacOS opening project via "recently opened"

Since upgrading to Intellij IDEA 2022.2 the IDE crashes frequently, when I open a project via "File | Open Recent".
After that the IDE crashes on startup.
To solve the immediate problem, I can open /Users//Library/Application\ Support/IntelliJIdea2018.2/optionsJetBrains/IntelliJIdea2022.2/options/recentProjects.xml and delete opened="true" from the -Tag of the project causing the problem. But this only fixes it temporarily.
Apple Crash Report
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Process: idea [23792]
Path: /Applications/IntelliJ IDEA.app/Contents/MacOS/idea
Identifier: com.jetbrains.intellij
Version: 2022.2.3 (IU-222.4345.14)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
...
Date/Time: 2022-11-08 08:36:23.9671 +0100
OS Version: macOS 12.6.1 (21G217)
Report Version: 12
Bridge OS Version: 7.0 (20P411)
...
Time Awake Since Boot: 69000 seconds
Time Since Wake: 762 seconds
System Integrity Protection: enabled
Crashed Thread: 40 Java: Java2D Queue Flusher
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
VM Region Info: 0 is not in any region. Bytes before following region: 4367908864
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 104590000-104598000 [ 32K] r-x/r-x SM=COW ...ts/MacOS/idea
Kernel Triage:
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get
VM - Compressor failed a blocking pager_get

Xcode 8 crashes all the time

I open my project(mac app) in xcode, i launch the simulator, everything works fine. If i enter some specific characters in a textfield, xcode crashes with the following report but the simulator keeps working.
I have uninstalled and installed xcode. i deleted the developer folder, nothing of these resolved the problem.
Any ideas why is this happening?
Crashed Thread: 0 Dispatch queue: appendConsoleItemLock
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000018
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]

xcode 5 crashes while opening xib developed in xcode6

I want to test my app for ios6. So, i downloaded xcode 5. In xcode5 While opening xib, xcode crashes with following log. Kindly suggest a solution.
Process: Xcode [2807]
Path: /Applications/Xcode 2.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 5.0 (3332.25)
Build Info: IDEApplication-3332025000000000~2
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Xcode [2807]
User ID: 501
Date/Time: 2015-07-14 12:55:38.017 +0500
OS Version: Mac OS X 10.10.3 (14D131)
Report Version: 11
Anonymous UUID: F20A6FAB-50EF-797B-17ED-DCA402DAE3BA
Time Awake Since Boot: 11000 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 5A1413
ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-3742/IBPlugin/Utilities/IBObjectMarshalling.m:36
Details: Failed to launch cocoa touch tool: Error Domain=com.apple.InterfaceBuilder Code=-1 "Interface Builder encountered an error communicating with the iOS Simulator." UserInfo=0x7fa34bda8380 {NSUnderlyingError=0x7fa34b78c2f0 "The operation couldn’t be completed. (IBMessageChannelErrorDomain error 1.)", NSLocalizedDescription=Interface Builder encountered an error communicating with the iOS Simulator., NSLocalizedRecoverySuggestion=Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information., NSLocalizedFailureReason="Interface Builder Cocoa Touch Tool" (2879) failed to launch and exited with status (null), signal 6.}
Object: <NSThread: 0x7fa341c2bb30>
Method: -cocoaTouchToolForTargetRuntime:
Thread: <NSThread: 0x7fa341c2bb30>{number = 1, name = main}
Hints: None
In the File Inspector of the XIB file, there's a "Interface Builder Document" popup and one of choices is "Opens in". And from there you can select "Xcode 5".
If you have auto-layout turned on, then the lowest you can go is Xcode 5.1.

TouchID crash on some iPhone 5S devices

My app crashes on some iPhone 5S device (only some) with the error:
Fatal Exception: NSInternalInconsistencyException Unexpected error:
Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be
completed. (Cocoa error 4097.)" (connection to service named
com.apple.CoreAuthentication.daemon) UserInfo=0x174461dc0
{NSDebugDescription=connection to service named
com.apple.CoreAuthentication.daemon}
The line which breaks the app is the following:
LAContext().canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: nil)
Is this an Apple bug?
What am I doing wrong here?
It's an iOS bug. When an API returns a 4097 error, it usually means that the system daemon that was responsible for handling your request crashed. You can look for crash logs from the device and file a bug with Apple.

XCode6 keeps crashing when I try to export ad-hoc build

[UPDATE]
Problem has been solved after going Apple dev site and accept new Term and Condition agreement, this is the most strange problem I ever seen.
I am able to build and run app without any problem until create ad-hoc build, Xcode6 (version 6.0.1) will always crash after choosing account and team and throw below exception:
Process: Xcode [1861]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Identifier: com.apple.dt.Xcode
Version: 6.0.1 (6528)
Build Info: IDEFrameworks-6528000000000000~2
App Item ID: 497799835
App External ID: 712682811
Code Type: X86-64 (Native)
Parent Process: launchd [258]
Responsible: Xcode [1861]
User ID: 501
Date/Time: 2014-09-26 13:07:23.360 +0700
OS Version: Mac OS X 10.9.5 (13F34)
Report Version: 11
Anonymous UUID: E2DD7234-2A56-B169-B657-56CFED90D316
Crashed Thread: 10 Dispatch queue: com.apple.root.default-priority
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
ProductBuildVersion: 6A317
UNCAUGHT EXCEPTION (NSInvalidArgumentException): *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[1]
UserInfo: (null)
Hints: None
Is anyone experiencing this? please help.
Note: I already choose team in Target config.