为什么iphonexr,xs和xsmax不会将环境图像应用到arkit中的场景?(代码片段)

author author     2023-05-13     551

关键词:

从后端(纹理,环境,3D对象)下载到应用程序之后,我以编程方式创建了一个新的SCNScene,包含所有这些内容。

它适用于所有设备,但在iPhone XR,XS和XS Max上,需要环境图像的那些模型的纹理显示为黑色。好像设置了“无”环境。

我不能发布代码或图片,这不是我的项目。我想知道是否有人遇到过这类问题,包括iPhone XR,XS或XS Max和ARKit。

奇怪的是,它不会发生在其他设备上。

谢谢。

编辑1:

以下是错误的痕迹,我将尝试尽快发布有关该项目的更多信息。

2019-02-13 11:21:33.573842+0100 BugAR[508:29509] [DYMTLInitPlatform] platform initialization successful
2019-02-13 11:21:33.769664+0100 BugAR[508:29469] Metal GPU Frame Capture Enabled
2019-02-13 11:21:33.769884+0100 BugAR[508:29469] Metal API Validation Enabled
2019-02-13 11:21:33.974845+0100 BugAR[508:29469] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
2019-02-13 11:21:33.975620+0100 BugAR[508:29469] [MC] Reading from public effective user settings.
=================================================================
Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 508, TID: 29535, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   libobjc.A.dylib                     0x000000021ddff534 <redacted> + 56
5   CoreMotion                          0x0000000224688040 CoreMotion + 307264
6   CoreMotion                          0x0000000224688574 CoreMotion + 308596
7   CoreMotion                          0x0000000224688484 CoreMotion + 308356
8   CoreMotion                          0x00000002246b9c64 CoreMotion + 511076
9   CoreMotion                          0x00000002246b9cc4 CoreMotion + 511172
10  CoreFoundation                      0x000000021eb98354 <redacted> + 28
11  CoreFoundation                      0x000000021eb97c38 <redacted> + 276
12  CoreFoundation                      0x000000021eb92f14 <redacted> + 2324
13  CoreFoundation                      0x000000021eb922e8 CFRunLoopRunSpecific + 452
14  CoreFoundation                      0x000000021eb9304c CFRunLoopRun + 84
15  CoreMotion                          0x00000002246b95fc CoreMotion + 509436
16  libsystem_pthread.dylib             0x000000021e80c974 <redacted> + 132
17  libsystem_pthread.dylib             0x000000021e80c8d0 _pthread_start + 52
18  libsystem_pthread.dylib             0x000000021e814ddc thread_start + 4
2019-02-13 11:21:34.312731+0100 BugAR[508:29535] [reports] Main Thread Checker: UI API called on a background thread: -[UIApplication applicationState]
PID: 508, TID: 29535, Thread name: com.apple.CoreMotion.MotionThread, Queue name: com.apple.root.default-qos.overcommit, QoS: 0
Backtrace:
4   libobjc.A.dylib                     0x000000021ddff534 <redacted> + 56
5   CoreMotion                          0x0000000224688040 CoreMotion + 307264
6   CoreMotion                          0x0000000224688574 CoreMotion + 308596
7   CoreMotion                          0x0000000224688484 CoreMotion + 308356
8   CoreMotion                          0x00000002246b9c64 CoreMotion + 511076
9   CoreMotion                          0x00000002246b9cc4 CoreMotion + 511172
10  CoreFoundation                      0x000000021eb98354 <redacted> + 28
11  CoreFoundation                      0x000000021eb97c38 <redacted> + 276
12  CoreFoundation                      0x000000021eb92f14 <redacted> + 2324
13  CoreFoundation                      0x000000021eb922e8 CFRunLoopRunSpecific + 452
14  CoreFoundation                      0x000000021eb9304c CFRunLoopRun + 84
15  CoreMotion                          0x00000002246b95fc CoreMotion + 509436
16  libsystem_pthread.dylib             0x000000021e80c974 <redacted> + 132
17  libsystem_pthread.dylib             0x000000021e80c8d0 _pthread_start + 52
18  libsystem_pthread.dylib             0x000000021e814ddc thread_start + 4
2019-02-13 11:21:42.015414+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Caused GPU Hang Error (IOAF code 3)
2019-02-13 11:21:42.015509+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Caused GPU Hang Error (IOAF code 3)
2019-02-13 11:21:42.015940+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
2019-02-13 11:21:42.016002+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
2019-02-13 11:21:42.016152+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
2019-02-13 11:21:42.016185+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
2019-02-13 11:21:42.018755+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
2019-02-13 11:21:42.018795+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
2019-02-13 11:21:42.019140+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
2019-02-13 11:21:42.019166+0100 BugAR[508:29514] Execution of the command buffer was aborted due to an error during execution. Discarded (victim of GPU error/recovery) (IOAF code 5)
答案

这是一个Apple bug,当场景的环境图像的分辨率太大时发生。将场景的环境图像大小调整为1000x500可以解决问题。

为啥 iPhone XR/Xs Max 不遵守比率约束?

...?【英文标题】:WhyisratioconstraintnotrespectedoniPhoneXR/XsMax?为什么iPhoneXR/XsMax不遵守比率约束?【发布时间】:2019-06-1917:50:36【问题描述】:我有一个小的UIImageView用于显示用户的个人资料照片。这在iPhone6S上看起来不错,但是当我... 查看详情

iPhone XR / XS / XS Max CSS 媒体查询

】iPhoneXR/XS/XSMaxCSS媒体查询【英文标题】:iPhoneXR/XS/XSMaxCSSmediaqueries【发布时间】:2019-02-1815:09:49【问题描述】:用于定位Apple2018年设备的正确CSS媒体查询有哪些:iPhoneXR/XS/XSMax?【问题讨论】:【参考方案1】:iPhoneXR/*1792x828pxat3... 查看详情

Xcode11 - UIButton 等控件高度为 48,仅在 XR/XSMAX 设备中的 AppDelegate 中

...间】:2019-08-2103:55:50【问题描述】:单独在iOS13中,对于iPhoneXR/XS/XSMax或者在模拟器中,在委托方法didFinishLaunch 查看详情

iPhone XR/XS:AVAssetExportSession 状态失败并出现错误

】iPhoneXR/XS:AVAssetExportSession状态失败并出现错误【英文标题】:iPhoneXR/XS:AVAssetExportSessionstatusfailedwitherror【发布时间】:2019-03-1314:27:07【问题描述】:我正在使用AVAssetExportSession重新导出由Adob​​ePremiereCC编辑的视频,它特定于i... 查看详情

新 iPhone X 型号的尺码等级是多少?

...9-1315:58:22【问题描述】:Apple推出了三款新的iPhoneX机型:iPhoneXR、XS和XSMax。它们的尺寸等级是多少,与其他iPhone型号相比如何?【问题讨论】:【参考方案1】:我将为每个模型提供三个信息:纵向时的尺寸等级、横向时的尺寸... 查看详情

需要 6.5 英寸(iPhone XS Max、iPhone XR)截图

】需要6.5英寸(iPhoneXSMax、iPhoneXR)截图【英文标题】:6.5inch(iPhoneXSMax,iPhoneXR)screenshotisrequired【发布时间】:2019-04-1014:11:24【问题描述】:对于我的应用程序的早期版本,我能够提交一个应用程序,其中只有一个5.5英寸的设备屏... 查看详情

机型尺寸

5640x11366/7/8750x13346/7/8p1242x2208X/Xs1125x2436XsMax1242x2688XR828x1792 查看详情

苹果xsmax卡顿,反应慢是啥原因

...清理内存参考技术A这款手机配置还是非常不错的,应该不会出现卡顿现象,可能是你运行的应用太多才会这样吧。 参考技术B苹果手机出现卡顿反应慢的原因的话,建议你做一下系统的升级,或者是重启一下手机。 查看详情

有谁知道iphonexr的“r”到底是什么意思?答案可能会让你们无奈

...iphoneXR伴随着人们的欢呼声惊艳亮相,不过大家也好奇,为什么要用R来命名新一代的苹果机。刚拿到iphoneXR第一反应就是这手机加了个手机壳?为什么有这么多的颜色,所以大家就觉得“R”就是“rainbow”彩虹的意思。 苹果... 查看详情

具有演示样式 formSheet 的模态 UIViewController 在 iPhone XS Max 和 iPhone XR 上无法正确显示

】具有演示样式formSheet的模态UIViewController在iPhoneXSMax和iPhoneXR上无法正确显示【英文标题】:ModalUIViewControllerwithpresentationstyleformSheetisnotdisplayedcorrectlyoniPhoneXSMaxandiPhoneXR【发布时间】:2018-10-1011:28:20【问题描述】:我有一个从segue... 查看详情

猫猫分享ios适配iphonexsmax,iphonexs,iphonexr(代码片段)

怎么适配xsmxr呢,如果你适配了x那么很简单如果你用了宏像这样:#defineIPHONEX((([[UIScreenmainScreen]nativeBounds].size.height==2436)||([[UIScreenmainScreen]nativeBounds].size.height==2688)||([[UIScreenmainScreen]nativeBounds].size.height==1792))?YES:NO)24... 查看详情

iphonexr如何显示电池电量百分比

...屏幕,iPhoneX用的是OLED的屏幕,在色彩上是比较艳丽的;iPhoneXR用的是LCD,虽然在色彩上没有那么的夺人眼球,但是更加耐用了。这两种屏幕都有自己的优点和缺点,也是这两款手机最明显的差别,选择哪个其实还是看自己的爱... 查看详情

iphonex分辨率

...度提升70%,苹果自主研发的GPU性能则提升30%。扩展资料:iPhoneXR产品配置:机身搭载7nm工艺的A12仿生芯片,采用TrueDepth摄像头,支持FaceID功能。背部采用1200万像素单摄像头,由于A12芯片的加持,iPhoneXR支持人像模式。iPhoneXR搭载... 查看详情

xs:element 和 s:element 有啥区别

...】:what\'sthedifferenceofxs:elementands:elementxs:element和s:element有什么区别【发布时间】:2021-08-2703:44:05【问题描述】:我正在编写代码来使用Web服务。在wsdl中,所有元素类型都是S,xs:element和s:element有什么区别吗?谢谢。<s:elementname=... 查看详情

col-lg-4 和 col-md-3 和 col-xs-3 有啥区别?

...出了col-lg-4和col-Md-3和col-XS-2。但最后列大小只有4,然后为什么我们需要col 查看详情

xsd.exe 不会为 xs:list 标记创建集合(数组或列表)

】xsd.exe不会为xs:list标记创建集合(数组或列表)【英文标题】:xsd.exedoesnotcreateacollection(arrayorlist)forxs:listtag【发布时间】:2019-01-0318:07:29【问题描述】:我有以下xsd标记,我希望在反序列化时创建一个集合,但它没有。<Metric... 查看详情

xsmax硬盘跑分

苹果xsmax跑分一般13万多分是正常的。简单的说就是通过相关的跑分软件对电脑或者手机进行测试以评价其性能,跑分越高性能越好。iPhonexSMax是美国Apple(苹果公司)旗下的智能手机设备,iPhoneXSMax采用6.5英寸OLED屏幕,是iPhone迄... 查看详情

iphonexr拍的heic格式如何在电脑上打开

iPhone新一代已经上市,也是沿袭了上一代的图片格式,不仅有最先进的LCD显示屏,最智能的芯片以及面容ID等等,确实是又一震惊的举动,对于上一代沿袭的照片格式也是特殊的存在,因为目前在其他系统还未普及,但是这种格... 查看详情