Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Unsupported os windows 10 #37

Open
hram opened this issue May 10, 2018 · 16 comments · Fixed by #39
Open

Unsupported os windows 10 #37

hram opened this issue May 10, 2018 · 16 comments · Fixed by #39
Assignees
Labels

Comments

@hram
Copy link

hram commented May 10, 2018

I download latest swarmwr wrom https://jcenter.bintray.com/com/gojuno/swarmer/swarmer/0.2.2/:swarmer-0.2.2.jar and try tu run with command

java -jar swarmer.jar start

as a result I have an error:

Exception in thread "main" java.lang.IllegalStateException: Unsupported os windows 10, only [Lcom.gojuno.commander.os.Os;@19aa4dfd are supported.
        at com.gojuno.commander.os.ProcessesKt.os(Processes.kt:133)
        at com.gojuno.commander.os.ProcessesKt.access$os(Processes.kt:1)
        at com.gojuno.commander.os.ProcessesKt$process$1.call(Processes.kt:54)
        at com.gojuno.commander.os.ProcessesKt$process$1.call(Processes.kt)
        at rx.internal.operators.OnSubscribeCreate.call(OnSubscribeCreate.java:72)
        at rx.internal.operators.OnSubscribeCreate.call(OnSubscribeCreate.java:32)
        at rx.Observable.unsafeSubscribe(Observable.java:10346)
        at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call(OperatorSubscribeOn.java:100)
        at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:230)
        at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

@yunikkk
Copy link
Contributor

yunikkk commented May 10, 2018

Hey, thanks for report, totally forgot to update https://github.com/gojuno/commander version here with windows support.

@yunikkk yunikkk self-assigned this May 10, 2018
@yunikkk yunikkk added the bug label May 10, 2018
@hram
Copy link
Author

hram commented May 11, 2018

@yunikkk but what can I do with comnander? I have only single java file.

@yunikkk
Copy link
Contributor

yunikkk commented May 11, 2018

Ah, sorry for confusion, commander is other library used by swarmer and its version is too old here. So PR is needed here with commander update. Will do it later today.

@shuhart
Copy link

shuhart commented May 14, 2018

Any progress here, guys? Can't run it on any version of Windows.

@yunikkk
Copy link
Contributor

yunikkk commented May 14, 2018

Yeah, PR in progress, some issues with tests though

@yunikkk
Copy link
Contributor

yunikkk commented May 14, 2018

Hey guys, try 0.2.3 version I've just published, should work on windows.

@hram
Copy link
Author

hram commented May 15, 2018

now is running
but i don't know what to do next
if I try to run with this parameters

java -jar swarmer.jar start --emulator-name test_emulator_1 --package "system-images;android-27;google_apis;x86" --android-abi google_apis/x86_64 --path-to-config-ini emulator_config.ini --emulator-start-options -prop persist.sys.language=en -prop persist.sys.country=US --redirect-logcat-to test_emulator_1_logcat.txt

i have an error

[Tue May 15 09:55:31 MSK 2018]: runningEmulators: retrying java.lang.IllegalStateException: Adb output is not correct: ..
[Tue May 15 09:55:31 MSK 2018]: runningEmulators: retrying java.lang.IllegalStateException: Adb output is not correct: ..
[Tue May 15 09:55:32 MSK 2018]: runningEmulators: retrying java.lang.IllegalStateException: Adb output is not correct: ..
[Tue May 15 09:55:32 MSK 2018]: runningEmulators: retrying java.lang.IllegalStateException: Adb output is not correct: ..
[Tue May 15 09:55:32 MSK 2018]: Error during getting connectedAdbDevices, error = java.lang.IllegalStateException: Adb output is not correct: .
Exception in thread "main" java.lang.IllegalStateException: Adb output is not correct: .
at com.gojuno.commander.android.AdbKt$connectedAdbDevices$2.call(Adb.kt:39)
at com.gojuno.commander.android.AdbKt$connectedAdbDevices$2.call(Adb.kt)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:69)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:77)
at rx.internal.operators.OperatorCast$CastSubscriber.onNext(OperatorCast.java:69)
at rx.internal.operators.OnSubscribeFilter$FilterSubscriber.onNext(OnSubscribeFilter.java:76)
at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:224)
at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:230)
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: rx.exceptions.OnErrorThrowable$OnNextValue: OnError while emitting onNext value:
at rx.exceptions.OnErrorThrowable.addValueAsLastCause(OnErrorThrowable.java:118)
at rx.internal.operators.OnSubscribeMap$MapSubscriber.onNext(OnSubscribeMap.java:73)
... 13 more

@hram
Copy link
Author

hram commented May 15, 2018

@yunikkk can I open new issue?

@yunikkk yunikkk reopened this May 15, 2018
@yunikkk
Copy link
Contributor

yunikkk commented May 15, 2018

@hram lets continue here since its basically the same issue.
I've digged commander sources once again and seems like a bug there for windows with output redirection.

@yunikkk
Copy link
Contributor

yunikkk commented May 15, 2018

gojuno/commander#18

@hram
Copy link
Author

hram commented May 22, 2018

@yunikkk have you any news for this bug?

@yunikkk
Copy link
Contributor

yunikkk commented May 22, 2018

@hram should arrive in #39

@hram
Copy link
Author

hram commented May 23, 2018

