I suggest you ...

LiveReload not launching on MacOS Sierra NSRangeException

Here is the log file which shows the NSRangeException:

---
app: Sending: ["app.init", {"preferencesFolder": "/Users/cheng/Library/Application Support/LiveReload/Data", "pluginFolders": ["/Applications/LiveReload.app/Contents/Resources"], "version": "2.3.81"}]
app: Received: 'Hello!'
app: Cannot parse received line as JSON: 'Hello!'
2017-02-03 10:47:35.760 LiveReload[55470:11510674] User's shell is /bin/zsh
2017-02-03 10:47:35 node: App to Node: ["app.init", {"preferencesFolder": "/Users/cheng/Library/Application Support/LiveReload/Data", "pluginFolders": ["/Applications/LiveReload.app/Contents/Resources"], "version": "2.3.81"}]
2017-02-03 10:47:35 node: WebSocket server listening on port 35729.
2017-02-03 10:47:35 node: Backend is up and running.
2017-02-03 10:47:36.165 LiveReload[55470:11510674] User's PATH as reported by /bin/zsh is /usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
2017-02-03 10:47:36.171 LiveReload[55470:11510674] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSTaggedPointerString substringToIndex:]: Index 5 out of bounds; string length 1'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff8b5a348b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00007fff9fd05cad objc_exception_throw + 48
2 CoreFoundation 0x00007fff8b62196d +[NSException raise:format:] + 205
3 Foundation 0x00007fff8cf0d87f -[NSString substringToIndex:] + 118
4 LiveReload 0x0000000105ad7041 LiveReload + 188481
5 CoreFoundation 0x00007fff8b6213cc ____NSDictionaryEnumerate_block_invoke.431 + 28
6 CoreFoundation 0x00007fff8b4d405a CFBasicHashApply + 122
7 CoreFoundation 0x00007fff8b517460 __NSDictionaryEnumerate + 288
8 LiveReload 0x0000000105ad822e LiveReload + 193070
9 libdispatch.dylib 0x00007fffa05b6f5f _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007fffa05ae128 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fffa05bbbb3 _dispatch_main_queue_callback_4CF + 925
12 CoreFoundation 0x00007fff8b558be9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
13 CoreFoundation 0x00007fff8b51a00d __CFRunLoopRun + 2205
14 CoreFoundation 0x00007fff8b519514 CFRunLoopRunSpecific + 420
15 HIToolbox 0x00007fff8aab6fbc RunCurrentEventLoopInMode + 240
16 HIToolbox 0x00007fff8aab6cf9 ReceiveNextEventCommon + 184
17 HIToolbox 0x00007fff8aab6c26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
18 AppKit 0x00007fff891a0b79 _DPSNextEvent + 1093
19 AppKit 0x00007fff898b61c3 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1637
20 AppKit 0x00007fff8919553d -[NSApplication run] + 926
21 AppKit 0x00007fff891601ad NSApplicationMain + 1237
22 LiveReload 0x0000000105aab1f4 LiveReload + 8692
)
libc++abi.dylib: terminating with uncaught exception of type NSException
2017-02-03 10:47:36 node: KTNXBYE

---

