iphone,crash,asihttprequestRelated issues-Collection of common programming errors


  • user198725878
    iphone ios sencha sencha-2
    Mac-mini-2:sink eit$ sencha app build native[INFO] Deploying your application to /path/to/www/sink/build/package [INFO] Copied sdk/sencha-touch.js [INFO] Copied app.js [INFO] Copied resources/css/app.css [INFO] Copied resources/images [INFO] Copied resources/icons [INFO] Copied resources/loading [INFO] Resolving your application dependencies… [INFO] Found 139 dependencies. Concatenating all into app.js… [INFO] Processed sdk/sencha-touch.js [INFO] Minifying sdk/sencha-touch.js [INFO] Processe

  • Abhijeet Vaikar
    automated-testing selenium iphone
    Is there any similar function/ command in MonkeyTalk, like WaitForPageToLoad which is in Selenium, that lets me specify the script to wait for a screen to render before moving ahead? I checked MonkeyTalk’s language reference but could not find a way. Also searched for this issue on Google but it didn’t help me much.The iOS native app i’m testing takes some time to load and open up the home screen after login. After recording the event flow using MonkeyTalk, and running the test script, the scrip

  • Diggory
    iphone icloud iphoto photo-stream
    I’m rather confused about the ‘proper’ way to use Photo Stream and an iPhone and iPhoto.Here’s how I use iPhoto and my iPhone: (This workflow was as far as I can tell the correct way to operate before iCloud)Getting photos into iPhoto:Take photos on iPhone. Every so often connect the phone to my mac and in iPhoto import any photos and videos from the phone’s camera roll into iPhoto (deleting those photos from the camera roll once they are imported.) This means that iPhoto is the canonical stor

  • bneely
    iphone ios youtube
    Whenever I try and log into the native Youtube app on my iPhone, it reports ‘Authentication Failed” even though the details are 100% correct. Here’s what I’ve done so far:Youtube.com accepts my username and password on both the desktop and iPhone web app. I’ve reset my Youtube password I get the same results over 3G or wifi (tried multiple networks, incl. Apple Store), so it is not my carrier or ISP blocking Youtube. A friend logged in with his account and the iPhone accepted it, so it isn’t sp

  • John
    iphone json http post
    Hi I need help in making a HTTP POST connection to a web service. I am totally clueless on how to do it. I only had experienced in making a NSURLConnection whereby I pass the required input parameters as part of the URL. Now it seems different as I am only provided a website and the request JSON body.{ “lastmodified”:”String content”, “passengerId”:9223372036854775807, “password”:”String content”, “userId”:”String content” }Could anyone shed some light on this? Say the website is www.myURL/opera

  • Guy
    iphone objective-c ios image-processing
    I’m trying to combine two photos into one image (think a body with a hole in the face on top of a picture of a different person’s face). The top image has some semi-transparent pixels and some fully transparent pixels and I want to overlay it on top of a solid image.Here’s what I’m doing: I have a Context with the right size and I draw the bottom image on it, without any alpha (faceImage). On top of that I draw an image that has a transparent hole in it, with various levels of transparencies (co

  • Peter Hosey
    iphone cocoa-touch mode silent
    I would like to stop my application playing a sound if the user has switched the iPhone to silent mode. Where can I read that the phone is in silent mode? Is there some flag I can query? I noticed that some applications ignore the silent mode and some not, while I would have expected all apps to respect that silent is silent !! Any hints or input would be greatly appreciated. Thanks Al

  • SaamJB
    iphone objective-c ios
    I have a UITableViewController that when a cell is pressed, I want the controller to pop itself, and then have the controller it pop’s to, push another view controller onto the stack.I am invoking this method because the popped-to viewController is the delegate of the tableViewControllerI am currently invoking this method with a delay on it, because otherwise, everything gets screwed up waiting for the animation to end. Doing it this way seems a bit hacky and seems to me like it would fail if so

  • magma
    iphone ipad uitableview nested uitouch
    When you’re working with an atypical nested UITableViews setup – where you have an outer vertical UITableView that hosts 90° rotated UITableViews (see: Looking for a UI library to present Data horizontaly in iOS ): is there a way to make iOS process vertical and horizontal touches at the same time?I found that iOS is very clever in processing touches: horizontal touches make the relevant horizontal UITableView scroll, while a vertical swipe makes the outer UITableView scroll. Perfect.Only, I’d l

  • Rob Keniger
    iphone cocoa-touch keyboard decimal nsdecimalnumber
    iPhone/Objective-C/Cocoa newbie here. Based on a number of posts on stackoverflow, I have cobbled together an IBAction that I’m using in a basic iPhone calculator app that I’m building. The IBAction works with the numeric keypad to allow entry of decimal numbers without having to enter a decimal point. I am trying very hard to adhere to the “use NSDecimal when dealing with currency” adage although I am finding it difficult to do so like so many others who have posted questions. I am making stead

  • user3421610
    php wordpress website crash syntax-error
    I tried editing the function.php file in my WordPress theme.Somehow I messed up and have a T_STRING error problem. So, I looked it up, and find I need to add a double ” speech mark on line 64.BUT, now the site is crashed. If I try to go in to do the edit I just get an error message telling me there’s a syntax error, unexpected T_STRING in /mysite/wp-content/themes/sahifa/functions/theme-functions.php on line 64I mean, I don’t get into the dashboard AT ALL, just this error message.So how can I

  • Madhu
    crash ios7 uitextview range nsattributedstring
    Hi Everyone i have a UITextView where i am changing the font with range by using the below code. it is working fine in iPhone 4 with iOS 7 , but when i run the same in iPhone 5 with iOS 7 it was crashing and showing up “Range out of bounds”. i was breaking my head for this unexpected behavior. Please help me out. thank you.- (void)setFont:(UIFont *)font range:(NSRange)range{NSMutableAttributedString *text = [[NSMutableAttributedString alloc]initWithAttributedString: self.attributedText];

  • hoss
    android exception crash android-studio
    I was working on a project in Android Studio and was regularly compiling the code running it on my device to make sure everything was in working order. Suddenly the main activity crashes, several times after compiling several separate times. I checked the logcat and the error was reported as being due to failure to recognize the layout. I didn’t understand why, as I hadn’t changed any of the code in the main activity.In fact the only thing that had changed over the course of those few days was t

  • Harlandraka
    windows-7 ssd crash bsod
    I have a Windows 7 computer with this hardware:Asus P8P67 PRO Intel i7 2600k 8GB RAM AMD Radeon HD 6970 2TB HDD (used for storing data) 128GB SSD OCZ Vertex III (used for the OS)The PC works fine but Windows crashes after some time (sometimes after an hour, sometimes after 4 hours, etc). I can see it because when I open an application, it hangs and doesn’t open, and if I click on the start button, explorer crashes. After that, if I wait it goes to blue screen and re-crashes (never reboots): I ha

  • Psycogeek
    power-supply freeze crash gpu htpc
    Subject says most of it. My HTPC will occasionally be found in this hard-locked/crashed state when nothing of note was being done. The past couple times, it has been while the screensaver was running over top of the Steam client (not Big Picture, just the normal client) and nothing else of note was running. I’ve not experienced this crash when watching TV via Windows Media Center, nor when playing Steam games like Dark Souls. Checking Event Viewer has been fruitless, as no BugChecks or other err

  • Dynde
    windows-7 hard-drive boot ssd crash
    I’ve been having some weird random crashes that I can’t seem to locate, and I’m unsure if it’s windows or hardware related.It’s a brand new computer and very powerful. I’ve run into a couple of these random crashes, now I don’t know what causes them, as it happens during the night, when I’m sleeping. When I wake up, all I see is a boot manager screen that says Exception: 0xc00000e “Boot device inaccessible”. A simple restart doesn’t fix the problem – it seems to struggle locating my primary hdd

  • the_mandrill
    windows-7 crash shutdown
    I’ve got a problem with a Win7 machine that up until now has been very reliable. During the boot it will just power off — no warnings or BSOD. Sometimes it gets as far as the login screen but shuts down on login, other times during the splash screen. System repair and System Restore don’t make any difference. I can boot into safe mode or onto a boot disk, which suggests it’s not a CPU overheating problem. I wondered if it was some kind of disk corruption, but I wouldn’t have thought it wou

  • Alexis Li
    mavericks retina-macbook-pro google-chrome crash hang
    I bought rMBP around November last year. As I open Chrome, it crash without log. I can’t move the mouse, and the mms stream player keep working.The only solution is to restart it with power button.I can’t find the report by chrome://crashes and ~/Library/Logs/.I think the kernel_task doesn’t make it.Are there anyone else got the same problem and solution? How to identify the unexpected shutdown by power button in shutdown_monitor.log or /var/log/system.log?Version:10.9.1(13B3116) Chrome Version

  • boldnik
    wireless lenovo thinkpad crash
    Just a few days ago I installed new wifi driver and everything seemed to work fine on Lenovo ThinkPad S440. But now I experience a problem with wifi: the speed slows down to zero that no page could load in web browser. The second problem (not sure if they are connected but maybe) is system crashes unexpectedly. this is a pastebin of dmesg output so you could see what’s happening. When the system crashes, X and all other programs crash. I can’t even switch to tty and restart X. Can’t be reproduce

  • Julio Gorgé
    xcode crash iphone uitabview
    Using XCode 4, with the iPhone iOS 4.2Hey everyone, I’m using a tabBar interface for my new app that I’m trying to finish. I have declared the UILabels and as soon as I connect them in the interface builder to the actual labels, the whole app will crash upon selection of its tab at runtime, in the simulator and on my iphone. I’m hoping there’s a really simple answer out there, but I really have no idea where to look (I am a novice). Thanks in advance,

  • Robert Kang
    objective-c cocoa apache cxf asihttprequest
    I am working on a project involving Apache CXF at server side providing RESTful webservice, taking in and out in JSON format. At the client side is an Mac OSX app with ASIHTTPRequest and SBJson. I had various issues in the last few days, and was not able to find out a solution.At server side:@Override @POST @Path(“/testService/”) @Consumes(MediaType.APPLICATION_JSON) public Boolean service1(SomeMetaData metaData) {return this.testMetaData(metaData); }At client side:NSString *requestURLString = [

  • MattDiPasquale
    objective-c delegates asihttprequest retain assign
    Is it OK to retain a delegate of a subclass of ASIHTTPRequest?I made a subclass of ASIHTTPRequest called JSONRequest. Each instance of JSONRequest is its own delegate, handles the callbacks, and passes them on to jsonDelegate, which is a private property of JSONRequest, and responds to requestFinished:withResult:, where result is an NSDictionary representation of the JSON response. To do this, I overloaded setDelegate: in JSONRequest to do super.delegate = self; self.jsonDelegate = newDelegate.I

  • Shivaprasad C
    iphone asihttprequest
    I am creating simple file uploaded. Some unexpected behavior is happening with File upload.When i am running build from my iMac to iPhone, it works fine without any issue. But when i create an build(ipa) file. and install it from iTune. Request fails.Might be there is issue with ASIHTTP?

  • basquille
    objective-c asihttprequest
    This is really bugging me… so I’ve made a basic enough app to query a servlet.It was working fine until I made a few changes last night.The call using ASIHTTPRequest is working synchronously and it’s returning what I’m expecting, but when I make the same call asynchronously using an NSOperationQueue, it returns a completely different response in requestFinished();Can anyone identify where it might be going wrong? It’s probably something simple but I’ve been staring at it for hours and can’t de

  • il_guru
    objective-c ios xcode asihttprequest
    In my app I want that whenever the web service is updated with new data my app synchronise with it. But currently what is happening is that I have to log out and then again log in to the app to see the updated results. Is there any way to update my app without log out and log in again?

  • MattDiPasquale
    objective-c delegates asihttprequest dealloc exec-bad-access
    I set the view controller to be the delegate of a local variable ASIHTTPFormDataRequest request.But, tapping “Back” before the request has finished, pops and deallocates the view controller. So, when the request completes and sends the message -requestDidFinish: to the now nonexistent delegate, the app crashes with an EXEC_BAD_ACECESS exception.How do I fix this crash?One way I could think of solving this is to set the delegate to nil immediately after the navigation controller pops it. But, if

  • Tareq
    asihttprequest ios5 xcode4.2
    So I have an app that runs on iOS 3.2 – 4.x. It uses ASIHTTPRequest to make all the REST API calls. Ever since my team and I upgraded three of our iPhone 4’s to iOS 5, The app will hang and show the ActivityIndicator indefinitely. I looked at the server logs and the requests aren’t hitting the server. However, if I press the iPhone home button then open the app again, the request will go through and I will receive the data, business as normal. For some reason the requests are never triggered unt

  • JosephH

  • livingtech
    iphone delegates protocols asihttprequest
    I’ve got the following (relevant portions of an) object:#import “HTTPHelper.h”#define TIME_OUT_SECONDS 30 @interface HTTPHelper (Private) – (ASIHTTPRequest *)sendRequest:(ASIHTTPRequest *)request error:(NSMutableArray*)error; @end@implementation HTTPHelper @synthesize delegate;- (void) invokeSessionTimeout {[ASIHTTPRequest clearSession];if ( delegate != nil ) {[delegate sessionTimedOut];} }- (ASIHTTPRequest *)sendRequest:(ASIHTTPRequest *)request error:(NSMutableArray*)error {if ( request == nil

  • Alex Stelea
    iphone webview asihttprequest
    Can anyone please provide or show me how to download a PDF asynchronously if a local file doesnt exist.My code is as follows:NSURL *url = [NSURL URLWithString:@”http://www.url.com”]; NSString *tempDownloadPath = [[self documentsDirectory] stringByAppendingString:@”test.pdf”]; ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url]; [request setDownloadDestinationPath:[self documentsDirectory]]; [request setTemporaryFileDownloadPath:tempDownloadPath]; [request setDelegate:self]; [requ

Web site is in building