crash

Lua 5.2.2 Broken Threading System

青春壹個敷衍的年華 提交于 2019-12-13 22:45:27
问题 Ey, I'm making threading system in lua and I have a crash when I resume a lot threads... I'm noob in C Lua and I don't really know what is the good or bad what I'm doing in the next codes... I flagged crash places with "//maybe here" #include<cstdio> #include<ala_lua.h> extern"C"{ void __stdcall Sleep(unsigned long); }; int main(){ lua_State*L=luaL_newstate(); luaL_openlibs(L); luaA_libs(L); lua_State*T=lua_newthread(L); luaL_loadfile(T,"c:/clua.lua"); co_resume(T); do{ Sleep(1); }while(co

JpCapWriter crashes JVM

时间秒杀一切 提交于 2019-12-13 21:56:43
问题 When I try to use JpCap Writer to save packets to a file, it causes JVM to crash. Code: captor=JpcapCaptor.openDevice(interfaceList[interfaceNumber], 65535, true, 20); captor.setFilter("ip and tcp",true); JpcapWriter writer=JpcapWriter.openDumpFile(captor,"write.txt"); for(int i=0;i<10;i++){ Packet packet=captor.getPacket(); writer.writePacket(packet); } writer.close(); Crash info: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f283105953a,

Eclipse crashes when it's starting

我的梦境 提交于 2019-12-13 21:13:06
问题 I try to launch my Eclipse, it starts window with logo but while loading workbench it crashes. Log is very long, so I put a link: http://textuploader.com/?p=6&id=TXieq 回答1: Visit [developer.android.com][1] and download the latest sdk. 2.Select the type of Operating System-32/64 bit accept the license agreement and download. After that update the packages in the SDK Manager [1]: http://developer.android.com/sdk/index.html 来源: https://stackoverflow.com/questions/18861843/eclipse-crashes-when

Not sure how to handle “Terminating app due to uncaught exception 'NSInvalidArgumentException'”

£可爱£侵袭症+ 提交于 2019-12-13 21:11:18
问题 I'm working on creating an app that uses a class I created myself, Entry , to store specific data in an array. However, I keep running into this error when I try to access one of the values stored in an Entry object. Every time I prompt the user to create one of these objects, it is added to "rawArray," which is in turn stored into [NSUserDefaults standardUserDefaults]. At these lines of code, the program crashes: Entry *currEntry = [[[NSUserDefaults standardUserDefaults] arrayForKey:@

Android - Xwalk crash after Oreo migration

强颜欢笑 提交于 2019-12-13 20:27:00
问题 I want to make some changes to an application targeting Android SDK 22 (5.1) . I loaded the project in Android Studio 3 , got the Gradle upgrade message. Of course, doing that makes the whole thing explode as the way the new Gradle handles dependencies has become very nitpicky. I decided to go all out and just do the whole migration. Would have to do it at some point anyway. The application uses an XWalkView (extended in a class), instead of the native Webview, as we want to have some WebGL

How to deal with “runtime error 50290” when using SetTimer API?

一世执手 提交于 2019-12-13 19:50:37
问题 I've run into this error when trying to make a stopwatch timer in Excel. Here's a simple test code. Create an empty Excel workbook with a button. And assign a macro to it: Sub Button1_Click() TimerID = SetTimer(0&, 0&, 0.5 * 1000&, AddressOf TimerProc) End Sub Also, add this code to the module: Declare Function SetTimer Lib "user32" ( _ ByVal HWnd As Long, _ ByVal nIDEvent As Long, _ ByVal uElapse As Long, _ ByVal lpTimerFunc As Long) As Long Sub TimerProc(ByVal HWnd As Long, ByVal uMsg As

ResultSet ->getString() crashes when value is >=16

纵然是瞬间 提交于 2019-12-13 19:31:44
问题 ResultSet *search; .... .... search= prepareStatement->executeQuery(); while (search->next()) { cout << "Email Found: " << search->getString("EmailColumn") << endl; //crashes here } From the code above, calling getString() function actually gets the value from the database. But then it crashes the program. It displays the value then crashes the program. I discovered the problem but couldn't fix it. I can't tell if this is a bug or something else . The problem only happens when the length of

I don't know why my view is freezing

回眸只為那壹抹淺笑 提交于 2019-12-13 19:02:40
问题 I have a big problem since a few days that I can't solve. First I have a login view controller with this code : @implementation MMConnectionViewController @synthesize login, password, activityIndicator, mainVC; - (BOOL)textFieldShouldReturn:(UITextField *)aTextField { [aTextField resignFirstResponder]; [self performSelectorOnMainThread:@selector(startRolling) withObject:nil waitUntilDone:NO]; [NSThread detachNewThreadSelector:@selector(connect) toTarget:self withObject:nil]; return YES; } -

iOS - My app crashes with memory Error if only runs on Device

天大地大妈咪最大 提交于 2019-12-13 18:43:35
问题 My app runs perfectly on simulator. But when I run it on device to test, the app crashed. The displayed error : "malloc: * error for object 0x17415d0c0: Invalid pointer dequeued from free list * set a breakpoint in malloc_error_break to debug"; And another error sometimes happens : "Thread 6 com.apple.NSURLConnectionLoader: Program received signal: EXC_BAD_ACCESS" This two errors are random, it happens after the app runs two or three minutes. I searched Google and find some solution. It says

Gameplay Crashes From ipa file but runs fine from Xcode?

丶灬走出姿态 提交于 2019-12-13 18:00:46
问题 It is somewhat an awkward situation right now. When I run my project directly from Xcode to my device it runs perfect without any crashs. But when I create an ipa file of that project and install that ipa into my device by using iTunes, only for the first time when I launch my gameplay screen it crashes, later on when I starts my gameplay it runs fine. Remember, my gameplay starts after the user navigates 2 initial screens which works pretty fine in either conditions. (i.e running from Xcode