2,052 questions
0
votes
0
answers
34
views
iOS EXC_BAD_ACCESS when launching HyperVerge KYC camera from React Native Expo app (Android works)
I’m integrating HyperVerge as my KYC provider in a React Native + Expo app.
On Android everything works fine. On iOS, the flow is:
HyperVerge captures the user’s face successfully
When the SDK asks ...
0
votes
0
answers
69
views
Rare EXC_BAD_ACCESS (SIGBUS) KERN_PROTECTION_FAILURE crash when running function?
The following function could run several hundred times with no problem but will occasionally cause a EXC_BAD_ACCESS (SIGBUS). The last time it was a KERN_PROTECTION_FAILURE perhaps meaning it is ...
0
votes
1
answer
77
views
Swift Error to NSError crash on old macOS
I've been trying to fix a crash in an app that happens on macOS 10.13. It's hard to debug as I need to run 10.13 in a VM on another mac, but i've narrowed it down and simplified it to the following ...
1
vote
0
answers
183
views
C++ sigbus error when trying to catch an exception
I have come across an interesting case, where C++ gives me a bus error, when I am trying to catch an exception.
I created a minimal example to reproduce the error:
#include <iostream>
using ...
1
vote
0
answers
78
views
EXC_BAD_ACCESS on Init with Escaping Closure
I am trying to initialize a class with an escaping closure inside my unit test, but it always crash with EXC_BAD_ACCESS (code=1, address=0x0). Here my code for declaring the class:
public class ...
-1
votes
1
answer
92
views
C++: EXC_BAD_ACCESS when operator= Was Overloaded
Previously asked operator= overload error and the question was closed due to being duplicate, tried to fix the code, and a new error emerged..
The old error is gone after const qualifying,
but a new ...
0
votes
0
answers
43
views
C++: Operator= Overlaoding Gives Error "function operator= does not match" [duplicate]
Straight to the point, the operator = overloading gives an error even both sides of = are of the same type.
main.cpp
ItemType data;
DoublyIterator<ItemType> itor(m_List);
data = itor.Next(); // ...
35
votes
4
answers
11k
views
Crash in nanopb iOS 17.4.0
My app started crashing right on startup on iOS 17.4. Prior this version everything was ok. Crashlytics says this is some crash in nanopb on main thread in pb_check_proto3_default_value + 342.
Crashed:...
1
vote
0
answers
96
views
EXC_BAD_ACCESS during using std::vector in Swift
I am trying to use std::vector in Swift code according to what is written in Swift documentation (https://www.swift.org/documentation/cxx-interop/) and Apple tutorial (https://developer.apple.com/...
1
vote
0
answers
110
views
iOS app crashing only when I capture image from camera not gallery, since last week
Here are following are the code base in which crash happen. I tried to find the issue and try with the leak and instruments but still not able to fix it.
I had two options camera and gallery from the ...
0
votes
0
answers
52
views
EXEC_BAD_ACCESS - When trying to access a method after storyBoard Initialisation
I am trying to write UT's for my viewController and I am initialising my viewController in the below way :
var sut: viewController!
override func setUp() {
super.setUp()
let storyboard = ...
0
votes
1
answer
77
views
EXC_BAD_ACCESS when call method with Custom Type from Unity to iOS
I try to build Unity to iOS.
And I have a method call from Unity to iOS,
I can see the details when I hover my mouse on the variable, but when I call the variable, It throw EXC_BAD_ACCESS.
Why? Any ...
1
vote
2
answers
85
views
Assigning the value of 2D array element using (int**) pointer results in EXC_BAD_ACCESS
I am a MacOS user and I want to write a function in C that assigns every element of a 2 dimensional (dynamically allocated) array a value
of 0. But when I compile and run the program an error message
...
1
vote
0
answers
56
views
C++ EXC_BAD_ACCESS Error in Prim's Algorithm Implementation
I am working on implementing Prim's algorithm in C++ to find the Minimum Spanning Tree (MST). However, I've encountered a persistent "EXC_BAD_ACCESS" error that occurs at the line key[src] = ...
0
votes
0
answers
19
views
What is causing this EXC_BAD_ACCESS (code=EXC_I386_GPFLT) [duplicate]
I'm using asmjit to JIT compile a scripting language to X86-64 machine code. When I jump into my JIT compiled functions, they seem to work, but when they call one of my C++ functions, which in turn ...
1
vote
0
answers
117
views
EXC_BAD_ACCESS (code=1, address=0x18) and -[NSTaggedPointerString objectForKey:]: unrecognized selector sent to instance 0x8000000000000000
In Xcode, Swift language. I have a class (Class3) which contains only variables, not functions and other things:
class Class3 {
var x:Int = Int()
var y:String = String()
....
}
Then another class (...
1
vote
0
answers
39
views
EXC_BAD_ACCESS error when removing row from TabluarData DataFrame in Swift
I am working with data in Swift using the TabularData framework. I load data from a CSV file into a DataFrame, then copy the data into a second DataFrame, and finally remove a row from the second ...
1
vote
1
answer
521
views
SwiftUI Intermittent Crash in iOS 16.3.1 and above
I'm working on a SwiftUI app, in profile tab it has a logout button. Intermittent crash would happen when clicking on this logout button on iOS version 16.3.1 or 16.4.1, but no crash on iOS 15 and iOS ...
0
votes
0
answers
90
views
EXC_BAD_ACCESS when nslog this magic string
I stumbled across that when I used NSLOG to print a string of URLs, I got an EXC_BAD_ACCESS crash. Then I know that if the string contains a percent sign %, I need to write
NSLog("%@", ...
-1
votes
1
answer
132
views
Thread 1: EXC_BAD_ACCESS (code=2, address=0x16bb7fff8) crashing only physical devices and not in Simulator while initiating items from Struct
I have an issue with my app crashing on physical devices while it tries to initiate the my cards.
(simulator works fine)
I have a struct that basically initialises 61 cards like this:
extension ...
1
vote
0
answers
64
views
UIImage extension to create image from string - How to find EXC_BAD_ACCESS cause?
I have created an UIImage extension to create an image from a string (using an icon font). Most of the time it works without any problem, but sometimes it caused the app to crash with a EXC_BAD_ACCESS....
0
votes
2
answers
90
views
Problems with two-dimensional vector in c++
I'm trying to write a class in c++, that presents a group of people (each person has its own row), and the numbers in the rows represent this person's friends. If person a is person's b friend, then ...
1
vote
0
answers
503
views
Thread 17: EXC_BAD_ACCESS (code=257, address=0x1) in swift
This is my func where the crash is occurring:
//KabaSDKThunk.swift
func isStarted() throws -> NSNumber {
do {
try sdk.isStarted() //Crash on this line
print("...
-1
votes
1
answer
58
views
EXC_BAD_ACCESS(code=2, address= ... ) occurs when the size of target array exceeds particular number while sorting
I tried to compare the time spent on sorting of 3 algorithms: merge, shell, quick. For the merge sorting, I implemented linked list with struct for the in-place sorting - just switching the address of ...
1
vote
1
answer
2k
views
Occasional EXC_BAD_ACCESS crash
Every now and then, my app crashes with a EXC_BAD_ACCESS when accessing a Dictionary, although the object exists and has been accessed many times before the crash without any problem.
It is created at ...
0
votes
1
answer
78
views
EXC_BAD_ACCESS (Code = 1, address = 0x30000008) issue generated
I'm trying to create a code to remove the same elements in arrays. The problem is EXC_BAD_ACCESS (Code = 1, address = 0x30000008) issue. My code is:
`
#include <math.h>
#include <stdio.h>
#...
1
vote
0
answers
54
views
Array deallocating after a void function call modifies the array. C++
I just wanted some help understanding this concept. I have a custom hash map programming I built for a school assignment. I declare a dynamic int array of a given size (11), hash user-inputted keys, ...
1
vote
1
answer
174
views
Bad Memory Access for declared Structs with Arrays in C++ (using Xcode)
I have the following C++ program (code below) on Xcode 13.1 for macOS Big Sur Version 11.7:
header_example.hpp:
1.1) type_of_struct_a is a struct type which contains a 3D array of size [3][3][3] in ...
0
votes
0
answers
1k
views
Swift: EXC_BAD_ACCESS (code=2) when accessing a property that was just set
Running into crash that I can't seem to truly root cause. Before I dive into the core crash, let me try to explain as best I can the architecture we have as I feel like an aspect or piece of it could ...
0
votes
0
answers
226
views
my flutter engine.profiler (52): EXC_BAD_ACCESS (code=EXC_I386_GPFLT) in swift
I need to call the flutter engine all time
.So I given the code as below.
In the appdelegate.h file
@property (nonatomic,strong) FlutterEngine *flutterEngine;
In the appdelegate.m file
- (BOOL)...
0
votes
0
answers
30
views
XCode EXC_BAD_ACCESS by Changing Variable Name
Take this simple program and run it in Xcode:
#include <stdio.h>
#include "inttypes.h"
struct {
int32_t nwgts;
;
} clbint_;
#define clbint_1 clbint_
int main()
{
...
1
vote
2
answers
222
views
SceneKit physics contact method crashes with EXC_BAD_ACCESS
In a SceneKit project, the following method is intermittently (but consistently) crashing with EXC_BAD_ACCESS. Specifically, it says Thread 1: EXC_BAD_ACCESS (code=1, address=0x0).
contactTestBetween(...
1
vote
1
answer
602
views
EXC_BAD_ACCESS code=257 at SecKeyIsAlgorithmSupported
I have a KeyChain class where I sign a string.
I got Thread 8: EXC_BAD_ACCESS (code=257, address=0x3fd574bc6a7ef9db) error at SecKeyIsAlgorithmSupported function. I could not figure out why this error ...
1
vote
1
answer
117
views
EXC BAD ACCESS TREAD in c
it gives me EXC_BAD_ACCESS (code=1, address=0xc) at the strcmp in the while (strcmp(parola, temp->next->parola) picture of the xcode debugging session
if (temp->next != NULL){
if (...
0
votes
1
answer
357
views
What does that code mean in exception error "Thread 3: EXC_BAD_ACCESS (code=2, address=0x16dbc7ff0)"?
I got a run time error during a debug run of my Xcode project for iOS. The project was running on an iPhone 8 device running iOS 15.5. I am using Xcode version 13.4.1 on a Mac Pro running macOS ...
0
votes
1
answer
221
views
Getting a EXC_BAD_ACCESS when trying to initialize my custom Cell in TableViewController
My application fetches data from a mock API.
Using a custom cell, I display the names of authors on my landing page viewController.
When I click on a cell, it takes that author's book information to ...
1
vote
1
answer
309
views
EXC_BAD_ACCESS (code=259) when I develop my coroutine on arm64
guys. I am debugging my project with lldb. And I get an error as follows.
Process 83444 stopped
* thread #2, stop reason = EXC_BAD_ACCESS (code=259, address=0x10080c8e8)
frame #0: ...
0
votes
0
answers
183
views
My iOS App is crashing with EXC_BAD_ACCESS while trying to load certificate into GStreamer. gst_ios_init()
I want to update the GStreamer version of my iOS App from 1.16.3 to 1.18.6.
The main change that I am aware of, is that now GStreamer 1.18.x only works with openssl (gnutls cannot be used anymore).
...
0
votes
1
answer
408
views
Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) on vector insert
I am trying to insert an element into a vector using the .insert(<#const_iterator __position#>, <#const_reference __x#>)
This is my code:
hpp:
typedef int elementType;
class Heap{
private:...
0
votes
1
answer
891
views
XCODE: Thread 1: EXC_BAD_ACCESS (code=1, address=0x68) on fscanf
I'm using the following code below and I'm receiving a Thread 1: EXC_BAD_ACCESS (code=1, address=0x68) error. What are some ways I can execute this better? I'm simply loading a txt file that has ...
0
votes
0
answers
3k
views
EXC_BAD_ACCESS crash when using the variable in the background
I have react native application with background task.
I want to detect if the app started in the background, prevent the react native bridge initialization, and postpone it until the app become active
...
0
votes
1
answer
88
views
-[WKSyntheticTapGestureRecognizer setState:] crash
We have encountered the crash : -[WKSyntheticTapGestureRecognizer setState:] in our app.I am also attaching crash report for the reference:
Crashed: com.apple.main-thread
0 libobjc.A.dylib ...
0
votes
0
answers
403
views
EXC_BAD_ACCESS KERN_INVALID_ADDRESS Crash in our app
We are facing a crash in our app but we are not able to get the exact area of the crash.
I am attaching the crash report for the reference.
Crashed: Thread
0 libobjc.A.dylib 0x2470 ...
0
votes
2
answers
372
views
Why does my Xamarin.Mac application crash when I enable the Hardened Runtime in order to notarize it?
I am developping an app using .NET Framework 4.5.2 under Visual Studio for Mac.
Apple has added security features to their latest Mac versions, so I'd like to notarize the application so that ...
0
votes
1
answer
268
views
OpenCV BackgroundSubtractorMOG2 algorithm crashes when executed as part of my Swift UI app
I'm creating a Swift UI application to process images on a device and use the OpenCV library, specifically the BackgroundSubtractor algorithm. I was able to follow the OpenCV iOS guide and perform ...
0
votes
1
answer
752
views
Thread 1: EXC_BAD_ACCESS (code=50, address=0x113553871)
I recently took over a project for an iOS app. I have very limited Xcode experience and am trying to learn, but I don't really know what I'm looking at when it comes to the debugging process. I was ...
2
votes
1
answer
114
views
BAD_ACCESS_ERR in a simple string copy function in c
I'm implementing a basic string copy function in c like so:
void copy(char* src, char* dst) {
while (*src) {
*dst = *src;
dst++, src++;
}
}
I call it like so:
int main(int ...
0
votes
1
answer
173
views
macOS statusBarApp without Storyboard create and close settingsWindow causing EXC_BAD_ACCESS
I have a MacOS cocoa statusBarApp without any Storyboard with main.swift file.
The statusBarIcon shows up a Menu which presents a custom view with a button, which should open a settingsWindow - which ...
0
votes
1
answer
640
views
EXC_BAD_ACCESS KERN_INVALID_ADDRESS on Struct Decodable.init(from:)
I have a function that can be run up to 2 times simultaneously to fetch information from an API. In Google Crashlytics, I see quite a few users affected by this crash but I've never seen anything like ...
1
vote
2
answers
4k
views
Finding the cause of EXC_BAD_ACCESS Code=1 on startup of Swift iOS App
I'm writing a Swift iOS app in XCode 12.5 that lets you take notes on "events" (interactions) with your contacts. After making some changes, launching the app on my phone yielded an ...