草庐IT

something_bad_happened_exception

全部标签

ios - MPNowPlayingInfoCenter 抛出 EXC_BAD_ACCESS

我正在制作一个播放音频的应用程序,并且我已经对其进行了设置,以便通过MPNowPlayingInfoCenter更新锁定屏幕,但是我遇到了一个问题。在看似随机的时间,我在尝试更新正在播放的信息时收到EXC_BAD_ACCESS错误。这是这样做的代码:-(void)updatePlayback{if(!active)return;NowPlayingController*npc=[AudioControllernowPlayingController];CMTimeelapsed=player.currentTime;Float64elInterval=CMTimeGetSeconds(

ios - react native -RCTFatalException : Unhandled JS Exception: "version" is a required argument

我正在做一个ReactNative应用程序(nativereact:0.43.4)我在iOS上运行Release模式时遇到问题。我有Pod(Crashlytics),我正在通过Workspace项目运行我的应用程序。在Debug架构上它运行没有问题,当我切换到Release时它抛出这个异常:***Terminatingappduetouncaughtexception'RCTFatalException:UnhandledJSException:"version"isarequiredargument.',reason:'UnhandledJSException:"version"is

iphone - EXC_BAD_ACCESS -iPhone objective-c

我一直在尝试这个Twitterapi的东西,它真的很令人困惑......使用以下代码时,我一直收到EXC_BAD_ACCESS错误访问...这里有什么问题?NSURL*followingURL=[NSURLURLWithString:@"https://api.twitter.com/1/users/lookup.json"];//Passintheparameters(basically'.ids.json?screen_name=[screen_name]')idfromIntToNum=[NSNumbernumberWithInteger:friID];NSDictionary*

iphone - 内存警告后的 EXC_BAD_ACCESS

在收到内存警告后,我的应用程序出现了EXC_BAD_ACCESS问题。这就是我正在测试的方式:我写了一个简单的应用程序,只分配内存但不释放它。在我分配了大量内存后,只剩下大约14MB的可用内存,我切换到我的主应用程序。我立即在didReceiveMemoryWarning中收到内存警告。片刻之后,我的应用程序在一个在UIButton中设置图像的函数中崩溃:-(void)activateRecordButton{UIImage*image=[UIImageimageNamed:@"audioRecordOn"];[recButtonsetImage:imageforState:UICon

iphone - EXC_BAD_ACCESS (code=2 or code 1) 调用按钮 Action 时

我正在使用iCarouselLibrary我遇到了一些问题。在控件演示示例项目中,使用了一个XIB文件,View设置如下:-(UIView*)carousel:(iCarousel*)carouselviewForItemAtIndex:(NSUInteger)indexreusingView:(UIView*)view{if(!view){//loadnewitemviewinstancefromnib//controleventsareboundtoviewcontrollerinnibfile//notethatitisonlysafetousethereusingViewifw

ios - 更改 nsdictionary 中的 bool 值时出现 EXC_BAD_ACCESS

我有一个nsdictionaries的array,每个字典都有一个boolean值,我想改变boolean用户选择行时的值。但不知何故我得到了exc_bad_access。这是设置字典数组的方式:self.choosedfiles=[[NSMutableArrayalloc]init];for(NSString*sinfileListINDoc){NSArray*partialDates=[scomponentsSeparatedByString:@"."];//splitstringwhere-charsarefoundNSFileManager*fm=[NSFileManagerd

iOS 应用内购买无广告 : is that something Apple will accept?

此问题与应用审核指南有关。用例:我的应用程序显示iAD并且是免费的。如果用户支付少量费用,我有一个按钮可以让应用广告免费。Apple可能会接受这个用例吗? 最佳答案 是的。对于免费应用来说,这是一种非常常见的方法。 关于iOS应用内购买无广告:isthatsomethingApplewillaccept?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/22445185/

javascript - 错误 : 180: EXCEPTION thrown ('dev!' ): - and ERROR:> aqsrv> 70: Exception caught in (null) - Error -1

每次我调用我的函数来使用.wav文件时,我都会收到这些错误:ERROR:180:EXCEPTIONthrown('dev!'):-和ERROR:>aqsrv>70:Exceptioncaughtin(null)-Error-1它总是发生在play()的行中。它只发生在IOS-在android上它运行良好。功能:functionsonido(){varcont=0;//console.log(arregloDetalles[cont].tVelocidad);varintervalo=setInterval(function(){if(bnaddetener==1){clearInter

【Flutter】exception in phase ‘semantic analysis‘ in source unit ‘_BuildScript_‘ Unsupported class

Gradle版本与Java(JDK)版本不兼容问题系列一问题描述Couldnotopensettingsgenericclasscacheforsettingsfile.BUG!exceptioninphase'semanticanalysis'insourceunit'_BuildScript_'Unsupportedclassfilemajorversion61原因分析:Gradle版本与Java版本不兼容问题,.gradle\cache\6.5说明当前项目的Gradle版本是6.5,Gradle6.5对应版本Java8(即常说的JDK1.8)~Java14。Gradle官方的兼容性文档解

ios - 核心数据 EXC_BAD_ACCESS 随机保存

我的应用在保存核心数据时发生崩溃。以下是堆栈:#00x01646725in_PFObjectIDFastEquals64()#10x018aba17in__CFDictionaryEquateKeys()#20x018f0967in___CFBasicHashFindBucket_Linear()#30x017fb9abinCFBasicHashSetValue()#40x017fb799inCFDictionarySetValue()#50x0163cab3in_PFCMT_SetValue()#60x01668d68in-[NSManagedObjectContext(_NSInt