Clion LLDB cannot run at all. macOS Sierra

已回答

Hi, I am running Clion on macOS 10.12.4, and this is the first time I use this product. And I am learning programming right now. So I wish to use the debugger, but the GDB doesn't run on macOS sierra as far as I now. So the Clion tells me to use the LLDB. But whenever I configure CLion with LLDB, and I run it, it just kind of stuck on the "connecting" phase. And after about five minutes, it gave me error of: "E0506 00:07:29.2894133748320192 ProtobufClient.cpp:161] ERROR connecting 3 No such process". I don't know what to do, really. And also, as I said, the GDB doesn't work with macOS Sierra, so I cannot really switch to GDB for this case.

For convenience, I will attach the screenshots and all log files as well as crash files to this post. You can download them using this google drive link: https://drive.google.com/open?id=0B-lrj9DwyK_qRW16OGo5UHpWaUk 

(CLion 2017.1.1
Build #CL-171.4073.41, built on April 12, 2017
Licensed to Zhancheng Qian
Subscription is active until April 29, 2018
For educational use only.
JRE: 1.8.0_112-release-736-b16 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.4)

 









1
Avatar
Permanently deleted user

I got another error when I used the LLDB : E0520 02:26:31.961180 3837490112 ProtobufClient.cpp:146] ERROR, no such host as localhost.. I don't know how to solve it..

1
Avatar
Permanently deleted user

I also got this error . Why lldb could not run for mac 10.12 ?

0
Avatar
Permanently deleted user

Please update on this

0

Hi! In order to investigate each particular issue we need a log file. Please enable debugger logging as described here, reproduce the issue with LLDB after enabling the logging and provide us with the resulting log file. Thanks in advance!

0
Avatar
Permanently deleted user

 

Please find the logs below

 

2017-11-07 15:10:31,332 [228573720]   INFO -        #com.jetbrains.cidr.cpp - Building: /Applications/CLion.app/Contents/bin/cmake/bin/cmake --build /Users/username/CLionProjects/Prog/cmake-build-debug --target ProgRun -- -j 2

2017-11-07 15:10:31,555 [228573943]  DEBUG - brains.cidr.execution.debugger - LLDBFrontend: /Applications/CLion.app/Contents/bin/lldb/LLDBFrontend 59118

 

2017-11-07 15:11:46,722 [228649110]  DEBUG - brains.cidr.execution.debugger - LLDBFrontend: E1107 15:11:46.721132 2935010112 ProtobufClient.cpp:161] ERROR connecting 3 No such process

 

2017-11-07 15:11:46,726 [228649114]  DEBUG - brains.cidr.execution.debugger - 

com.intellij.execution.ExecutionException: Execution finished

at com.jetbrains.cidr.execution.ExecutionResult.get(ExecutionResult.java:38)

at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.getProtobufClient(LLDBDriver.java:96)

at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.sendCreateTargetRequest(LLDBDriver.java:356)

at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.loadForLaunch(LLDBDriver.java:304)

at com.jetbrains.cidr.execution.debugger.CidrLocalDebugProcess.doStart(CidrLocalDebugProcess.java:18)

at com.jetbrains.cidr.execution.debugger.CidrDebugProcess.b(CidrDebugProcess.java:315)

at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:695)

at com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:685)

at com.intellij.util.concurrency.QueueProcessor.lambda$null$0(QueueProcessor.java:93)

at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)

at com.intellij.util.concurrency.QueueProcessor.lambda$wrappingProcessor$1(QueueProcessor.java:93)

at com.intellij.util.concurrency.QueueProcessor.lambda$null$3(QueueProcessor.java:226)

at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)

at com.intellij.util.concurrency.QueueProcessor.lambda$startProcessing$4(QueueProcessor.java:226)

at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:342)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)

at java.util.concurrent.FutureTask.run(FutureTask.java:266)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

Caused by: com.intellij.execution.ExecutionFinishedException: Execution finished

at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$4.processTerminated(LLDBDriver.java:261)

at sun.reflect.GeneratedMethodAccessor62.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.intellij.execution.process.ProcessHandler$4.invoke(ProcessHandler.java:227)

at com.sun.proxy.$Proxy16.processTerminated(Unknown Source)

at com.intellij.execution.process.ProcessHandler$3.run(ProcessHandler.java:184)

at com.intellij.execution.process.ProcessHandler$TasksRunner.execute(ProcessHandler.java:260)

at com.intellij.execution.process.ProcessHandler.notifyTerminated(ProcessHandler.java:165)

at com.intellij.execution.process.ProcessHandler.notifyProcessTerminated(ProcessHandler.java:161)

at com.intellij.execution.process.BaseOSProcessHandler.onOSProcessTerminated(BaseOSProcessHandler.java:192)

at com.intellij.execution.process.OSProcessHandler.onOSProcessTerminated(OSProcessHandler.java:92)

at com.intellij.execution.process.BaseOSProcessHandler$2$1.consume(BaseOSProcessHandler.java:155)

at com.intellij.execution.process.BaseOSProcessHandler$2$1.consume(BaseOSProcessHandler.java:140)

at com.intellij.execution.process.ProcessWaitFor$1.run(ProcessWaitFor.java:62)

... 5 more

0

Vvijay22, thanks for the reply! Please follow this ticket about "ERROR connecting 3 No such process" and comment or upvote. You can communicate with the responsible developer there. He may ask for some additional information from you to investigate the issue.

Dandu Doged, we have the similar issue in our tracker. Feel free to comment or upvote.

0
Avatar
Permanently deleted user

Anna Falevskaya, Thanks for your response. I went through the referred ticket and found that this solved my problem. https://youtrack.jetbrains.com/issue/CPP-11021

Not sure how it is related but its working now. Thanks  a lot for your support!

1
Avatar
Permanently deleted user

Vvijay22, Thanks for your questions. I also got the error. And https://youtrack.jetbrains.com/issue/CPP-11021 solved the problem. In the /etc/hosts, add the line 127.0.0.1 localhost

0
Avatar
Permanently deleted user
0

@Ar16sen, please enable debugger logging as described here, reproduce the issue with LLDB after enabling the logging and send the resulted log to clion-support at jetbrains.com. Note that logs might contain private user's information (like file paths and names). 

0

请先登录再写评论。