mozilla / valence

INACTIVE - http://mzl.la/ghe-archive - Firefox Developer Tools protocol adapters (Unmaintained)
374 stars 66 forks source link

ios_webkit_debug_proxy crashes while running from Firefox WebIDE #114

Closed Ninerian closed 4 years ago

Ninerian commented 9 years ago

As i try to debug IOS from the Firefox Developer Edition, i wasn't able to connect.

The error message inside the FirefoxWebIDE: Operation failed: connecting to Safari on IOS: Error: library is not open.

Here is the crash debug log of the ios_webkit_debug_proxy

Process:         ios_webkit_debug_proxy [2368]
Path:            /Users/USER/Library/Application Support/Firefox/*/ios_webkit_debug_proxy
Identifier:      ios_webkit_debug_proxy
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  firefox [1827]
Responsible:     ios_webkit_debug_proxy [2368]
User ID:         504

Date/Time:       2014-11-24 11:24:53.821 +0100
OS Version:      Mac OS X 10.9.5 (13F34)
Report Version:  11
Anonymous UUID:  5C9461E4-8FE3-3E97-8854-BAF7A6BE80DC

Sleep/Wake UUID: 4886D56C-BD17-46B7-968D-7C05B38E8258

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   ios_webkit_debug_proxy          0x000000010e2769f0 main + 68
1   libdyld.dylib                   0x00007fff83fd25fd start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00007fb173c04b40  rbx: 0x000000010e276a7c  rcx: 0x0000000000000001  rdx: 0x0000000000000000
  rdi: 0x000000010e5c1e00  rsi: 0x00000000ff9fffff  rbp: 0x00007fff5198acf0  rsp: 0x00007fff5198acd0
   r8: 0x0000000000000002   r9: 0x00007fb173c00000  r10: 0x00007fff9070db39  r11: 0x00007fff870d4252
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x00007fff5198ad18  r15: 0x0000000000000004
  rip: 0x000000010e2769f0  rfl: 0x0000000000010202  cr2: 0x000000010e282346

Logical CPU:     2
Error Code:      0x00000000
Trap Number:     6

Binary Images:
       0x10e275000 -        0x10e285fff +ios_webkit_debug_proxy (0) <0BF17C2F-CE5E-333C-A8F8-3F46736DC4DE> /Users/USER/Library/Application Support/Firefox/*/ios_webkit_debug_proxy
       0x10e28c000 -        0x10e292ff7 +libplist.2.dylib (0) <2DCB6C39-5A82-3E4C-8B28-9D4C154209FD> /Users/USER/Library/Application Support/Firefox/*/libplist.2.dylib
       0x10e298000 -        0x10e2a9fff +libimobiledevice.4.dylib (0) <1B6846B9-8E81-3EBB-BCB8-FC4E56F97D05> /Users/USER/Library/Application Support/Firefox/*/libimobiledevice.4.dylib
       0x10e2ba000 -        0x10e3abff7 +libxml2.2.dylib (0) <35434296-B70F-3C55-B0AD-0C338F40BEE6> /Users/USER/Library/Application Support/Firefox/*/libxml2.2.dylib
       0x10e3dd000 -        0x10e3e1fff +libusbmuxd.2.dylib (0) <1FDE35BB-58DD-3589-9F56-57935E54E816> /Users/USER/Library/Application Support/Firefox/*/libusbmuxd.2.dylib
       0x10e3e7000 -        0x10e420ff7 +libssl.1.0.0.dylib (0) <C70E951B-86CD-3F4C-A1DC-6AB02B838B0F> /Users/USER/Library/Application Support/Firefox/*/libssl.1.0.0.dylib
       0x10e43b000 -        0x10e54cfef +libcrypto.1.0.0.dylib (0) <B3590A5D-883A-337D-84F8-8217F641E340> /Users/USER/Library/Application Support/Firefox/*/libcrypto.1.0.0.dylib
    0x7fff6f554000 -     0x7fff6f587817  dyld (239.4) <7AD43B9B-5CEA-3C7E-9836-A06909F9CA56> /usr/lib/dyld
    0x7fff8300d000 -     0x7fff83031fff  libxpc.dylib (300.90.2) <AB40CD57-F454-3FD4-B415-63B3C0D5C624> /usr/lib/system/libxpc.dylib
    0x7fff83bec000 -     0x7fff83bf2ff7  libsystem_platform.dylib (24.90.1) <3C3D3DA8-32B9-3243-98EC-D89B9A1670B3> /usr/lib/system/libsystem_platform.dylib
    0x7fff83fcd000 -     0x7fff83fcefff  libunc.dylib (28) <62682455-1862-36FE-8A04-7A6B91256438> /usr/lib/system/libunc.dylib
    0x7fff83fcf000 -     0x7fff83fd2ff7  libdyld.dylib (239.4) <41077DD7-F909-3B8A-863E-72AE304EDE13> /usr/lib/system/libdyld.dylib
    0x7fff843e2000 -     0x7fff843e2ff7  libkeymgr.dylib (28) <3AA8D85D-CF00-3BD3-A5A0-E28E1A32A6D8> /usr/lib/system/libkeymgr.dylib
    0x7fff84bcb000 -     0x7fff84d78f27  libobjc.A.dylib (551.1) <AD7FD984-271E-30F4-A361-6B20319EC73B> /usr/lib/libobjc.A.dylib
    0x7fff85de1000 -     0x7fff85dfbfff  libdispatch.dylib (339.92.1) <C4E4A18D-3C3B-3C9C-8709-A4270D998DE7> /usr/lib/system/libdispatch.dylib
    0x7fff86324000 -     0x7fff86376fff  libc++.1.dylib (120) <4F68DFC5-2077-39A8-A449-CAC5FDEE7BDE> /usr/lib/libc++.1.dylib
    0x7fff8705d000 -     0x7fff87065fff  libsystem_dnssd.dylib (522.92.1) <3F8C6A07-3046-3E88-858F-D9CEFC43A405> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff870bb000 -     0x7fff870c2ffb  libcopyfile.dylib (103.92.1) <CF29DFF6-0589-3590-834C-82E2316612E8> /usr/lib/system/libcopyfile.dylib
    0x7fff870c3000 -     0x7fff870deff7  libsystem_malloc.dylib (23.10.1) <A695B4E4-38E9-332E-A772-29D31E3F1385> /usr/lib/system/libsystem_malloc.dylib
    0x7fff87376000 -     0x7fff8737dff7  libsystem_pthread.dylib (53.1.4) <AB498556-B555-310E-9041-F67EC9E00E2C> /usr/lib/system/libsystem_pthread.dylib
    0x7fff87c84000 -     0x7fff87c85ffb  libremovefile.dylib (33) <3543F917-928E-3DB2-A2F4-7AB73B4970EF> /usr/lib/system/libremovefile.dylib
    0x7fff87de6000 -     0x7fff87df7ff7  libz.1.dylib (53) <42E0C8C6-CA38-3CA4-8619-D24ED5DD492E> /usr/lib/libz.1.dylib
    0x7fff88e31000 -     0x7fff88e58ffb  libsystem_info.dylib (449.1.3) <7D41A156-D285-3849-A2C3-C04ADE797D98> /usr/lib/system/libsystem_info.dylib
    0x7fff89926000 -     0x7fff89968ff7  libauto.dylib (185.5) <F45C36E8-B606-3886-B5B1-B6745E757CA8> /usr/lib/libauto.dylib
    0x7fff89fdd000 -     0x7fff89fe2ff7  libunwind.dylib (35.3) <78DCC358-2FC1-302E-B395-0155B47CB547> /usr/lib/system/libunwind.dylib
    0x7fff8a373000 -     0x7fff8a378fff  libmacho.dylib (845) <1D2910DF-C036-3A82-A3FD-44FF73B5FF9B> /usr/lib/system/libmacho.dylib
    0x7fff8a47f000 -     0x7fff8a481ff3  libsystem_configuration.dylib (596.15) <4998CB6A-9D54-390A-9F57-5D1AC53C135C> /usr/lib/system/libsystem_configuration.dylib
    0x7fff8a7ed000 -     0x7fff8a83bfff  libcorecrypto.dylib (161.1) <F3973C28-14B6-3006-BB2B-00DD7F09ABC7> /usr/lib/system/libcorecrypto.dylib
    0x7fff8af03000 -     0x7fff8af2aff7  libsystem_network.dylib (241.3) <8B1E1F1D-A5CC-3BAE-8B1E-ABC84337A364> /usr/lib/system/libsystem_network.dylib
    0x7fff8c19f000 -     0x7fff8c1a9fff  libcommonCrypto.dylib (60049) <8C4F0CA0-389C-3EDC-B155-E62DD2187E1D> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8c2ae000 -     0x7fff8c2b2ff7  libsystem_stats.dylib (93.90.3) <C588E082-D94B-3510-9F9A-7AD83B3402DE> /usr/lib/system/libsystem_stats.dylib
    0x7fff8c2b3000 -     0x7fff8c3a4ff9  libiconv.2.dylib (41) <BB44B115-AC32-3877-A0ED-AEC6232A4563> /usr/lib/libiconv.2.dylib
    0x7fff8c41b000 -     0x7fff8c41dff7  libquarantine.dylib (71) <7A1A2BCB-C03D-3A25-BFA4-3E569B2D2C38> /usr/lib/system/libquarantine.dylib
    0x7fff8c7d0000 -     0x7fff8c7d1ff7  libsystem_blocks.dylib (63) <FB856CD1-2AEA-3907-8E9B-1E54B6827F82> /usr/lib/system/libsystem_blocks.dylib
    0x7fff8c8b7000 -     0x7fff8c940ff7  libsystem_c.dylib (997.90.3) <6FD3A400-4BB2-3B95-B90C-BE6E9D0D78FA> /usr/lib/system/libsystem_c.dylib
    0x7fff8ca22000 -     0x7fff8ca4bff7  libc++abi.dylib (49.1) <21A807D3-6732-3455-B77F-743E9F916DF0> /usr/lib/libc++abi.dylib
    0x7fff8cc9c000 -     0x7fff8cc9dfff  libsystem_sandbox.dylib (278.11.1) <0D0B13EA-6B7A-3AC8-BE60-B548543BEB77> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8cf34000 -     0x7fff8cf3bfff  libcompiler_rt.dylib (35) <4CD916B2-1B17-362A-B403-EF24A1DAC141> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8cfa0000 -     0x7fff8cfb1ff7  libsystem_asl.dylib (217.1.4) <655FB343-52CF-3E2F-B14D-BEBF5AAEF94D> /usr/lib/system/libsystem_asl.dylib
    0x7fff8dadf000 -     0x7fff8dae3ff7  libcache.dylib (62) <BDC1E65B-72A1-3DA3-A57C-B23159CAAD0B> /usr/lib/system/libcache.dylib
    0x7fff8dbb7000 -     0x7fff8dbbeff8  liblaunch.dylib (842.92.1) <A40A0C7B-3216-39B4-8AE0-B5D3BAF1DA8A> /usr/lib/system/liblaunch.dylib
    0x7fff8e8dc000 -     0x7fff8e8e5ffb  libsystem_notify.dylib (121.20.1) <9B34B4FE-F5AD-3F09-A5F0-46AFF3571323> /usr/lib/system/libsystem_notify.dylib
    0x7fff8e9c7000 -     0x7fff8e9c8ff7  libSystem.B.dylib (1197.1.1) <70B235FC-BCED-367B-BA6C-67C299BAE7D9> /usr/lib/libSystem.B.dylib
    0x7fff8ebd8000 -     0x7fff8ebf4ff7  libsystem_kernel.dylib (2422.115.4) <9EDE872E-2A9E-3A78-8E1D-AB790794A098> /usr/lib/system/libsystem_kernel.dylib
    0x7fff8f6da000 -     0x7fff8f6dbff7  libDiagnosticMessagesClient.dylib (100) <4CDB0F7B-C0AF-3424-BC39-495696F0DB1E> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff8fe83000 -     0x7fff8feb2fd2  libsystem_m.dylib (3047.16) <B7F0E2E4-2777-33FC-A787-D6430B630D54> /usr/lib/system/libsystem_m.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 11457
    thread_create: 1
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=75.2M resident=34.3M(46%) swapped_out_or_unallocated=40.9M(54%)
Writable regions: Total=17.7M written=304K(2%) resident=368K(2%) swapped_out=0K(0%) unallocated=17.3M(98%)

