When I run Playground in Xcode, I get an error message and it doesn't work.
[Procedure]
We have introduced Xcode beta and Swift for TensorFlow with reference to the following sites.
https://github.com/tensorflow/swift/blob/master/Usage.md
After configuring Swift for TensorFlow for Toolchains on Xcode beta, I ran the following code on Playground with reference to the site and encountered an error:
import TensorFlow
let x = Tensor <Float > ([1,2], [3,4])])
print(x)
[Error Message]
The LLDB RPC server has crashed.
Please tell me how to resolve the above error.
Thank you for your cooperation.
Nice to meet you.I tried introducing TensorFlow in the same way, but it seems to fall in the same way.
The environment here is
Yes, but
/Library/Developer/Toolchains/swift-latest/usr/bin/swift
from Terminal
and runs REPL samples→ Normal operationToolchain
in Xcode
, create a Playground
and enter the sample you asked → RPC ErrorThe specific details of the error are
In the directory ~/Library/Logs/DiagnosticReports
, click
lldb-rpc-server_[Date] -[Process Number?]_[My Machine Name].crash
A file called
Process: lldb-rpc-server [62885]
Path: /Applications/Xcode.app/Contents/SharedFrameworks/LLDBRPC.framework/Version/A/Resources/lldb-rpc-server
Identifier—lldb-rpc-server
Version—2
Code Type: X86-64 (Native)
Parent Process: Xcode [62870]
Responsible: lldb-rpc-server [62885]
User ID: 501
Date/Time: 2018-10-0603:56:20.527+0900
OS Version: Mac OS X 10.14 (18A391)
Report Version—12
Bridge OS Version: 3.0 (16P375)
Anonymous UUID:52707192-7890-DB55-F0A7-F9A15E883136
Time Awake Since Boot: 780000 seconds
System Integrity Protection: enabled
Crushed Thread: 6<lldb.process.internal-state(pid=62905)>
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault:11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exceler [62885]
VM Regions Near 0:
-->
__TEXT0000000109 f1d000-0000000109 fae000[580K]r-x/rwx SM=COW/Applications/Xcode.app/Contents/SharedFrameworks/LLDBRPC.framework/Version/A/Resources/lldb-rpc-server
Thread 0:: Connection:: RunLoop() packet reading thread Dispatch queue: com.apple.main-thread
0libsystem_kernel.dylib 0x00007ffff720888a6read+10
1 lldb-rpc-server 0x0000000109f26f37rpc_common::RPCConnectionSocket::Read(std::__1::basic_string<unsigned char, std::__1::char_trits<unsigned char>, std:__1::allocator<gundool>17)
2 lldb-rpc-server 0x0000000109f2dab7rpc_common::Connection::ReceivePacket(rpc_common::RPCPacket&)+149
3 lldb-rpc-server 0x0000000109f2d5c0rpc_common::Connection::RunLoop()+152
4 lldb-rpc-server 0x0000000109f6fbfe main+494
5libdyld.dylib0x00007ffff71f4e085 start+1
Therefore, import
TensorFlow starts another process using RPC
(remote procedure call) and passes the data to it for processing, but it seems to have failed when passing the data you want to process to the processing.
That's all I've found out, and I think I'll have to build TensorFlow
from the source and modify the contents of Swift for TensorFlow
.
At this stage, I think it would be good to send a bug report to the author and wait for it to be fixed.
I can't tell from the question how well @ShinichiroYogo knows Swift
or Mac's PRC
, so if @ShinichiroYogo has the enthusiasm to track down this source, find and fix bugs, I think that's good.
© 2024 OneMinuteCode. All rights reserved.