breezee
breezee
  • 发布:2015-07-23 10:12
  • 更新:2015-07-23 19:48
  • 阅读:2550

执行h5调用原生时崩了,非必现,概率相当高

分类:5+ SDK

崩在PDR_TOOL_GetSysytemScreenRect这。无效地址
执行execJs后崩了

2015-07-23 10:12 负责人:无 分享
已邀请:
breezee

breezee (作者)

这 是退出时出现,现在采用要主线程中操作就没这问题了。
退出代码如下,但不能 [[PDRCore Instance] unLoad];,如果调用很容易出现上面的问题。
-(void)navPopViewContrller
{
UINavigationController *nc = [AppDelegate GetAppDelegte].mNav;
[nc popViewControllerAnimated:YES];
//[[PDRCore Instance] unLoad];
}

-(NSData)TTQCloseApp:(PGMethod)command
{
NSLog(@"close-----------------------");
if (![NSThread isMainThread]) {
[self performSelectorOnMainThread:@selector(navPopViewContrller) withObject:nil waitUntilDone:NO];
} else {
UINavigationController *nc = [AppDelegate GetAppDelegte].mNav;
[nc popViewControllerAnimated:YES];
}

return nil;  

}
但调用时加载h5应用时还是有问题,webview还存在,但不见了,功能还在背后执行。
h5那边是调了原生做的一个插件接口,只是取一些信息.

breezee

breezee (作者)

18号的sdk

breezee

breezee (作者)

-(void)ShowAppByID:(NSString) appID htmlName:(NSString) htmlName
{
NSString pAppPath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent:@"Pandora/apps/"];
NSString
pWWWPath = [NSString stringWithFormat:@"%@/%@/www", pAppPath, appID];

[[PDRCore Instance] setContainerView:self.view];  
[[PDRCore Instance] startAsAppClient];  
[[[PDRCore Instance] appManager] openAppAtLocation:pWWWPath withIndexPath:htmlName withArgs:nil withDelegate:nil];  

}
这有时还打不开相关页面,也非必现,概率一般

DCloud_IOS_XTY

DCloud_IOS_XTY

经测试未发现该问题,请升级到最新SDK在试试看看

  • de_shuai

    也遇到同样问题,最新版sdk

    2015-11-25 21:46

该问题目前已经被锁定, 无法添加新回复