crash

iOS9 dismissing keyboard causes crash

孤者浪人 提交于 2019-12-22 17:38:47
问题 When i try to run my app at iOS 9.1 simulator i have a crash Attempting to load the view of a view controller while it is deallocating is not allowed and may result in undefined behavior (<UIInputWindowController: 0x7ff82b036e00>) Crash happens in main function. Crash happens when i try to dismiss the keyboard with [self.username resignFirstResponder]; Also when you self.view.userInteractionEnabled = false; I've read View appear with modal view animation instead of show (push) animation with

Data connection enable/disable code crashes inside a android service

时光怂恿深爱的人放手 提交于 2019-12-22 12:44:41
问题 void turnData(boolean ON) { final ConnectivityManager conman = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE); final Class conmanClass = Class.forName(conman.getClass().getName()); final Field iConnectivityManagerField = conmanClass.getDeclaredField("mService"); iConnectivityManagerField.setAccessible(true); final Object iConnectivityManager = iConnectivityManagerField.get(conman); final Class iConnectivityManagerClass = Class.forName

Aptana plugin crashes Eclipse

大憨熊 提交于 2019-12-22 10:29:10
问题 I use Eclipse EE Indigo on a Ubuntu 11.04 laptop. I use the Sun JDK. When I installed the aptana plugin using help/install new software and then installed aptana by pasting http://download.aptana.com/studio3/plugin/install into the "work with" field, it installed just fine and then prompted me to restart Eclipse. Now, I cannot start Eclipse anymore at all. It opens but crashes, seemingly when trying to initiate the aptana plugin. This is a major problem for me because my Eclipse was already

How a website should handle a database crash

两盒软妹~` 提交于 2019-12-22 10:15:29
问题 I am currently creating a website in php that has a database backend (can be either MySQL or SQL Server) and I realized recently that if my database crashes at any time, my website will not run properly and probably cause some headaches. So what is the proper thing to display on the website if my database (or any crucial outside component) goes down? My particular website relies heavily on its database and will be almost useless without it. One option I have been told is to email the website

ntdll!kifastsystemcallret

给你一囗甜甜゛ 提交于 2019-12-22 09:50:17
问题 My program is crashing at the end of execution, and couldnt even see stack unwind info. all i can see is this " ntdll!kifastsystemcallret", can some throw some light? 回答1: KiFastSystemCallRet means that the thread is in a syscall - an unfortunate aspect of x86 NT syscall dispatch is that it will not return the context back to the original place, but has to return to a static location in ntdll, which will fix up the context and put you back where you came from. Paste in the stacks and we can

iPhone crash on CoreData save

房东的猫 提交于 2019-12-22 09:48:59
问题 This is a different situation than this question, as the solution provided doesn't work and the stack is different. Periodical crash when I save data using coredata. The stack trace isn't 100% clear on where this is happening, but I'm certain it's this routine that's being called. It's either the save: in this method or the one following. Code: -(void)saveWine { if ([self validInfo]) { Wine *wine = (Wine *)wineToEdit; if (wine == nil) { wine = (Wine *)[NSEntityDescription

Linux Kernel programming: trying to get vm_area_struct->vm_start crashes kernel

China☆狼群 提交于 2019-12-22 09:18:42
问题 this is for an assignment at school, where I need to determine the size of the processes on the system using a system call. My code is as follows: ... struct task_struct *p; struct vm_area_struct *v; struct mm_struct *m; read_lock(&tasklist_lock); for_each_process(p) { printk("%ld\n", p->pid); m = p->mm; v = m->mmap; long start = v->vm_start; printk("vm_start is %ld\n", start); } read_unlock(&tasklist_lock); ... When I run a user level program that calls this system call, the output that I

dispatch_once call causes crash

时间秒杀一切 提交于 2019-12-22 08:33:20
问题 dispatch_once call causes crash (in simulator) after I've converted my project to ARC. My original problem was that I've got EXC_BAD_ACCESS (in objc_retain call) crash in one of my singleton object's + (SingletonClass)shared { ... dispatch_once(..., ^{}); ... } method exactly one line before the dispatch_once call. Based on loggings, and breakpoints my code have not run into the dispatch_once call's block. I didn't know the reason, so I've just commented out the dispatch_once call. My app

Importing XML Crashes Excel

青春壹個敷衍的年華 提交于 2019-12-22 08:27:15
问题 I have had this recurring problem with all of my spreadsheets for months. The spreadsheet will be working fine and importing the xml files fetched from our website, then all of a sudden it will start crashing everytime on import. The only thing that fixes it is to take all of the contents (sheets, code, references) and drop them into a fresh workbook. This is the line it crashes on. ActiveWorkbook.XmlImport URL:=l_strXMLFileName, _ ImportMap:=Nothing, Destination:=Sheets("Imported Data")

Java - Getting MAC address of Linux system

て烟熏妆下的殇ゞ 提交于 2019-12-22 08:07:43
问题 I'm trying to get the MAC address of a linux system with this code: try { ip = InetAddress.getLocalHost(); NetworkInterface network = NetworkInterface.getByInetAddress(ip); byte[] mac = network.getHardwareAddress(); // System.out.print("Current MAC address: "); for (int i = 0; i < mac.length; i++) { is = is + Integer.parseInt( String.format("%02X%s", mac[i], (i < mac.length - 1) ? "" : ""),16); } } catch (UnknownHostException e) { e.printStackTrace(); } catch (SocketException e) { e