Evoforce
Evoforce
  • 发布:2024-06-20 15:23
  • 更新:2024-06-20 15:23
  • 阅读:138

【报Bug】hello-uni-app-x模板运行ios模拟器报错

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 14.5 (23F79)

HBuilderX类型: 正式

HBuilderX版本号: 4.15

手机系统: iOS

手机系统版本号: iOS 17

手机厂商: 模拟器

手机机型: Iphone15

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

以下是崩溃的日志


Translated Report (Full Report Below)


Incident Identifier: CCE83249-AD49-4E7F-90B8-95E1037CB0BD
CrashReporter Key:   39243DD1-CDAB-E8F9-8B1E-DD6289719FAE
Hardware Model:      MacBookPro18,3
Process:             UniAppX [65788]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/B8D8968A-5EA9-4527-8C9A-02443DF27DAB/data/Containers/Bundle/Application/AF6F9140-8A0D-41FF-A9BA-AECA854C306A/Pandora_simulator_debug_4.15.app/UniAppX
Identifier:          io.dcloud.uniappx
Version:             4.15.10300 (415)
Code Type:           X86-64 (Native)
Role:                Foreground
Parent Process:      launchd_sim [65514]
Coalition:           com.apple.CoreSimulator.SimDevice.B8D8968A-5EA9-4527-8C9A-02443DF27DAB [20618]
Responsible Process: SimulatorTrampoline [1090]

Date/Time:           2024-06-19 17:59:37.4736 +0800
Launch Time:         2024-06-19 17:59:37.4161 +0800
OS Version:          macOS 14.5 (23F79)
Release Type:        User
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Subtype: UNKNOWN_0x32 at 0x000000010bd02000
Exception Codes: 0x0000000000000032, 0x000000010bd02000
VM Region Info: 0x10bd02000 is in 0x10bd02000-0x10be9c000;  bytes after start: 0  bytes before end: 1679359
      REGION TYPE                    START - END         [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      dyld private memory         10bd01000-10bd02000    [    4K] ---/--- SM=NUL  
--->  mapped file                 10bd02000-10be9c000    [ 1640K] r--/rwx SM=COW  Object_id=b0b01916
      GAP OF 0xf6bde000 BYTES
      __TEXT                      202a7a000-202b0b000    [  580K] r-x/r-x SM=COW  /usr/lib/dyld
Termination Reason: CODESIGNING 2 Invalid Page

Triggered by Thread:  0

Thread 0 Crashed:
0           0x102a99d70 ???
1   dyld_sim                              0x10b3142ec invocation function for block in dyld4::Loader::getOnDiskBinarySliceOffset(dyld4::RuntimeState&, dyld3::MachOAnalyzer const, char const) + 30
2   dyld_sim                              0x10b318f4d dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const, bool, void (void const, unsigned long, bool, dyld4::FileID const&, char const) block_pointer) const + 143
3   dyld_sim                              0x10b314273 dyld4::Loader::getOnDiskBinarySliceOffset(dyld4::RuntimeState&, dyld3::MachOAnalyzer const
, char const) + 215
4   dyld_sim                              0x10b31816e dyld4::JustInTimeLoader::makeLaunchLoader(Diagnostics&, dyld4::RuntimeState&, dyld3::MachOAnalyzer const
, char const, mach_o::Layout const) + 58
5   dyld_sim                              0x10b302825 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const) + 272
6   dyld_sim                              0x10b30234c _dyld_sim_prepare + 844
7   dyld                                  0x202a81e47 dyld4::prepareSim(dyld4::RuntimeState&, char const
) + 1558
8   dyld                                  0x202a805f6 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 279
9   dyld                                  0x202a802ff start + 1839

Thread 1:: com.apple.rosetta.exceptionserver
0   ???                                0x7ff7ffe66494 ???

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x000000010bd02000  rbx: 0x0000000000199190  rcx: 0x0000000001000000  rdx: 0x0000000000199190
  rdi: 0x000000010bd02000  rsi: 0x000000010bd02000  rbp: 0x00000003093c99f0  rsp: 0x00000003093c99f0
   r8: 0x00000003093c9a70   r9: 0x00000003093c9aa0  r10: 0xa6ba7086486500dc  r11: 0x0000000000008000
  r12: 0x00000003093c9f50  r13: 0x00000003093c9f08  r14: 0x000000010bd02000  r15: 0x00000003093c9ed0
  rip:        rfl: 0x0000000000000206
 tmp0: 0x0000000102a99d60 tmp1: 0x0000000102a99cc8 tmp2: 0x000000010b3142ec