@yunikkk now I have new error

> d:\swarmer>java -jar swarmer-0.2.4.jar start --emulator-name test_emulator_1 --package "system-images;android-27;google_apis;x86" --android-abi google_apis/x86 --path-to-config-ini emulator_config.ini
> [Wed May 23 11:43:46 MSK 2018]: Already running emulators: []
> [Wed May 23 11:43:46 MSK 2018]: Creating avd test_emulator_1.
> [Wed May 23 11:43:46 MSK 2018]: Error during creation of avd test_emulator_1, error = rx.exceptions.CompositeException: 1 exceptions occurred.
> [Wed May 23 11:43:46 MSK 2018]: Error during creation of avd test_emulator_1, error = rx.exceptions.CompositeException: 1 exceptions occurred.
> [Wed May 23 11:43:46 MSK 2018]: Error during creation of avd test_emulator_1, error = rx.exceptions.CompositeException: 1 exceptions occurred.
> [Wed May 23 11:43:46 MSK 2018]: Error during creation of avd test_emulator_1, error = rx.exceptions.CompositeException: 1 exceptions occurred.
> [Wed May 23 11:43:46 MSK 2018]: Could not create avd test_emulator_1, error = rx.exceptions.CompositeException: 1 exceptions occurred.
> Exception in thread "main" rx.exceptions.CompositeException: 1 exceptions occurred.
>         at rx.internal.operators.OperatorMerge$MergeSubscriber.reportError(OperatorMerge.java:268)
>         at rx.internal.operators.OperatorMerge$MergeSubscriber.checkTerminate(OperatorMerge.java:818)
>         at rx.internal.operators.OperatorMerge$MergeSubscriber.emitLoop(OperatorMerge.java:579)
>         at rx.internal.operators.OperatorMerge$MergeSubscriber.emit(OperatorMerge.java:568)
>         at rx.internal.operators.OperatorMerge$InnerSubscriber.onError(OperatorMerge.java:855)
>         at rx.internal.operators.OnSubscribeRefCount$2.onError(OnSubscribeRefCount.java:116)
>         at rx.internal.operators.OperatorPublish$PublishSubscriber.checkTerminated(OperatorPublish.java:443)
>         at rx.internal.operators.OperatorPublish$PublishSubscriber.dispatch(OperatorPublish.java:505)
>         at rx.internal.operators.OperatorPublish$PublishSubscriber.onError(OperatorPublish.java:294)
>         at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.checkTerminated(OperatorObserveOn.java:273)
>         at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.call(OperatorObserveOn.java:216)
>         at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:230)
>         at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)
>   ComposedException 1 :
>         java.io.IOException: Cannot run program "C:\Users\my_user_name\AppData\Local\Android\Sdk/tools/bin/avdmanager": CreateProcess error=2, Не удается найти указанный файл
>                 at java.lang.ProcessBuilder.start(Unknown Source)
>                 at com.gojuno.commander.os.ProcessesKt$process$1.call(Processes.kt:73)
>                 at com.gojuno.commander.os.ProcessesKt$process$1.call(Processes.kt)
>                 at rx.internal.operators.OnSubscribeCreate.call(OnSubscribeCreate.java:72)
>                 at rx.internal.operators.OnSubscribeCreate.call(OnSubscribeCreate.java:32)
>                 at rx.Observable.unsafeSubscribe(Observable.java:10327)
>                 at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call(OperatorSubscribeOn.java:100)
>                 at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:230)
>                 at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
>                 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>                 at java.util.concurrent.FutureTask.run(Unknown Source)
>                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
>                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
>                 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>                 at java.lang.Thread.run(Unknown Source)
>         Caused by: java.io.IOException: CreateProcess error=2, Не удается найти указанный файл
>                 at java.lang.ProcessImpl.create(Native Method)
>                 at java.lang.ProcessImpl.<init>(Unknown Source)
>                 at java.lang.ProcessImpl.start(Unknown Source)
>                 at java.lang.ProcessBuilder.start(Unknown Source)
>                 at com.gojuno.commander.os.ProcessesKt$process$1.call(Processes.kt:73)
>                 at com.gojuno.commander.os.ProcessesKt$process$1.call(Processes.kt)
>                 at rx.internal.operators.OnSubscribeCreate.call(OnSubscribeCreate.java:72)
>                 at rx.internal.operators.OnSubscribeCreate.call(OnSubscribeCreate.java:32)
>                 at rx.Observable.unsafeSubscribe(Observable.java:10327)
>                 at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.call(OperatorSubscribeOn.java:100)
>                 at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:230)
>                 at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
>                 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>                 at java.util.concurrent.FutureTask.run(Unknown Source)
>                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
>                 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
>                 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>                 at java.lang.Thread.run(Unknown Source)

@yunikkk
Copy link
Contributor

yunikkk commented May 23, 2018

Ahhh, sorry, now its hardcoded unix separator and path.
I guess I'll try to find Windows machine to make it work finally.

@artem-zinnatullin
Copy link
Contributor

@yunikkk we just need to update separator to File.separator

Or use more sophisticated FileSystem.getSeparator to support different file systems dynamically instead of depending on OS

@yunikkk
Copy link
Contributor

yunikkk commented May 23, 2018

@artem-zinnatullin yeah, but also fix at least

lol

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants