标签: sigabrt

PresentViewController在iOS 4.3上崩溃,但在iOS 5上没有

任何人都可以告诉我为什么这个代码崩溃与SIGABRT无法识别的选择器发送到实例,在4.3模拟器上,但在iOS 5模拟器上工作得很好?

matchSetup = [[viewMatchSetup alloc]initWithNibName:@"viewMatchSetup" bundle:nil];
[matchSetup setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[self presentViewController:matchSetup animated:YES completion:NULL];
Run Code Online (Sandbox Code Playgroud)

提前致谢

FIX:[self presentModalViewController:matchSetup animated:YES]; //模态是必需的更改

crash xcode sigabrt ios

3
推荐指数
1
解决办法
3612
查看次数

另一个这个类不是键值imageView的键值编码兼容

我已经坚持这个问题多年了,我已经浏览堆栈溢出的答案,但他们似乎没有工作.我尝试删除所有原始连接,然后再次连接它们没有运气.一切都编译好,但我收到这个错误:

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason:   '[<UIApplication 0x6a067d0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageView.'
*** First throw call stack:
(0x11e4052 0x1375d0a 0x11e3f11 0xa4c032 0x9bdf7b 0x9bdeeb 0x9d8d60 0x2cb91a 0x11e5e1a 0x114f821 0x2ca46e 0x2cc010 0xac14a 0xac461 0xab7c0 0xba743 0xbb1f8 0xaeaa9 0x1c84fa9 0x11b81c5 0x111d022 0x111b90a 0x111adb4 0x111accb 0xab2a7 0xaca9b 0x2072 0x1fe5)
terminate called throwing an exception
Run Code Online (Sandbox Code Playgroud)

我也在我的main.m中收到"线程1接收信号"SIGABRT"消息

0x000ac97f  <+0891>  mov    %eax,(%esp)
0x000ac982  <+0894>  call   0x5478b2 <dyld_stub_objc_msgSend>
0x000ac987  <+0899>  mov    %eax,%esi
0x000ac989  <+0901>  mov    0x69940e(%edi),%eax …
Run Code Online (Sandbox Code Playgroud)

xcode key objective-c sigabrt

3
推荐指数
1
解决办法
3669
查看次数

使用pushViewController时出现SIGABRT错误

我不确定为什么在我去pushViewController时遇到SIGABRT错误.我将mpCustomFoodController作为IBOUTLET并在我的nib文件中有一个viewController和一个等待接收它的文件但是每次都在这个调用上失败.

 -(IBAction)createNewCustomFood:(id)sender{
    [self cancelButtonColorChange:sender];
    self.title = @"Cancel";

   mpCustomFoodController = [[MPCustomFood alloc]initWithNibName:@"MPCustomFood" bundle:nil];
   //this is where the error occurs once is calls this
   [self.navigationController pushViewController:mpCustomFoodController animated:YES];
   //this will be calling the new view
Run Code Online (Sandbox Code Playgroud)

}

iphone pushviewcontroller sigabrt ios

3
推荐指数
1
解决办法
1415
查看次数

Firebase未明确配置

我不知道为什么这不起作用我的Firebase配置了.这是我的AppDelegate.swift文件的屏幕截图.这是我的控制台日志:

2017-05-29 17:52:53.141 Study M8[31592] <Error> [Firebase/Core][I-COR000003] The default Firebase app has not yet been configured. Add [FIRApp configure] to your application initialization. Read more: https://firebase.google.com/docs/ios/setup#initialize_firebase_in_your_app.
2017-05-29 17:52:53.184 Study M8[31592:1051241] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The default FIRApp instance must be configured before the default FIRAuthinstance can be initialized. One way to ensure that is to call `[FIRApp configure];` is called in `application:didFinishLaunchingWithOptions:`.'
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010a445b0b __exceptionPreprocess + …
Run Code Online (Sandbox Code Playgroud)

xcode sigabrt ios firebase swift

3
推荐指数
1
解决办法
2094
查看次数

在 SPOJ 上提交代码会出现运行时错误 (SIGABRT)

我在 SPOJ 上做了一个练习来练习高级算法。


问题陈述如下:

Harish 去超市为他的 'n' 个朋友买了正好 'k' 公斤的苹果。超市真的很奇怪。物品的定价是非常不同的。他去了苹果区询问价格。推销员给了他一张卡片,他在卡片上发现苹果的价格不是每公斤。苹果被装在盖子里,每个包含“x”公斤苹果,x > 0,“x”是一个整数。“x”公斤包裹的价值为“y”卢比。因此,标语牌包含一个表,其中条目“y”表示“x”公斤包的价格。如果 'y' 是 -1,则表示相应的数据包不可用。现在由于苹果只能以包形式提供,他决定最多为他的“n”个朋友购买“n”包,即他不会购买超过 n 包的苹果。Harish 非常喜欢他的朋友,所以他不想让他的朋友失望。


这是我用来解决问题的代码:

#include <algorithm>
#include <iostream>
#include <vector>

using std::cout;
using std::cin;
using std::vector;
using std::endl;

int MinValueOf(int a, int b)
{
    return (a < b) ? a : b;
}
int BuyingApple(vector<int> PriceaTag, int Friends, int KilogramsToBuy)
{
    vector<vector<int>> Table(Friends + 1, vector<int>(KilogramsToBuy + 1, 0));
    for(int i = 1; i <= Friends; i++)
    {
        for(int j = 0; j …
Run Code Online (Sandbox Code Playgroud)

c++ runtime-error sigabrt

3
推荐指数
1
解决办法
306
查看次数

向量中的push_back和for循环返回SIGABRT信号(信号6)(C++)

我正在制作一个C++游戏,它要求我将36个数字初始化为一个向量.您无法使用初始化列表初始化向量,因此我创建了一个while循环来更快地初始化它.我想让它将每个数字中的4个从2推回到10,所以我使用一个名为4th的int来检查循环的数量是否是4的倍数.如果是,它会改变推回的数字下一个数字.但是,当我运行它时,我得到了SIGABRT.但是,它必须是第四个问题,因为当我拿出它时,它没有给出信号.这是程序:

for (int i; i < 36;) {
    int fourth = 0;
    fourth++;
    fourth%=4;
    vec.push_back(i);
    if (fourth == 0) {
        i++;
    }
}
Run Code Online (Sandbox Code Playgroud)

请帮忙!

c++ vector sigabrt

2
推荐指数
1
解决办法
1502
查看次数

为什么这个QT应用程序会退出SIGABRT信号?

我是Qt的新手.所以我开始重新实现一个入门示例:链接.

但是我关闭窗口时会收到SIGABRT信号.其原因很明显是由于一些内存管理错误.

您可以在下面找到callstack和相关代码.该行editWindow.setLayout(&layout);导致错误.布局类是否在销毁时删除小部件,因此要求拥有它们?

什么是这种行为的原因?以及如何解决它?

最好的祝福.

信息
调用
调用堆栈

资源

  QPushButton testButton("Test");

  QVBoxLayout layout;
  layout.addWidget(&testButton);

  QWidget editWindow;
  // the following line is the source of the error
  editWindow.setLayout(&layout);
  editWindow.show();

  int val = app.exec();
Run Code Online (Sandbox Code Playgroud)

c++ opengl qt4 sigabrt

2
推荐指数
1
解决办法
4984
查看次数

如何使用我的应用修复此SIGABRT错误?

我目前正在Xcode 4中为iPhone开发一个应用程序,我遇到了这个错误,"线程1:程序接收信号:SIGABRT",这个错误在我的main.m代码中.

//
//  main.m
//  MyCard
//
//  Created by Nazar Gren on 2/2/12.
//  Copyright (c) 2012 Nazar Gren. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "mycardAppDelegate.h"

int main(int argc, char *argv[])
{
     @autoreleasepool {
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([mycardAppDelegate         class]));
     }
 }
Run Code Online (Sandbox Code Playgroud)

我的错误出现在@autorelease池行下面的行上.在调试器中,我收到此消息,"这通常意味着此进程的另一个实例已在运行或挂在调试器中." 只有当我尝试调试我的应用程序时才会出现此错误.我的应用程序甚至没有运行.有人可以帮忙吗?这将不胜感激.

iphone sdk sigabrt ios

2
推荐指数
1
解决办法
9578
查看次数

“Sigabrt 错误” - Codechef

以下代码在我的 DEV-C++ 编译器中完美运行,但是当我在 codechef 中提交时,运行 3-4 秒后显示“SIGABRT ERROR”。我已经研究了这个错误,并尽我所能调试,但即使一周后我也无法调试。请帮忙 !!提前致谢。

参考问题是http://www.codechef.com/problems/LOWSUM

enter code here


void selsort(long long *ssum,long long len)
{
        long long low;
    for(long long i=0;i<len;i++)
    {

    low = ssum[i];
    long long pos=i;
    for(int j=i+1;j<len;j++)
    {

        if(ssum[j]<low)
        {
            low = ssum[j];
            pos = j;

        }

    }


    ssum[pos] = ssum[i];
    ssum[i] = low;
}




}

int main()
{

int t,k,q;
cin>>t;

for(int i=0;i<t;++i)
{
    cin>>k;
    cin>>q;
    long long sq = k*k;

    long long *mot=NULL,*sat=NULL;
    mot = new long long [k]; …
Run Code Online (Sandbox Code Playgroud)

runtime sigabrt

2
推荐指数
1
解决办法
3万
查看次数

C - 错误是"free():下一个大小无效(正常)"

我只是找不到导致这个问题的原因.

MYSQL *startup(unsigned char *path_to_file, int size_of_path) {
MYSQL *con;
bool path_is_file = false;
bool path_is_directory = false;
FILE *startup_file;
int i;
unsigned char buffer[LINEBUFFERSIZE];
unsigned char string[LINEBUFFERSIZE];
unsigned char c;

//Allocate memory for the new file path
unsigned char *path;
path = (unsigned char *) malloc(size_of_path);
if(path == NULL)
    error("Could not allocate memory for path to file.\nIn startup()\n");

//Check if startup file exists or if it is a directory
//Bug is somewehre here!!!!
struct stat s;
printf("%s", path_to_file);
if(stat(path_to_file, …
Run Code Online (Sandbox Code Playgroud)

gdb valgrind pointers sigabrt

2
推荐指数
1
解决办法
2万
查看次数