Tryting to start logcat capture but it's already startd!

When i try to run tests in Eclipse, the appium will throw below errors.

info: Welcome to Appium v1.4.13 (REV c75d8adcb66a75818a542fe1891a34260c21f76a)
info: Appium REST http interface listener started on 0.0.0.0:4723
info: Console LogLevel: debug
info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"C:\\testlab\\Conta
ctManager.apk","appPackage":"com.example.android.contactmanager","appActivity":"
.ContactManager","platformVersion":"4.4","platformName":"Android","deviceName":"
Android Emulator","platform":"WINDOWS"}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] The following desired capabilities were provided, but not recogniz
ed by appium. They will be passed on to any other services running on this serve
r. : platform
info: [debug] Using local app from desired caps: C:\testlab\ContactManager.apk
info: --> POST /wd/hub/session {"desiredCapabilities":{"app":"C:\\testlab\\Calcu
lator_8.apk","appPackage":"com.ibox.calculators","appActivity":".CalculatorActiv
ity","platformVersion":"4.4","platformName":"Android","deviceName":"Android Emul
ator","platform":"WINDOWS"}}
info: Client User-Agent string: Apache-HttpClient/4.3.3 (java 1.5)
info: [debug] The following desired capabilities were provided, but not recogniz
ed by appium. They will be passed on to any other services running on this serve
r. : platform
info: [debug] Using local app from desired caps: C:\testlab\Calculator_8.apk
info: [debug] Creating new appium session ff2b5c82-8d21-4f06-bd73-b495c150f6ea
info: Starting android appium
info: [debug] Getting Java version
info: [debug] Creating new appium session 57781a1c-973e-408b-8707-69e9f4aeb6f0
info: Starting android appium
info: [debug] Getting Java version
info: Java version is: 1.8.0_31
info: [debug] Checking whether adb is present
info: [debug] Using adb from C:\Android\sdk\platform-tools\adb.exe
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Java version is: 1.8.0_31
info: [debug] Using fast reset? true
info: [debug] Preparing device for session
info: [debug] Checking whether app is actually present
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe devices
info: Retrieving device
info: [debug] Trying to find a connected android device
info: [debug] Getting connected devices...
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe devices
info: [debug] 1 device(s) connected
info: Found device emulator-5554
info: [debug] Setting device id to emulator-5554
info: [debug] Waiting for device to be ready and to respond to shell commands (t
imeout = 5)
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s emulator-5
554 wait-for-device
info: [debug] 1 device(s) connected
info: Found device emulator-5554
info: [debug] Setting device id to emulator-5554
info: [debug] Waiting for device to be ready and to respond to shell commands (t
imeout = 5)
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s emulator-5
554 -s emulator-5554 wait-for-device
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s emulator-5
554 -s emulator-5554 shell "echo 'ready'"
info: [debug] executing cmd: C:\Android\sdk\platform-tools\adb.exe -s emulator-5
554 -s emulator-5554 shell "echo 'ready'"
info: [debug] Starting logcat capture
info: [debug] Stopping logcat capture
info: [debug] Logcat terminated with code null, signal SIGTERM
info: [debug] Sent shutdown command, waiting for UiAutomator to stop...
warn: UiAutomator did not shut down fast enough, calling it gone
info: [debug] Cleaning up android objects
info: [debug] Cleaning up appium session
error: Failed to start an Appium session, err was: Error: Trying to start logcat
 capture but it's already started!
info: [debug] Error: Trying to start logcat capture but it's already started!
    at [object Object].ADB.startLogcat (C:\Program Files\nodejs\node_modules\app
ium\node_modules\appium-adb\lib\adb.js:1006:8)
    at [object Object].<anonymous> (C:\Program Files\nodejs\node_modules\appium\
lib\devices\android\android-common.js:328:30)
    at C:\Program Files\nodejs\node_modules\appium\node_modules\async\lib\async.
js:607:21
    at C:\Program Files\nodejs\node_modules\appium\node_modules\async\lib\async.
js:246:17
    at iterate (C:\Program Files\nodejs\node_modules\appium\node_modules\async\l
ib\async.js:146:13)
    at C:\Program Files\nodejs\node_modules\appium\node_modules\async\lib\async.
js:157:25
    at C:\Program Files\nodejs\node_modules\appium\node_modules\async\lib\async.
js:248:21
    at C:\Program Files\nodejs\node_modules\appium\node_modules\async\lib\async.
js:612:34
    at [object Object].waitCb (C:\Program Files\nodejs\node_modules\appium\node_
modules\appium-adb\lib\adb.js:973:7)
    at [object Object].<anonymous> (C:\Program Files\nodejs\node_modules\appium\
node_modules\appium-adb\lib\adb.js:949:17)
    at [object Object].<anonymous> (C:\Program Files\nodejs\node_modules\appium\
node_modules\appium-adb\lib\adb.js:180:9)
    at ChildProcess.exithandler (child_process.js:194:7)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:818:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
info: [debug] Responding to client with error: {"status":33,"value":{"message":"
A new session could not be created. (Original error: Trying to start logcat capt
ure but it's already started!)","origValue":"Trying to start logcat capture but
it's already started!"},"sessionId":null}
info: <-- POST /wd/hub/session 500 7985.662 ms - 234

Can anybody help on this ?

Have you looked at the Task Manager to see if a logcat process is running? That’s the first thing I’d do.

Because i take this action on MAC. i used to killall command to kill the process before restart. But sometimes i still got this error.

You’ve got some very strange logging on your MAC.

Thanks @wreed , i will check my configuration carefully.

hi, I met the same issue but didn’t find any resolution. Hope to get your response.
Thanks!

add
capabilities.setCapability(“autoLaunch”,false); for capabilities

or
delete the driver.launchApp(); in SetUp();