Binary Images:
       0x202a7a000 -        0x202b0afff dyld ()  /usr/lib/dyld
       0x10286b000 -        0x102922fff io.dcloud.uniappx (4.15.10300) <16a2c4fd-f55f-3143-8d18-2415f3d8a7d0> /Users/USER/Library/Developer/CoreSimulator/Devices/B8D8968A-5EA9-4527-8C9A-02443DF27DAB/data/Containers/Bundle/Application/AF6F9140-8A0D-41FF-A9BA-AECA854C306A/Pandora_simulator_debug_4.15.app/UniAppX
       0x10b301000 -        0x10b358fff dyld_sim (
) <39c2d7d4-1de8-3a61-a08f-81f004308f58> /Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim
               0x0 - 0xffffffffffffffff ??? (*) <00000000-0000-0000-0000-000000000000> ???

Error Formulating Crash Report:
dyld_process_snapshot_get_shared_cache failed
PC register does not match crashing frame (0x0 vs 0x102A99D70)

EOF


Full Report


{"app_name":"UniAppX","timestamp":"2024-06-19 17:59:42.00 +0800","app_version":"4.15.10300","slice_uuid":"16a2c4fd-f55f-3143-8d18-2415f3d8a7d0","build_version":"415","platform":7,"bundleID":"io.dcloud.uniappx","share_with_app_devs":1,"is_first_party":0,"bug_type":"309","os_version":"macOS 14.5 (23F79)","roots_installed":0,"name":"UniAppX","incident_id":"CCE83249-AD49-4E7F-90B8-95E1037CB0BD"}
{
  "uptime" : 64000,
  "procRole" : "Foreground",
  "version" : 2,
  "userID" : 501,
  "deployVersion" : 210,
  "modelCode" : "MacBookPro18,3",
  "coalitionID" : 20618,
  "osVersion" : {
    "train" : "macOS 14.5",
    "build" : "23F79",
    "releaseType" : "User"
  },
  "captureTime" : "2024-06-19 17:59:37.4736 +0800",
  "codeSigningMonitor" : 1,
  "incident" : "CCE83249-AD49-4E7F-90B8-95E1037CB0BD",
  "pid" : 65788,
  "translated" : true,
  "cpuType" : "X86-64",
  "roots_installed" : 0,
  "bug_type" : "309",
  "procLaunch" : "2024-06-19 17:59:37.4161 +0800",
  "procStartAbsTime" : 1559170547406,
  "procExitAbsTime" : 1559171416192,
  "procName" : "UniAppX",
  "procPath" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/B8D8968A-5EA9-4527-8C9A-02443DF27DAB\/data\/Containers\/Bundle\/Application\/AF6F9140-8A0D-41FF-A9BA-AECA854C306A\/Pandora_simulator_debug_4.15.app\/UniAppX",
  "bundleInfo" : {"CFBundleShortVersionString":"4.15.10300","CFBundleVersion":"415","CFBundleIdentifier":"io.dcloud.uniappx"},
  "storeInfo" : {"deviceIdentifierForVendor":"97FA9051-8C31-50FA-B2E0-6379E2AE31C7","thirdParty":true},
  "parentProc" : "launchd_sim",
  "parentPid" : 65514,
  "coalitionName" : "com.apple.CoreSimulator.SimDevice.B8D8968A-5EA9-4527-8C9A-02443DF27DAB",
  "crashReporterKey" : "39243DD1-CDAB-E8F9-8B1E-DD6289719FAE",
  "responsiblePid" : 1090,
  "responsibleProc" : "SimulatorTrampoline",
  "codeSigningID" : "",
  "codeSigningTeamID" : "",
  "codeSigningFlags" : 16777728,
  "codeSigningValidationCategory" : 0,
  "codeSigningTrustLevel" : 4294967295,
  "wakeTime" : 31472,
  "sleepWakeUUID" : "34F20156-BD6B-48F0-B1A2-0BB4EE63EDAB",
  "sip" : "enabled",
  "vmRegionInfo" : "0x10bd02000 is in 0x10bd02000-0x10be9c000;  bytes after start: 0  bytes before end: 1679359
      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL
      dyld private memory         10bd01000-10bd02000    [    4K] ---\/--- SM=NUL  
--->  mapped file                 10bd02000-10be9c000    [ 1640K] r--\/rwx SM=COW  Object_id=b0b01916
      GAP OF 0xf6bde000 BYTES
      TEXT                      202a7a000-202b0b000    [  580K] r-x\/r-x SM=COW  \/usr\/lib\/dyld",
  "exception" : {"codes":"0x0000000000000032, 0x000000010bd02000","rawCodes":[50,4493156352],"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x000000010bd02000"},
  "termination" : {"flags":0,"code":2,"namespace":"CODESIGNING","indicator":"Invalid Page"},
  "vmregioninfo" : "0x10bd02000 is in 0x10bd02000-0x10be9c000;  bytes after start: 0  bytes before end: 1679359
      REGION TYPE                    START - END         [ VSIZE] PRT\/MAX SHRMOD  REGION DETAIL
      dyld private memory         10bd01000-10bd02000    [    4K] ---\/--- SM=NUL  
--->  mapped file                 10bd02000-10be9c000    [ 1640K] r--\/rwx SM=COW  Object_id=b0b01916
      GAP OF 0xf6bde000 BYTES
      
TEXT                      202a7a000-202b0b000    [  580K] r-x\/r-x SM=COW  \/usr\/lib\/dyld",
  "extMods" : {"caller":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"system":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"targeted":{"thread_create":0,"thread_set_state":0,"task_for_pid":0},"warnings":0},
  "faultingThread" : 0,
  "threads" : [{"triggered":true,"id":2047922,"threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":13039868400},"r12":{"value":13039869776},"rosetta":{"tmp2":{"value":4482745068},"tmp1":{"value":4339637448},"tmp0":{"value":4339637600}},"rbx":{"value":1675664},"r8":{"value":13039868528},"r15":{"value":13039869648},"r10":{"value":12014038678006726876},"rdx":{"value":1675664},"rdi":{"value":4493156352},"r9":{"value":13039868576},"r13":{"value":13039869704},"rflags":{"value":518},"rax":{"value":4493156352},"rsp":{"value":13039868400},"r11":{"value":32768},"rcx":{"value":16777216},"r14":{"value":4493156352},"rsi":{"value":4493156352}},"frames":[{"imageOffset":4339637616,"region":"","imageIndex":3},{"imageOffset":78572,"symbol":"invocation function for block in dyld4::Loader::getOnDiskBinarySliceOffset(dyld4::RuntimeState&, dyld3::MachOAnalyzer const, char const)","symbolLocation":30,"imageIndex":2},{"imageOffset":98125,"symbol":"dyld4::SyscallDelegate::withReadOnlyMappedFile(Diagnostics&, char const, bool, void (void const, unsigned long, bool, dyld4::FileID const&, char const) block_pointer) const","symbolLocation":143,"imageIndex":2},{"imageOffset":78451,"symbol":"dyld4::Loader::getOnDiskBinarySliceOffset(dyld4::RuntimeState&, dyld3::MachOAnalyzer const, char const)","symbolLocation":215,"imageIndex":2},{"imageOffset":94574,"symbol":"dyld4::JustInTimeLoader::makeLaunchLoader(Diagnostics&, dyld4::RuntimeState&, dyld3::MachOAnalyzer const, char const, mach_o::Layout const)","symbolLocation":58,"imageIndex":2},{"imageOffset":6181,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const)","symbolLocation":272,"imageIndex":2},{"imageOffset":4940,"symbol":"_dyld_sim_prepare","symbolLocation":844,"imageIndex":2},{"imageOffset":32327,"symbol":"dyld4::prepareSim(dyld4::RuntimeState&, char const)","symbolLocation":1558,"imageIndex":0},{"imageOffset":26102,"symbol":"dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*)","symbolLocation":279,"imageIndex":0},{"imageOffset":25343,"symbol":"start","symbolLocation":1839,"imageIndex":0}]},{"id":2047923,"name":"com.apple.rosetta.exceptionserver","threadState":{"flavor":"x86_THREAD_STATE","rbp":{"value":6609954668544},"r12":{"value":4339637252,"region":""},"rosetta":{"tmp2":{"value":0},"tmp1":{"value":4428111290115},"tmp0":{"value":10337986281472}},"rbx":{"value":4428111290115},"r8":{"value":1539},"r15":{"value":4898951168},"r10":{"value":15586436317184},"rdx":{"value":0},"rdi":{"value":0},"r9":{"value":0},"r13":{"value":4473711488},"rflags":{"value":582},"rax":{"value":268451845},"rsp":{"value":10337986281472},"r11":{"value":4493156352},"rcx":{"value":17314086914},"r14":{"value":4339637616,"region":""},"rsi":{"value":2616}},"frames":[{"imageOffset":140703126938772,"imageIndex":3}]}],
  "usedImages" : [
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 8634474496,
    "size" : 593920,
    "uuid" : "baa6f02e-dff3-3562-8c99-ea2820c91ad9",
    "path" : "\/usr\/lib\/dyld",
    "name" : "dyld"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4337348608,
    "CFBundleShortVersionString" : "4.15.10300",
    "CFBundleIdentifier" : "io.dcloud.uniappx",
    "size" : 753664,
    "uuid" : "16a2c4fd-f55f-3143-8d18-2415f3d8a7d0",
    "path" : "\/Users\/USER\/Library\/Developer\/CoreSimulator\/Devices\/B8D8968A-5EA9-4527-8C9A-02443DF27DAB\/data\/Containers\/Bundle\/Application\/AF6F9140-8A0D-41FF-A9BA-AECA854C306A\/Pandora_simulator_debug_4.15.app\/UniAppX",
    "name" : "UniAppX",
    "CFBundleVersion" : "415"
  },
  {
    "source" : "P",
    "arch" : "x86_64",
    "base" : 4482666496,
    "size" : 360448,
    "uuid" : "39c2d7d4-1de8-3a61-a08f-81f004308f58",
    "path" : "\/Library\/Developer\/CoreSimulator\/Volumes\/iOS_21C62\/Library\/Developer\/CoreSimulator\/Profiles\/Runtimes\/iOS 17.2.simruntime\/Contents\/Resources\/RuntimeRoot\/usr\/lib\/dyld_sim",
    "name" : "dyld_sim"
  },
  {
    "size" : 0,
    "source" : "A",
    "base" : 0,
    "uuid" : "00000000-0000-0000-0000-000000000000"
  }
],
  "vmSummary" : "ReadOnly portion of Libraries: Total=2944K resident=0K(0%) swapped_out_or_unallocated=2944K(100%)
Writable regions: Total=153.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=153.6M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Rosetta Arena                     4096K        2 
Rosetta Generic                   1036K      256 
Rosetta IndirectBranch              32K        1 
Rosetta JIT                      128.0M        1 
Rosetta Return Stack                20K        2 
Rosetta Thread Context              20K        2 
Stack                             8176K        1 
Stack Guard                       56.0M        1 
VM_ALLOCATE                         48K        1 
VM_ALLOCATE (reserved)              20K        2         reserved VM address space (unallocated)
DATA                             128K        4 
DATA_CONST                        36K        2 
__DATA_DIRTY                        12K        3 
LINKEDIT                        1296K        5 
TEXT                            1668K        3 
dyld private memory               32.0G       11 
mapped file                       2260K        8 
===========                     =======  ======= 
TOTAL                             32.2G      305 
TOTAL, minus reserved VM space    32.2G      305 
",
  "legacyInfo" : {
  "threadTriggered" : {

  }
},
  "logWritingSignature" : "d82feb4139dbe8875d35426ac12df7872939600f",
  "trialInfo" : {
  "rollouts" : [
    {
      "rolloutId" : "61675b89201f677a9a4cbd65",
      "factorPackIds" : {
        "HEALTH_FEATURE_AVAILABILITY" : "65a855f5f087695cfac03d1f"
      },
      "deploymentId" : 240000123
    },
    {
      "rolloutId" : "65a8173205d942272410674b",
      "factorPackIds" : {
        "SIRI_HOME_AUTOMATION_SERVER_FLOW_DEPRECATION" : "65d39fa4cb0e2417d11ce5f6"
      },
      "deploymentId" : 240000001
    }
  ],
  "experiments" : [
    {
      "treatmentId" : "3dff9c91-a8fb-424e-a656-c8d6e6037574",
      "experimentId" : "662152ede2d11d1408c4db33",
      "deploymentId" : 400000014
    },
    {
      "treatmentId" : "45f4e2a5-551b-4bc2-a2dc-19c244dda8f8",
      "experimentId" : "6643969b3099cf28e049862f",
      "deploymentId" : 400000003
    }
  ]
},
  "reportNotes" : [
  "dyld_process_snapshot_get_shared_cache failed",
  "PC register does not match crashing frame (0x0 vs 0x102A99D70)"
]
}

