crash

Why does my program crash when using fread in the constructor?

你离开我真会死。 提交于 2019-12-30 14:38:35
问题 I have a small program, written in C++ that contains a class with a large array. The class looks like this: class Test { public: Test(); ... private: int myarray[45000000]; }; Now, this array is read in from a file. I would like to do this with the constructor directly, instead of bothering to call any extra functions. The array only needs to be read in once, and afterwards will not change anymore. It has the exact size specified. My constructor looks like this: Test() { memset(myarray, 0,

Unable to launch /private/var/containers/Bundle/Application/

余生长醉 提交于 2019-12-30 10:49:25
问题 I've been trying to test an app on an iOS 12 device, but every time I build it, it successfully builds on the device (my iPhone or iPad) but crashes and I receive this message: Unable to launch /private/var/containers/Bundle/Application/ (I'm using Xcode 10 beta 3 and Swift 4.2) 回答1: Check if you already trusted the author of the app in your development device: Settings -> General -> Profiles & Device Management -> Company name -> Trust the app if not done yet. I hope this helps 🙂 回答2: I

App crashes upgrading sqlite database first time

穿精又带淫゛_ 提交于 2019-12-30 09:42:09
问题 my app experiences a crash when the sqlite database is updated the first time. Reloading the app, it works fine from then on. I'm guessing this has to do with the onUpgrade function then. I can't seem to locate where the problem is, any advice very appreciated. Thanks in advance. DatabaseHelper: public class DatabaseHelper extends SQLiteOpenHelper { private static String DB_PATH = "/data/data/jp.atomicideas.ne/databases/"; private static String DB_NAME = "dataset"; public static final int DB

App crashes upgrading sqlite database first time

好久不见. 提交于 2019-12-30 09:42:06
问题 my app experiences a crash when the sqlite database is updated the first time. Reloading the app, it works fine from then on. I'm guessing this has to do with the onUpgrade function then. I can't seem to locate where the problem is, any advice very appreciated. Thanks in advance. DatabaseHelper: public class DatabaseHelper extends SQLiteOpenHelper { private static String DB_PATH = "/data/data/jp.atomicideas.ne/databases/"; private static String DB_NAME = "dataset"; public static final int DB

Spritekit crashes when entering background

橙三吉。 提交于 2019-12-30 08:10:12
问题 Allright guys, I've been developing an app in which I have a NSMutableDictionary with an SKAction object in it. The SKAction is for playing a sound. This all works well, except ... the app crashes upon entering background with the following stack trace: * thread #1: tid = 0x187d7, 0x3461b932 libGPUSupportMercury.dylib`gpus_ReturnNotPermittedKillClient + 10, queue = 'com.apple.spritekit.renderQueue, stop reason = EXC_BAD_ACCESS (code=1, address=0x1) frame #0: 0x3461b932 libGPUSupportMercury

Monotouch + UIWebView = Random Crashes

本小妞迷上赌 提交于 2019-12-30 06:57:11
问题 I'm using the latest stable releases of Mono/Monotouch/MonoDevelop on a iOS 5.0 iPhone and iPad. I have a UIWebView that in the emulator never crashes however randomly on the actual devices it crashes on EXC_BAD_ACCESS. Based on everything I've read with UIWebViews that most likely occurs when the UIWebView gets disposed before it finishes loading. Here is the code I am using in my ViewDidLoad(): var urlAddress = BASE_URL + _page; var nsURL = new NSUrl(urlAddress); var nsURLRequest = new

swift code crash ,log : dyld: Library not loaded: @rpath/libswiftCore.dylib

巧了我就是萌 提交于 2019-12-30 04:42:04
问题 I debug a simple swift app , it can normally running in the simulator, but on a real machine running on the crash immediately . system version , ios 8 xcode version , 6.0.1 crash log dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app/sMdp Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/002E2F03-EE10-433B-B95F-AE3760E777DA/sMdp.app

crash - material design android 5.0

只愿长相守 提交于 2019-12-30 01:40:29
问题 I have a big problem with my app. It crashes and I don't know why. In my app I have a Activity with a listview and a customlistviewadapter and a second Detailactivity . I want to add the material design from Android Lollipop and there is my problem. I added the nice Activity Transaction between the two Activities . I'm taking the picture and the title from the listviewelement out of the listview and using a SparseArray<Bitmap> to transfer the picture, a intent and ActivityOptions to transfer

C/C++ Char Pointer Crash

a 夏天 提交于 2019-12-29 07:56:09
问题 Let's say that a function which returns a fixed ‘random text’ string is written like char *Function1() { return “Some text”; } then the program could crash if it accidentally tried to alter the value doing Function1()[1]=’a’; What are the square brackets after the function call attempting to do that would make the program crash? If you're familiar with this, any explanation would be greatly appreciated! 回答1: The string you're returning in the function is usually stored in a read-only part of

what to do if debug runs fine, but release crashes

杀马特。学长 韩版系。学妹 提交于 2019-12-29 07:47:30
问题 I have an application that runs just fine in the debug build, but when I start it in the release build, I get a unhandled Exception at 0x0043b134 in myapp.exe: 0xC0000005: Access violation while reading at position 0x004bd96c If I click on 'break' it tells me that there are no symbols loaded and the source code can't be displayed. What can I do in such a situation to track down the problem? 回答1: This kind of problem is often due to unitialized variables. I'd start there looking for your