【问题标题】:Unkown Exc_Bad_ACCESS (Code=1)未知 Exc_Bad_ACCESS(代码=1)
【发布时间】:2014-05-09 16:27:41
【问题描述】:

我正在使用OpenTok Framework,当我的应用程序多次进入后台和前台时会导致崩溃。可能是由于内存丢失,但我已经尝试过使用仪器并启用了僵尸对象和 malloc 保护,但没有任何帮助。

以下是我来自Crashlytics 的一些崩溃列表。

1).
webrtc::StatsReport::Value* std::__uninitialized_copy_aux<__gnu_cxx::__normal_iterator<webrtc::StatsReport::Value const*, std::vector<webrtc::StatsReport::Value, std::allocator<webrtc::StatsReport::Value> > >, webrtc::StatsReport::Value*>(__gnu_cxx::__normal_iterator<webrtc::StatsReport::Value const*, std::vector<webrtc::StatsReport::Value, std::allocator<webrtc::StatsReport::Value> > >, __gnu_cxx::__normal_iterator<webrtc::StatsReport::Value const*, std::vector<webrtc::StatsReport::Value, std::allocator<webrtc::StatsReport::Value> > >, webrtc::StatsReport::Value*, std::__false_type)

2).
AudioToolbox
AUIOHelper::NotifyInputAvailable(AudioTimeStamp const&, unsigned long, AudioBufferList const&)

我使用openTok库的方式是:

- (void)doConnect
{
    // Create a session to the doctor.
    _mySession = [[OTSession alloc] initWithSessionId:self.doctor.sessionId
                                             delegate:self];

    // Connect the session created to the doctor.
    [_mySession connectWithApiKey:kApiKey token:self.doctor.token];

}

- (void)doPublish
{
    // Create a publisher.
    _publisher = [[OTPublisher alloc] initWithDelegate:self name:UIDevice.currentDevice.name];
    [_publisher.view.toolbarView setHidden:NO];
    [_publisher.view.toolbarView setAlpha:1.0];

    // Publish user's stream to the connected session.
    [_mySession publish:_publisher];

    // Show user's stream in bottom-right corner.
    CGRect frame = CGRectMake(self.view.frame.size.width - mySize.width, self.view.frame.size.height - mySize.height - 50, mySize.width, mySize.height);
    _publisherView = _publisher.view;
    [_publisherView setFrame:CGRectInset(frame, 10, 10)];
    [self.cameraView addSubview:_publisherView];

}

pragma mark - OTSessionDelegate 方法

- (void)sessionDidConnect:(OTSession*)session
{
    [self doPublish];
}

- (void)session:(OTSession*)mySession didReceiveStream:(OTStream*)stream
{
    if (![stream.connection.connectionId isEqualToString:_mySession.connection.connectionId])
    {
        [self doSubscribeToStream:stream];
    }
}

- (void)doSubscribeToStream:(OTStream *)stream
{
    self.lblDoctorName.text = self.doctor.name;
    if (!_subscriber) {
        _subscriber = [[OTSubscriber alloc] initWithStream:stream delegate:self];
    }
}

谁能帮我解决这些崩溃问题?

【问题讨论】:

  • 没有给出代码,没有给出信息,什么都没有。任何事情都需要一个信号编号和一系列代码
  • 我添加了一个代码。你还需要什么吗?

标签: malloc exc-bad-access opentok crashlytics nszombieenabled


【解决方案1】:

OpenTok 上的 iOS SDK 存在一些崩溃问题。几天前有一个大型 iOS SDK 版本解决了崩溃问题,应该可以解决您的问题:http://tokbox.com/opentok/libraries/client/ios/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-09-21
    • 1970-01-01
    • 2018-03-13
    • 2013-10-11
    • 2019-07-11
    • 2020-02-01
    相关资源
    最近更新 更多