Coder Social home page Coder Social logo

Comments (11)

james-145 avatar james-145 commented on August 26, 2024 1

I have the same

Message from debugger: Terminated due to memory issue

Probably a memory leak issue somewhere

http://stackoverflow.com/questions/19203790/is-it-possible-to-debug-terminated-due-to-memory-error has some suggestions

Apart from this, this is a great app :) really nice work

from pokemongo-webspoof.

james-145 avatar james-145 commented on August 26, 2024

The only issues I have are two warnings -

The provisioning profile "iOS Team Provisioning Profile: com.nameichose" is expiring soon
and

Warning: skipping file '/var/folders/3q/4lt7sqgd1fj27b6gbwkht8lc0000gn/T/tmp-61155lMmEQI3B4ej4/pokemonLocation.gpx' (unexpected file type 'text' in Frameworks & Libraries build phase)

I'm running xcode 7.3.1

from pokemongo-webspoof.

iam4x avatar iam4x commented on August 26, 2024

I receive the issue also, can you open the Xcode debugger console and see what message do you have when it quits. For instance I have:

 Message from debugger: Terminated due to memory issue

I don't really know what to do since the app is a blank page ¯_(ツ)_/¯

from pokemongo-webspoof.

iam4x avatar iam4x commented on August 26, 2024

Thank's to my iOS dev co-worker @favret I have enabled background running mode for the app, it should not crash anymore. Will update release today, I want to finish #10 in it also 👍

from pokemongo-webspoof.

iam4x avatar iam4x commented on August 26, 2024

Released in v1.1.0 https://github.com/iam4x/pokemongo-webspoof/releases/tag/v1.1.0

from pokemongo-webspoof.

danielsantiago avatar danielsantiago commented on August 26, 2024

I'm still having the same issue "Message from debugger: Terminated due to memory issue" using the lastest version (v1.1.0), iPhone 6, iOS 9.3.2

from pokemongo-webspoof.

danielsantiago avatar danielsantiago commented on August 26, 2024

kahopoon/Pokemon-Go-Controller#21 (comment)

from pokemongo-webspoof.

danielsantiago avatar danielsantiago commented on August 26, 2024

The solution is to play a blank mp3 on the background, I tried it and I was able to play for more than one hour without any memory issue. I'm not very familiar with Xcode so I'm going to show how I do it and I hope someone with more experience can create a pull request.

  1. Project > Capabilities > Background Modes: Mark only "Audio, Airplay, and Picture in Picture"
  2. Project > Build Phases > Link Binary with Libraries: Add "AudioToolbox.framework" and "AVFoundation.framework"
  3. Add a blank mp3 (http://www.xamuel.com/blank-mp3s/) named "silence.mp3" to the project
  4. Overwrite "ViewController.m" with the following code:
//
//  ViewController.m
//  pokemon-webspoof
//
//  Created by iam4x on 15/07/2016.
//  Copyright © 2016 iam4x. All rights reserved.
//

#import "ViewController.h"
#import "AVFoundation/AVFoundation.h"
#import "AudioToolbox/AudioToolbox.h"

@interface ViewController () <AVAudioPlayerDelegate> {
    AVAudioPlayer *_silenceBgPlayer;   // strong reference
}

@end

@implementation ViewController

- (void)viewDidLoad {
    NSURL *url = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"silence" ofType:@"mp3"]];
    _silenceBgPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url error:nil];
    [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error:nil];
    [[AVAudioSession sharedInstance] setActive: YES error: nil];
    [[UIApplication sharedApplication] beginReceivingRemoteControlEvents];
    _silenceBgPlayer.numberOfLoops = -1;
    [_silenceBgPlayer play];

    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end

I got the idea from: kahopoon/Pokemon-Go-Controller#21 (comment)

from pokemongo-webspoof.

Abeldvlpr avatar Abeldvlpr commented on August 26, 2024

Working on this implementation

from pokemongo-webspoof.

boonaloo avatar boonaloo commented on August 26, 2024

I am still having this issue. The app will close with the same memory message.

from pokemongo-webspoof.

Feri90 avatar Feri90 commented on August 26, 2024

Step 1 and 2 make sense and I know how to do it.
But Step 3 and 4 is quite difficult for me.

I don't know where I can add a silence-MP3 to the project and I can't find ViewController.m
Just a ViewController.swift file

from pokemongo-webspoof.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.