Model: MacBookPro18,3, BootROM 10151.121.1, proc 10:8:2 processors, 32 GB, SMC 
Graphics: Apple M1 Pro, Apple M1 Pro, Built-In
Display: Color LCD, 3024 x 1964 Retina, Main, MirrorOff, Online
Display: Redmi 27 NU, 3840 x 2160 (2160p/4K UHD 1 - Ultra High Definition), MirrorOff, Online
Memory Module: LPDDR5, Hynix
AirPort: spairport_wireless_card_type_wifi (0x14E4, 0x4387), wl0: Apr  4 2024 20:37:43 version 20.103.14.0.8.7.174 FWID 01-95f1e684
AirPort: 
Bluetooth: Version (null), 0 services, 0 devices, 0 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: USB31Bus
USB Device: Apple Watch Magnetic Charging Cable
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.
Thunderbolt Bus: MacBook Pro, Apple Inc.

操作步骤:

1.创建项目选择模板hello-uni-app-x
2.关联初始化云端uniCloud
3.运行到IOS模拟器标准基座

预期结果:

正常打开app

实际结果:

崩溃闪退

bug描述:

创建项目选择模板hello-uni-app-x
关联初始化云端uniCloud
运行到IOS模拟器标准基座
编译完成后自动打开app后闪退

2024-06-20 15:23 负责人:无 分享
已邀请:

要回复问题请先登录注册