Skip to content

Ark: R fails to start up due to dyld symbol not found #3812

@DavisVaughan

Description

@DavisVaughan
[R] /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/ark/ark --connection_file /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-tDIb2d/connection.json --log /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-tDIb2d/kernel.log --startup-file /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/scripts/startup.R --session-mode console -- --interactive --no-restore-data
[R] dyld: Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
[R]   Referenced from: /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/ark/ark (which was built for Mac OS X 14.0)
[R]   Expected in: /usr/lib/libc++.1.dylib

I have something similar happening here as well, though it is exit code 134. Not sure if this is related to current issue or completely different. I'm also working on an older Mac, not sure if that affects the install.

image

Here's some relevant output:

Console
image

Popups
image
image

Output -> Console: R 4.2.2

2024-07-02 13:08:34.460 [info] [Positron] Connecting to R 4.2.2 kernel (pid 23480)
2024-07-02 13:08:34.460 [info] [Positron] Streaming log file: /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-ZGjq8R/kernel.log
2024-07-02 13:08:34.460 [info] [Positron] Connecting to kernel sockets defined in /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-ZGjq8R/connection.json...
2024-07-02 13:08:34.460 [info] [Positron] Control socket created (count = 1)
2024-07-02 13:08:34.460 [info] [Positron] Shell socket created (count = 2)
2024-07-02 13:08:34.460 [info] [Positron] Stdin socket created (count = 3)
2024-07-02 13:08:34.460 [info] [Positron] I/O socket created (count = 4)
2024-07-02 13:08:34.460 [info] [Positron] Heartbeat socket created (count = 5)
2024-07-02 13:08:34.460 [info] [Positron] Control socket connecting to tcp://127.0.0.1:53155...
2024-07-02 13:08:34.460 [info] [Positron] Shell socket connecting to tcp://127.0.0.1:52511...
2024-07-02 13:08:34.460 [info] [Positron] Stdin socket connecting to tcp://127.0.0.1:54650...
2024-07-02 13:08:34.460 [info] [Positron] I/O socket connecting to tcp://127.0.0.1:53654...
2024-07-02 13:08:34.460 [info] [Positron] Heartbeat socket connecting to tcp://127.0.0.1:49175...
2024-07-02 13:08:34.460 [info] [Positron] Error setting console width: Cannot invoke 'setConsoleWidth'; no UI comm is open. (undefined)
2024-07-02 13:08:34.460 [info] [Positron] R 4.2.2 failed to start; exit code: 134
2024-07-02 13:08:34.460 [info] [Positron] R kernel status changed: starting => exited
2024-07-02 13:08:34.460 [info] [R] *** Log started at Tue Jul  2 13:08:31 CDT 2024
2024-07-02 13:08:34.460 [info] [R] *** Command line:
2024-07-02 13:08:34.460 [info] [R] /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/ark/ark --connection_file /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-ZGjq8R/connection.json --log /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-ZGjq8R/kernel.log --startup-file /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/scripts/startup.R --session-mode console -- --interactive --no-restore-data
2024-07-02 13:08:34.460 [info] [R] dyld: Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
2024-07-02 13:08:34.460 [info] [R]   Referenced from: /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/ark/ark (which was built for Mac OS X 14.0)
2024-07-02 13:08:34.460 [info] [R]   Expected in: /usr/lib/libc++.1.dylib
2024-07-02 13:08:34.460 [info] [R] 
2024-07-02 13:08:34.460 [info] [R] *** Log ended at Tue Jul  2 13:08:31 CDT 2024
2024-07-02 13:08:34.460 [info] [R] Process exit code 134
[Positron] Connecting to R 4.2.2 kernel (pid 23540)
[Positron] Streaming log file: /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-tDIb2d/kernel.log
[Positron] Connecting to kernel sockets defined in /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-tDIb2d/connection.json...
[Positron] Control socket created (count = 6)
[Positron] Shell socket created (count = 7)
[Positron] Stdin socket created (count = 8)
[Positron] I/O socket created (count = 9)
[Positron] Heartbeat socket created (count = 10)
[Positron] Control socket connecting to tcp://127.0.0.1:63446...
[Positron] Shell socket connecting to tcp://127.0.0.1:56368...
[Positron] Stdin socket connecting to tcp://127.0.0.1:54458...
[Positron] I/O socket connecting to tcp://127.0.0.1:60159...
[Positron] Heartbeat socket connecting to tcp://127.0.0.1:65359...
[Positron] R 4.2.2 failed to start; exit code: 134
[R] /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/ark/ark --connection_file /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-tDIb2d/connection.json --log /var/folders/q8/1pkzzk4n1jj1zcy_57k660100000gn/T/kernel-tDIb2d/kernel.log --startup-file /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/scripts/startup.R --session-mode console -- --interactive --no-restore-data
[R] dyld: Symbol not found: __ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
[R]   Referenced from: /Applications/Positron.app/Contents/Resources/app/extensions/positron-r/resources/ark/ark (which was built for Mac OS X 14.0)
[R]   Expected in: /usr/lib/libc++.1.dylib
[R] 
[R] *** Log ended at Tue Jul  2 13:12:46 CDT 2024
[R] Process exit code 134
[R] 
[Positron] R kernel status changed: starting => exited

Output -> Positron R Extension

2024-07-02 13:08:29.650 [info] Log level: Debug
2024-07-02 13:08:29.650 [info] Refreshing testthat status
2024-07-02 13:08:29.650 [info] Not working in an R package
2024-07-02 13:08:29.650 [info] Context key 'testthatIsConfigured' is 'false'
2024-07-02 13:08:29.650 [info] Context key 'testthatHasTests' is 'false'
2024-07-02 13:08:29.838 [info] Resolved R binary at /Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R
2024-07-02 13:08:30.084 [info] Candidate R binary at /Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R
2024-07-02 13:08:30.084 [info] R installation discovered: {
  "valid": true,
  "supported": true,
  "binpath": "/Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R",
  "homepath": "/Library/Frameworks/R.framework/Resources",
  "semVersion": {
    "options": {},
    "loose": false,
    "includePrerelease": false,
    "raw": "4.2.2",
    "major": 4,
    "minor": 2,
    "patch": 2,
    "prerelease": [],
    "build": [],
    "version": "4.2.2"
  },
  "version": "4.2.2",
  "arch": "x86_64",
  "current": true,
  "orthogonal": false
}
2024-07-02 13:08:30.085 [info] Resolved R binary at /Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R
2024-07-02 13:08:30.449 [info] Candidate R binary at /Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R
2024-07-02 13:08:30.449 [info] R installation discovered: {
  "valid": true,
  "supported": true,
  "binpath": "/Library/Frameworks/R.framework/Versions/4.2/Resources/bin/R",
  "homepath": "/Library/Frameworks/R.framework/Resources",
  "semVersion": {
    "options": {},
    "loose": false,
    "includePrerelease": false,
    "raw": "4.2.2",
    "major": 4,
    "minor": 2,
    "patch": 2,
    "prerelease": [],
    "build": [],
    "version": "4.2.2"
  },
  "version": "4.2.2",
  "arch": "x86_64",
  "current": true,
  "orthogonal": false
}
2024-07-02 13:08:30.449 [info] Candidate R binary at /Library/Frameworks/R.framework/Versions/3.0/Resources/bin/R
2024-07-02 13:08:30.449 [info] R installation discovered: {
  "valid": true,
  "supported": true,
  "binpath": "/Library/Frameworks/R.framework/Versions/3.0/Resources/bin/R",
  "homepath": "/Library/Frameworks/R.framework/Resources",
  "semVersion": {
    "options": {},
    "loose": false,
    "includePrerelease": false,
    "raw": "4.2.2",
    "major": 4,
    "minor": 2,
    "patch": 2,
    "prerelease": [],
    "build": [],
    "version": "4.2.2"
  },
  "version": "4.2.2",
  "arch": "x86_64",
  "current": false,
  "orthogonal": false
}
2024-07-02 13:08:30.449 [info] Candidate R binary at /Library/Frameworks/R.framework/Versions/3.3/Resources/bin/R
2024-07-02 13:08:30.449 [info] R installation discovered: {
  "valid": true,
  "supported": true,
  "binpath": "/Library/Frameworks/R.framework/Versions/3.3/Resources/bin/R",
  "homepath": "/Library/Frameworks/R.framework/Resources",
  "semVersion": {
    "options": {},
    "loose": false,
    "includePrerelease": false,
    "raw": "4.2.2",
    "major": 4,
    "minor": 2,
    "patch": 2,
    "prerelease": [],
    "build": [],
    "version": "4.2.2"
  },
  "version": "4.2.2",
  "arch": "x86_64",
  "current": false,
  "orthogonal": false
}
2024-07-02 13:08:30.449 [info] Candidate R binary at /Library/Frameworks/R.framework/Versions/3.6/Resources/bin/R
2024-07-02 13:08:30.449 [info] R installation discovered: {
  "valid": true,
  "supported": true,
  "binpath": "/Library/Frameworks/R.framework/Versions/3.6/Resources/bin/R",
  "homepath": "/Library/Frameworks/R.framework/Resources",
  "semVersion": {
    "options": {},
    "loose": false,
    "includePrerelease": false,
    "raw": "4.2.2",
    "major": 4,
    "minor": 2,
    "patch": 2,
    "prerelease": [],
    "build": [],
    "version": "4.2.2"
  },
  "version": "4.2.2",
  "arch": "x86_64",
  "current": false,
  "orthogonal": false
}
2024-07-02 13:08:30.449 [info] Filtering out /Library/Frameworks/R.framework/Versions/3.0/Resources/bin/R: not current and also not orthogonal.
2024-07-02 13:08:30.449 [info] Filtering out /Library/Frameworks/R.framework/Versions/3.3/Resources/bin/R: not current and also not orthogonal.
2024-07-02 13:08:30.449 [info] Filtering out /Library/Frameworks/R.framework/Versions/3.6/Resources/bin/R: not current and also not orthogonal.

Originally posted by @zajichek in #3788 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvestigateNeeds initial, limited investigation to prioritizelang: rsupport

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions