Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8124543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:29:06+00:00 2026-06-06T06:29:06+00:00

its really frustrated me over 3days, I’ve check everything and it works just fine.

  • 0

its really frustrated me over 3days, I’ve check everything and it works just fine. no errors, no warnings on simulator but when launch on iPad, it got this SIGABRT error. I’m using Xcode 4.3 and ARC activate. here is my code :

.h files :

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>

@interface videothumbnailViewController : UIViewController {
    NSURL *videoURL;
    NSURL *videoURL2;

   MPMoviePlayerController *player;
   MPMoviePlayerController *player2;

    UIScrollView *scrollView;



    }
@property (nonatomic, retain) IBOutlet UIScrollView *scrollView;
@property (nonatomic, retain) MPMoviePlayerController *player;
@property (nonatomic, retain) MPMoviePlayerController *player2;


-(IBAction)stopmovie:(id)sender;
-(IBAction)playmovie:(id)sender;
-(IBAction)playmovie2:(id)sender;

@end

and the implementation file :

#import "videothumbnailViewController.h"
#import "MediaPlayer/MediaPlayer.h"


@interface videothumbnailViewController ()


@end

@implementation videothumbnailViewController
@synthesize scrollView;
@synthesize player;
@synthesize player2;



-(IBAction)playmovie2:(id)sender {

 // [player stop];


    NSString *path2 = [[NSBundle mainBundle] pathForResource:@"test2.mov" ofType:nil];
   videoURL2 = [NSURL fileURLWithPath:path2];
    player2 = [[MPMoviePlayerController alloc] initWithContentURL:videoURL2];
    player2.view.frame = CGRectMake(676, 0, 605, 339);
    player2.scalingMode = MPMovieScalingModeFill;
       [scrollView addSubview:player2.view];
    player2.controlStyle = MPMovieControlStyleNone;
    [player2.backgroundView addSubview:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"test2.png"]]];
    player2.view.backgroundColor = [UIColor clearColor];
    [player2 play];
    player2.repeatMode = MPMovieRepeatModeOne;




}

-(IBAction)playmovie:(id)sender {

   [player2 stop];


    NSString *path = [[NSBundle mainBundle] pathForResource:@"test.mov" ofType:nil];
    videoURL = [NSURL fileURLWithPath:path];
    player = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
    player.view.frame = CGRectMake(0, 0, 605, 339);
    player.scalingMode = MPMovieScalingModeFill;
    [scrollView addSubview:player.view];
    player.controlStyle = MPMovieControlStyleNone;
    [player.backgroundView addSubview:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"test.png"]]];
    player.view.backgroundColor = [UIColor clearColor];
    [player play];
    player.repeatMode = MPMovieRepeatModeOne;


}

-(IBAction)stopmovie:(id)sender {

    [player stop];


}



- (void)viewDidLoad {
    [super viewDidLoad];

    NSString *path2 = [[NSBundle mainBundle] pathForResource:@"test2.mov" ofType:nil];
    videoURL2 = [NSURL fileURLWithPath:path2];
    player2 = [[MPMoviePlayerController alloc] initWithContentURL:videoURL2];
    player2.view.frame = CGRectMake(676, 0, 605, 339);
    player2.scalingMode = MPMovieScalingModeFill;
    [scrollView addSubview:player2.view];
    player2.controlStyle = MPMovieControlStyleNone;
    player2.view.backgroundColor = [UIColor clearColor];
    [player2 stop];


    [scrollView setContentSize:CGSizeMake(1300, 339)]; 
    NSString *path = [[NSBundle mainBundle] pathForResource:@"test.mov" ofType:nil];
    videoURL = [NSURL fileURLWithPath:path];
    player = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
    player.view.frame = CGRectMake(0, 0, 605, 339);
    player.scalingMode = MPMovieScalingModeFill;
    [scrollView addSubview:player.view];
    player.controlStyle = MPMovieControlStyleNone;
    [player.backgroundView addSubview:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"test.png"]]];
    player.view.backgroundColor = [UIColor clearColor];
    player.repeatMode = MPMovieRepeatModeOne;
    [player play];






}



- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return YES;
}

@end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T06:29:08+00:00Added an answer on June 6, 2026 at 6:29 am

    Please try to add an exception breakpoint like this:

    1. Go to breakpoint pane in Xcode and click the plus button at the bottom
      enter image description here

    2. Click Add exception breakpoint
      enter image description here

    3. Click done
      enter image description here

    The debugger should no stop at the line where the exception is thrown.

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm really frustrated with getting going using VIM. I'm just trying to do some
NetBeans for JavaFX I tried, but its really not stable, lot of things getting
Hey its really hard to define an exact title for my problem. I am
hello its really weird that a if and else statement is not working in
Friends its really giving me a great head ache about the problem I am
I've been implementing MS Search Server 2010 and so far its really good. Im
sorry for the confusing title, its really hard for me to explain what i
I'm writing a small Windows application in Visual C++ without MVC. Its really small,
This is a suggested re-up on a question I had before. Its really and
Hi stackoverflow coders, I have an app (since the iPhone its really chic to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.