crash

Filling numpy array using [:,:] crashes python?

十年热恋 提交于 2019-12-23 04:15:26
问题 Greetings, I have come across an interesting error and was wondering if anyone knew the cause. I create several numpy arrays of dtype object and wish to initialize them with empty strings, so I did the following to create them: txtInputs=empty((7,12), dtype=object) txtInputs[:, :]='' repeated... How they are used after is not relevant other than that these variables are local to the function and are gone when it returns. However, I have discovered that when I call the function that does this

Clarify Objective-C categories in separate file

穿精又带淫゛_ 提交于 2019-12-23 03:38:35
问题 I have added some methods to existing class in engine by category. This category is declared and implemented in my separate files. Then I include these files (but all engine files stay not modified, so only original declarations are included in engine). Engine is built into static lib and linked with my app. When I call a method of my category the app crashes with error "unrecognized selector sent to instance...". But if I declare category in file with original engine class all works. Why

XCode 4.3.1 crashes on opening specific project

眉间皱痕 提交于 2019-12-23 03:18:06
问题 Yesterday I updated my Xcode from 4.2.1 to 4.3.1 from Mac App Store. Everything was fine, but in the evening Xcode started to crash on opening one project, that I am currently working on. Here is the crash log here: http://pastebin.com/bxrMBeu7 I've also noticed that other projects are opening fine. Anyone knows the solution? 回答1: I've spent few hours to fix this. There is no need to reinstall xCode. So, here is my solution: Go to Organizer > Projects > Your project name. And delete Derived

Freetype FT_Request_Size() crashes on Android

杀马特。学长 韩版系。学妹 提交于 2019-12-23 03:13:00
问题 I've compiled freetype 2.4.2 on android and any time I try to use FT_Set_Char_Size() it will crash in the ftobjs.c file in the FT_Request_Size() function at this line error = clazz->request_size( face->size, req ); //line 2832 My code works perfectly fine on Windows, Linux, Mac, IPhone and IPad. But here is the deal. I was having the exact same issue, same crash at the same spot on Windows (vc++) until I compiled freetype with /Za "Disable Language Extensions". So I'm pretty sure it's how

Visual Studio 2010 crashes upon editing a C# string literal

强颜欢笑 提交于 2019-12-23 02:53:27
问题 My VS2010 Premium RTM installation has developed a nasty habit of crashing when I edit a string literal. It 'feels' like the Intellisense bug and I have an unreasonable and unsupported hunch that this has something to do with ReSharper, because the ReSharper integrations get slower and slower until finally the crash happens when I edit a string literal. This is happening on two seperate PCs so it is not PC-specific. My R# build is: 5.1.1751.8 dated 2010-08-31. Anyone else seeing this? Any

iOS Swift - EXC_BAD_INSTRUCTION on certain devices

蓝咒 提交于 2019-12-23 02:32:12
问题 I'm very new to Swift and iOS development but I've come across a bug that is causing my app to crash when running on the following devices: iPhone 4S iPhone 5 iPad 2 iPad Retina Here is the code that is being flagged up: // bin2dec - converts binary string into decimal string func bin2dec(input: String) -> String { var counter = countElements(input) var digit: Character var power = 1 var result = 0 while counter > 0 { digit = input[advance(input.startIndex, counter-1)] switch digit { case "0"

Android - how to make sure my Service is restarted?

我们两清 提交于 2019-12-23 01:58:26
问题 I have an Android application with a background running Service. When the Service crashes or gets killed by Android I can see that Android tries to restart it again. However the Service never actually restarts, I can see Android scheduling the restart but it new actually happens. My code is as follows: @Override public void onCreate() { String ns = Context.NOTIFICATION_SERVICE; mNotificationManager = (NotificationManager) getSystemService(ns); mTelephonyManager = (TelephonyManager

“GLib-ERROR **: Cannot create pipe main loop wake-up: Too many open files” on Qt

▼魔方 西西 提交于 2019-12-22 18:48:22
问题 I am working on Ubuntu. When I run my program about after 1 hour I received this error : GLib-ERROR **: Cannot create pipe main loop wake-up: Too many open files The program has unexpectedly finished. When I run with gdb it does not crash. I Don't understand why? and What is the reason for this error ? Thank you very much.. 回答1: Too many open files Is pretty obvious. Probalby you have a leak with file descriptors, so you should check if your code opens lots of files/filedescriptors but doesn

Visual C# Command Line Compiler has stopped working?

僤鯓⒐⒋嵵緔 提交于 2019-12-22 18:28:30
问题 I have a project iv been working on for sometime, but today when i tried to build the solution the following message was displayed. This message appears twice when i try run my project, but the project is able to run after this appears. The problem is i cant publish as this stops my publishing. The problem signature reads the following: Problem Event Name: APPCRASH Application Name: csc.exe Application Version: 4.0.30319.17929 Application Timestamp: 4ffa73cb Fault Module Name: bitguard.dll

CGImage to UIImage doesn't work

≯℡__Kan透↙ 提交于 2019-12-22 17:52:04
问题 I'm developing and iOS app for iPad and I use Grabkit in order to get images from Facebook, Twitter, Flicker and also the Camera Roll. To get the images from the last one, I need to convert a CGImage to an UIImage, but I'm having trouble with that. Is like if I didn't get any image, because when I use the UIImage later, the app crashes with this log: *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan 653]' I'm using the