REGION TYPE                      VIRTUAL
===========                      =======
Kernel Alloc Once                     4K
MALLOC                             9396K
MALLOC (admin)                       16K
STACK GUARD                        56.0M
Stack                              8192K
VM_ALLOCATE                           8K
__DATA                              864K
__LINKEDIT                         66.8M
__TEXT                             8612K
shared memory                         4K
===========                      =======
TOTAL                             149.2M

If you need further informations, you could contact me through this issue, or over the #devtools irc Channel. My nickname is Ninerian.

jryans commented 9 years ago

Do you see this issue every time? I have not seen this problem yet, so we'll likely need lots of details to try to reproduce it.

I assume from your IRC messages you are trying to use the iOS Simulator? Are there any iOS devices connected as well?

What version of the simulator? What version of Xcode is installed?

What are the exact steps you are taking? For example, when do you start the simulator? Do you open anything on the simulator, or just start it, etc.?

Ninerian commented 9 years ago

Yes, I try to debug a page on the iOS Simulator, and there aren't any devices connected. It occurs every time I try to connect to the Device. Either to Safari on iOS and to Chrome Desktop.

Xcode: 6.1 (6A1052d) IOS Simulator: 8.1 (550.3)

Steps I take:

  1. Open Xcode
  2. Open IOS Simulator
  3. Load Safari
  4. Open Page
  5. Open Firefox
  6. Open WebIDE
  7. Click on Safari on IOS

Maybe its caused by the CaseSensitive Formatting of my Harddrive. But I couldn't test this, without reformatting.

DarkDaskin commented 9 years ago

It also crashes on Windows: https://github.com/artygus/ios-webkit-debug-proxy-win32/issues/12 Not sure if the cause is the same.