9 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Cheng GuoCheng Guo shared this idea  ·   ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • robeenrobeen commented  · 

        I've got the same exact issue...

        LOGS-------
        app: Sending: ["app.init", {"preferencesFolder": "/Users/robeen/Library/Application Support/LiveReload/Data", "pluginFolders": ["/private/var/folders/r5/9jlrmgls0vq48x0zp_3rygtc0000gn/T/AppTranslocation/26EAFA48-0B3D-4297-8AB2-8454861FA950/d/LiveReload.app/Contents/Resources"], "version": "2.3.66"}]
        app: Received: 'Hello!'
        app: Cannot parse received line as JSON: 'Hello!'
        2017-03-15 21:24:38.295 LiveReload[24748:4443102] User's shell is /bin/bash
        2017-03-15 21:24:38 node: App to Node: ["app.init", {"preferencesFolder": "/Users/robeen/Library/Application Support/LiveReload/Data", "pluginFolders": ["/private/var/folders/r5/9jlrmgls0vq48x0zp_3rygtc0000gn/T/AppTranslocation/26EAFA48-0B3D-4297-8AB2-8454861FA950/d/LiveReload.app/Contents/Resources"], "version": "2.3.66"}]
        2017-03-15 21:24:38 node: WebSocket server listening on port 35729.
        2017-03-15 21:24:38 node: Backend is up and running.
        2017-03-15 21:24:38.464 LiveReload[24748:4443102] User's PATH as reported by /bin/bash is /Users/robeen/.rvm/gems/ruby-2.2.3/bin:/Users/robeen/.rvm/gems/ruby-2.2.3@global/bin:/Users/robeen/.rvm/rubies/ruby-2.2.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/robeen/.rvm/bin
        2017-03-15 21:24:38.470 LiveReload[24748:4443102] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSCFConstantString substringToIndex:]: Index 5 out of bounds; string length 1'
        *** First throw call stack:
        (
        0 CoreFoundation 0x00007fffb4634e7b __exceptionPreprocess + 171
        1 libobjc.A.dylib 0x00007fffc921ecad objc_exception_throw + 48
        2 CoreFoundation 0x00007fffb46b399d +[NSException raise:format:] + 205
        3 Foundation 0x00007fffb5fb61df -[NSString substringToIndex:] + 118
        4 LiveReload 0x000000010002a064 __StatAllToParams_block_invoke + 54
        5 CoreFoundation 0x00007fffb46b33fc ____NSDictionaryEnumerate_block_invoke.431 + 28
        6 CoreFoundation 0x00007fffb45654ba CFBasicHashApply + 122
        7 CoreFoundation 0x00007fffb45a88c0 __NSDictionaryEnumerate + 288
        8 LiveReload 0x000000010002b240 AppNewsKitPingServer + 746
        9 libdispatch.dylib 0x00007fffc9ad4ef7 _dispatch_call_block_and_release + 12
        10 libdispatch.dylib 0x00007fffc9acc0b8 _dispatch_client_callout + 8
        11 libdispatch.dylib 0x00007fffc9ad9b4b _dispatch_main_queue_callback_4CF + 925
        12 CoreFoundation 0x00007fffb45ea529 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
        13 CoreFoundation 0x00007fffb45ab46d __CFRunLoopRun + 2205
        14 CoreFoundation 0x00007fffb45aa974 CFRunLoopRunSpecific + 420
        15 HIToolbox 0x00007fffb3b36a5c RunCurrentEventLoopInMode + 240
        16 HIToolbox 0x00007fffb3b36799 ReceiveNextEventCommon + 184
        17 HIToolbox 0x00007fffb3b366c6 _BlockUntilNextEventMatchingListInModeWithFilter + 71
        18 AppKit 0x00007fffb20dc5b4 _DPSNextEvent + 1120
        19 AppKit 0x00007fffb2856d6b -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2789
        20 AppKit 0x00007fffb20d0f35 -[NSApplication run] + 926
        21 AppKit 0x00007fffb209b850 NSApplicationMain + 1237
        22 LiveReload 0x00000001000012f4 start + 52
        )
        libc++abi.dylib: terminating with uncaught exception of type NSException
        2017-03-15 21:24:38 node: KTNXBYE

      • Anonymous commented  · 

        This was first reported last Oct - it is now March with no comment or fix? Is LiveReload dead?

      • Paul WenzelPaul Wenzel commented  · 

        I've been getting the same error, and pasted a color-coded log here: https://cl.ly/180F2r2L3U3f.

        Running Mac OS Sierra 10.12.3 with the latest version from the Mac App Store. LiveReload worked for a while, then suddenly started doing this. I don't have any other processes running on that port. Could LiveReload be using a local dependency that is incompatible?

      Feedback and Knowledge Base