首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未知Exc_Bad_ACCESS (Code=1)

未知Exc_Bad_ACCESS (Code=1)
EN

Stack Overflow用户
提问于 2014-05-10 00:27:42
回答 1查看 393关注 0票数 1

我正在使用OpenTok Framework,当我的应用程序多次转到后台和前台时,它会导致崩溃。这可能是由于记忆力丧失,但我已经尝试了仪器和启用僵尸对象和malloc守卫,但没有帮助我。

以下是我在Crashlytics上列出的一些崩溃列表。

代码语言:javascript
复制
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库的方式是:

代码语言:javascript
复制
- (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方法

代码语言:javascript
复制
- (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];
    }
}

有没有人能在这些车祸中帮我?

EN

回答 1

Stack Overflow用户

发布于 2014-07-01 04:37:01

在OpenTok上的iOS SDK中有一些崩溃问题。几天前有一个很大的iOS SDK发行版,它解决了崩溃问题,应该可以解决你的问题:http://tokbox.com/opentok/libraries/client/ios/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23569629

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档