Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maestro crashes running android flow if it is running iOS but not otherwise #2182

Open
1 task done
josemariaeliasMM opened this issue Dec 10, 2024 · 1 comment
Open
1 task done

Comments

@josemariaeliasMM
Copy link

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

Reproduction steps:

  1. Run maestro download-samples
  2. Have 1 Android emulator ready and 1 simulator for iOS ready
  3. Install apps on the simulators
  4. Run ios-advanced-flow on iOS maestro --device UUID test ios-advanced-flow.yaml
  5. Run android-advanced-flowon Android: maestro test android-advanced-flow.yaml

Actual results

There is a crash on android:

io.grpc.StatusRuntimeException: INTERNAL: http2 exception

Expected results

There is no crash like if I ran first the android tests and then the iOS tests by doing within this order is working well

About app

It is the app provided by the sample sources

About environment

14:11:12.434 [ INFO] MAESTRO.logSystemInfo: Maestro Version: 1.39.2
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: CI: Undefined
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: OS Name: Mac OS X
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: OS Version: 15.1.1
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: Architecture: aarch64
14:11:12.435 [ INFO] MAESTRO.logSystemInfo: Java Version: 17
14:11:12.574 [ INFO] MAESTRO.logSystemInfo: Xcode Version: 16.1
14:11:12.581 [ INFO] MAESTRO.logSystemInfo: Flutter Version: Undefined
14:11:12.587 [ INFO] MAESTRO.logSystemInfo: Flutter Channel: Undefined

Logs

Logs
14:11:12.431 [ INFO] MAESTRO.logSystemInfo: ---- System Info ----
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: Maestro Version: 1.39.2
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: CI: Undefined
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: OS Name: Mac OS X
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: OS Version: 15.1.1
14:11:12.434 [ INFO] MAESTRO.logSystemInfo: Architecture: aarch64
14:11:12.435 [ INFO] MAESTRO.logSystemInfo: Java Version: 17
14:11:12.574 [ INFO] MAESTRO.logSystemInfo: Xcode Version: 16.1
14:11:12.581 [ INFO] MAESTRO.logSystemInfo: Flutter Version: Undefined
14:11:12.587 [ INFO] MAESTRO.logSystemInfo: Flutter Channel: Undefined
14:11:12.587 [ INFO] MAESTRO.logSystemInfo: ---------------------
14:11:13.126 [ INFO] maestro.cli.command.TestCommand.runShardSuite: [shard 1] Selected device emulator-5554 using port 7001
14:11:13.297 [DEBUG] io.netty.util.internal.logging.InternalLoggerFactory.useSlf4JLoggerFactory: Using SLF4J as the default logging framework
14:11:13.298 [DEBUG] io.netty.util.internal.PlatformDependent0.explicitNoUnsafeCause0: -Dio.netty.noUnsafe: false
14:11:13.298 [DEBUG] io.netty.util.internal.PlatformDependent0.javaVersion0: Java version: 17
14:11:13.298 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: sun.misc.Unsafe.theUnsafe: available
14:11:13.299 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: sun.misc.Unsafe.copyMemory: available
14:11:13.299 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: sun.misc.Unsafe.storeFence: available
14:11:13.299 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: java.nio.Buffer.address: available
14:11:13.300 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: direct buffer constructor: unavailable
java.lang.UnsupportedOperationException: Reflective setAccessible(true) disabled
	at io.netty.util.internal.ReflectionUtil.trySetAccessible(ReflectionUtil.java:31)
	at io.netty.util.internal.PlatformDependent0$5.run(PlatformDependent0.java:289)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
	at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:282)
	at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:333)
	at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:88)
	at io.netty.util.AsciiString.<init>(AsciiString.java:225)
	at io.netty.util.AsciiString.<init>(AsciiString.java:212)
	at io.netty.util.AsciiString.cached(AsciiString.java:1403)
	at io.netty.util.AsciiString.<clinit>(AsciiString.java:48)
	at io.grpc.netty.Utils.<clinit>(Utils.java:78)
	at io.grpc.netty.UdsNettyChannelProvider.isAvailable(UdsNettyChannelProvider.java:34)
	at io.grpc.ManagedChannelRegistry$ManagedChannelPriorityAccessor.isAvailable(ManagedChannelRegistry.java:211)
	at io.grpc.ManagedChannelRegistry$ManagedChannelPriorityAccessor.isAvailable(ManagedChannelRegistry.java:207)
	at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:68)
	at io.grpc.ManagedChannelRegistry.getDefaultRegistry(ManagedChannelRegistry.java:101)
	at io.grpc.ManagedChannelProvider.provider(ManagedChannelProvider.java:43)
	at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39)
	at maestro.drivers.AndroidDriver.<init>(AndroidDriver.kt:67)
	at maestro.cli.session.MaestroSessionManager.createAndroid(MaestroSessionManager.kt:259)
	at maestro.cli.session.MaestroSessionManager.createMaestro(MaestroSessionManager.kt:154)
	at maestro.cli.session.MaestroSessionManager.newSession(MaestroSessionManager.kt:85)
	at maestro.cli.session.MaestroSessionManager.newSession$default(MaestroSessionManager.kt:53)
	at maestro.cli.command.TestCommand.runShardSuite(TestCommand.kt:297)
	at maestro.cli.command.TestCommand.access$runShardSuite(TestCommand.kt:63)
	at maestro.cli.command.TestCommand$handleSessions$1$results$1$1.invokeSuspend(TestCommand.kt:265)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)
14:11:13.300 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: java.nio.Bits.unaligned: available, true
14:11:13.300 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: jdk.internal.misc.Unsafe.allocateUninitializedArray(int): unavailable
java.lang.IllegalAccessException: class io.netty.util.internal.PlatformDependent0$7 cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @3dfada53
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
	at java.base/java.lang.reflect.Method.invoke(Method.java:560)
	at io.netty.util.internal.PlatformDependent0$7.run(PlatformDependent0.java:411)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
	at io.netty.util.internal.PlatformDependent0.<clinit>(PlatformDependent0.java:402)
	at io.netty.util.internal.PlatformDependent.isAndroid(PlatformDependent.java:333)
	at io.netty.util.internal.PlatformDependent.<clinit>(PlatformDependent.java:88)
	at io.netty.util.AsciiString.<init>(AsciiString.java:225)
	at io.netty.util.AsciiString.<init>(AsciiString.java:212)
	at io.netty.util.AsciiString.cached(AsciiString.java:1403)
	at io.netty.util.AsciiString.<clinit>(AsciiString.java:48)
	at io.grpc.netty.Utils.<clinit>(Utils.java:78)
	at io.grpc.netty.UdsNettyChannelProvider.isAvailable(UdsNettyChannelProvider.java:34)
	at io.grpc.ManagedChannelRegistry$ManagedChannelPriorityAccessor.isAvailable(ManagedChannelRegistry.java:211)
	at io.grpc.ManagedChannelRegistry$ManagedChannelPriorityAccessor.isAvailable(ManagedChannelRegistry.java:207)
	at io.grpc.ServiceProviders.loadAll(ServiceProviders.java:68)
	at io.grpc.ManagedChannelRegistry.getDefaultRegistry(ManagedChannelRegistry.java:101)
	at io.grpc.ManagedChannelProvider.provider(ManagedChannelProvider.java:43)
	at io.grpc.ManagedChannelBuilder.forAddress(ManagedChannelBuilder.java:39)
	at maestro.drivers.AndroidDriver.<init>(AndroidDriver.kt:67)
	at maestro.cli.session.MaestroSessionManager.createAndroid(MaestroSessionManager.kt:259)
	at maestro.cli.session.MaestroSessionManager.createMaestro(MaestroSessionManager.kt:154)
	at maestro.cli.session.MaestroSessionManager.newSession(MaestroSessionManager.kt:85)
	at maestro.cli.session.MaestroSessionManager.newSession$default(MaestroSessionManager.kt:53)
	at maestro.cli.command.TestCommand.runShardSuite(TestCommand.kt:297)
	at maestro.cli.command.TestCommand.access$runShardSuite(TestCommand.kt:63)
	at maestro.cli.command.TestCommand$handleSessions$1$results$1$1.invokeSuspend(TestCommand.kt:265)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)
14:11:13.301 [DEBUG] io.netty.util.internal.PlatformDependent0.<clinit>: java.nio.DirectByteBuffer.<init>(long, {int,long}): unavailable
14:11:13.301 [DEBUG] io.netty.util.internal.PlatformDependent.unsafeUnavailabilityCause0: sun.misc.Unsafe: available
14:11:13.309 [DEBUG] io.netty.util.internal.PlatformDependent.estimateMaxDirectMemory: maxDirectMemory: 4294967296 bytes (maybe)
14:11:13.309 [DEBUG] io.netty.util.internal.PlatformDependent.tmpdir0: -Dio.netty.tmpdir: /var/folders/lt/0g3vr2mj53l0nkshfym5f4zh0000gp/T (java.io.tmpdir)
14:11:13.310 [DEBUG] io.netty.util.internal.PlatformDependent.bitMode0: -Dio.netty.bitMode: 64 (sun.arch.data.model)
14:11:13.310 [DEBUG] io.netty.util.internal.PlatformDependent.isOsx0: Platform: MacOS
14:11:13.310 [DEBUG] io.netty.util.internal.PlatformDependent.<clinit>: -Dio.netty.maxDirectMemory: -1 bytes
14:11:13.310 [DEBUG] io.netty.util.internal.PlatformDependent.<clinit>: -Dio.netty.uninitializedArrayAllocationThreshold: -1
14:11:13.311 [DEBUG] io.netty.util.internal.CleanerJava9.<clinit>: java.nio.ByteBuffer.cleaner(): available
14:11:13.311 [DEBUG] io.netty.util.internal.PlatformDependent.<clinit>: -Dio.netty.noPreferDirect: false
14:11:13.388 [DEBUG] io.netty.channel.MultithreadEventLoopGroup.<clinit>: -Dio.netty.eventLoopThreads: 16
14:11:13.392 [DEBUG] io.netty.util.concurrent.GlobalEventExecutor.<clinit>: -Dio.netty.globalEventExecutor.quietPeriodSeconds: 1
14:11:13.399 [DEBUG] io.netty.util.internal.InternalThreadLocalMap.<clinit>: -Dio.netty.threadLocalMap.stringBuilder.initialSize: 1024
14:11:13.399 [DEBUG] io.netty.util.internal.InternalThreadLocalMap.<clinit>: -Dio.netty.threadLocalMap.stringBuilder.maxSize: 4096
14:11:13.403 [DEBUG] io.netty.channel.nio.NioEventLoop.<clinit>: -Dio.netty.noKeySetOptimization: false
14:11:13.404 [DEBUG] io.netty.channel.nio.NioEventLoop.<clinit>: -Dio.netty.selectorAutoRebuildThreshold: 512
14:11:13.412 [DEBUG] io.netty.util.internal.PlatformDependent.<clinit>: org.jctools-core.MpscChunkedArrayQueue: available
14:11:13.416 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@2c1d706a
14:11:13.417 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@62e77c79
14:11:13.417 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@5414a33f
14:11:13.417 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@6f656b9a
14:11:13.417 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@5ef561bc
14:11:13.417 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@7a8daaf
14:11:13.417 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@76d48c3e
14:11:13.418 [TRACE] io.netty.channel.nio.NioEventLoop.openSelector: instrumented a special java.util.Set into: sun.nio.ch.KQueueSelectorImpl@322900c5
14:11:13.491 [ INFO] maestro.Maestro.invoke: Getting device info
14:11:13.544 [DEBUG] io.netty.util.ResourceLeakDetector.<clinit>: -Dio.netty.leakDetection.level: simple
14:11:13.544 [DEBUG] io.netty.util.ResourceLeakDetector.<clinit>: -Dio.netty.leakDetection.targetRecords: 4
14:11:13.547 [DEBUG] io.netty.buffer.AbstractByteBuf.<clinit>: -Dio.netty.buffer.checkAccessible: true
14:11:13.547 [DEBUG] io.netty.buffer.AbstractByteBuf.<clinit>: -Dio.netty.buffer.checkBounds: true
14:11:13.547 [DEBUG] io.netty.util.ResourceLeakDetectorFactory.newResourceLeakDetector: Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@30eb8663
14:11:13.562 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.numHeapArenas: 16
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.numDirectArenas: 16
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.pageSize: 8192
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.maxOrder: 9
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.chunkSize: 4194304
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.smallCacheSize: 256
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.normalCacheSize: 64
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.maxCachedBufferCapacity: 32768
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.cacheTrimInterval: 8192
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.cacheTrimIntervalMillis: 0
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.useCacheForAllThreads: false
14:11:13.563 [DEBUG] io.netty.buffer.PooledByteBufAllocator.<clinit>: -Dio.netty.allocator.maxCachedByteBuffersPerChunk: 1023
14:11:13.569 [DEBUG] io.netty.channel.DefaultChannelId.<clinit>: -Dio.netty.processId: 37475 (auto-detected)
14:11:13.569 [DEBUG] io.netty.util.NetUtil.<clinit>: -Djava.net.preferIPv4Stack: false
14:11:13.569 [DEBUG] io.netty.util.NetUtil.<clinit>: -Djava.net.preferIPv6Addresses: false
14:11:13.571 [DEBUG] io.netty.util.NetUtilInitializations.determineLoopback: Loopback interface: lo0 (lo0, 0:0:0:0:0:0:0:1%lo0)
14:11:13.572 [DEBUG] io.netty.util.NetUtil.run: Failed to get SOMAXCONN from sysctl and file /proc/sys/net/core/somaxconn. Default: 128
14:11:13.573 [DEBUG] io.netty.channel.DefaultChannelId.<clinit>: -Dio.netty.machineId: b0:4f:13:ff:fe:d1:38:83 (auto-detected)
14:11:13.582 [DEBUG] io.netty.buffer.ByteBufUtil.<clinit>: -Dio.netty.allocator.type: pooled
14:11:13.583 [DEBUG] io.netty.buffer.ByteBufUtil.<clinit>: -Dio.netty.threadLocalDirectBufferSize: 0
14:11:13.583 [DEBUG] io.netty.buffer.ByteBufUtil.<clinit>: -Dio.netty.maxThreadLocalCharBufferSize: 16384
14:11:13.585 [DEBUG] io.netty.util.Recycler.<clinit>: -Dio.netty.recycler.maxCapacityPerThread: 4096
14:11:13.585 [DEBUG] io.netty.util.Recycler.<clinit>: -Dio.netty.recycler.ratio: 8
14:11:13.585 [DEBUG] io.netty.util.Recycler.<clinit>: -Dio.netty.recycler.chunkSize: 32
14:11:13.585 [DEBUG] io.netty.util.Recycler.<clinit>: -Dio.netty.recycler.blocking: false
14:11:13.585 [DEBUG] io.netty.util.Recycler.<clinit>: -Dio.netty.recycler.batchFastThreadLocalOnly: true
14:11:13.591 [DEBUG] io.grpc.netty.NettyClientHandler.log: [id: 0x59d36c2c, L:/[0:0:0:0:0:0:0:1]:54004 - R:localhost/[0:0:0:0:0:0:0:1]:7001] OUTBOUND SETTINGS: ack=false settings={ENABLE_PUSH=0, MAX_CONCURRENT_STREAMS=0, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192}
14:11:13.595 [DEBUG] io.grpc.netty.NettyClientHandler.log: [id: 0x59d36c2c, L:/[0:0:0:0:0:0:0:1]:54004 - R:localhost/[0:0:0:0:0:0:0:1]:7001] OUTBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=983041
14:11:13.619 [DEBUG] io.grpc.netty.NettyClientHandler.log: [id: 0x59d36c2c, L:/[0:0:0:0:0:0:0:1]:54004 - R:localhost/[0:0:0:0:0:0:0:1]:7001] OUTBOUND GO_AWAY: lastStreamId=2147483647 errorCode=1 length=77 bytes=4669727374207265636569766564206672616d6520776173206e6f742053455454494e47532e204865782064756d7020666f7220666972737420352062797465...
14:11:13.619 [DEBUG] io.netty.handler.codec.http2.Http2ConnectionHandler.processGoAwayWriteResult: [id: 0x59d36c2c, L:/[0:0:0:0:0:0:0:1]:54004 ! R:localhost/[0:0:0:0:0:0:0:1]:7001] Sending GOAWAY failed: lastStreamId '2147483647', errorCode '1', debugData 'First received frame was not SETTINGS. Hex dump for first 5 bytes: 485454502f'. Forcing shutdown of the connection.
java.io.IOException: Broken pipe
	at java.base/sun.nio.ch.FileDispatcherImpl.writev0(Native Method)
	at java.base/sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:66)
	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:217)
	at java.base/sun.nio.ch.IOUtil.write(IOUtil.java:153)
	at java.base/sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:563)
	at io.netty.channel.socket.nio.NioSocketChannel.doWrite(NioSocketChannel.java:430)
	at io.netty.channel.AbstractChannel$AbstractUnsafe.flush0(AbstractChannel.java:931)
	at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.flush0(AbstractNioChannel.java:354)
	at io.netty.channel.AbstractChannel$AbstractUnsafe.flush(AbstractChannel.java:895)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.flush(DefaultChannelPipeline.java:1372)
	at io.netty.channel.AbstractChannelHandlerContext.invokeFlush0(AbstractChannelHandlerContext.java:921)
	at io.netty.channel.AbstractChannelHandlerContext.invokeFlush(AbstractChannelHandlerContext.java:907)
	at io.netty.channel.AbstractChannelHandlerContext.flush(AbstractChannelHandlerContext.java:893)
	at io.netty.handler.codec.http2.Http2ConnectionHandler.onError(Http2ConnectionHandler.java:656)
	at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java:253)
	at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:453)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:840)
14:11:13.620 [ERROR] maestro.cli.runner.TestRunner.runCatching: Failed to run flow
io.grpc.StatusRuntimeException: INTERNAL: http2 exception
	at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:275)
	at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:256)
	at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:169)
	at maestro_android.MaestroDriverGrpc$MaestroDriverBlockingStub.deviceInfo(MaestroDriverGrpc.java:634)
	at maestro.drivers.AndroidDriver$deviceInfo$1.invoke(AndroidDriver.kt:180)
	at maestro.drivers.AndroidDriver$deviceInfo$1.invoke(AndroidDriver.kt:179)
	at maestro.drivers.AndroidDriver.runDeviceCall(AndroidDriver.kt:1067)
	at maestro.drivers.AndroidDriver.deviceInfo(AndroidDriver.kt:179)
	at maestro.Maestro$cachedDeviceInfo$2.invoke(Maestro.kt:51)
	at maestro.Maestro$cachedDeviceInfo$2.invoke(Maestro.kt:49)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
	at maestro.Maestro.getCachedDeviceInfo(Maestro.kt:49)
	at maestro.orchestra.Orchestra.initJsEngine(Orchestra.kt:229)
	at maestro.orchestra.Orchestra.runFlow(Orchestra.kt:109)
	at maestro.cli.runner.MaestroCommandRunner.runCommands(MaestroCommandRunner.kt:179)
	at maestro.cli.runner.TestRunner$runSingle$result$1.invoke(TestRunner.kt:62)
	at maestro.cli.runner.TestRunner$runSingle$result$1.invoke(TestRunner.kt:53)
	at maestro.cli.runner.TestRunner.runCatching(TestRunner.kt:160)
	at maestro.cli.runner.TestRunner.runSingle(TestRunner.kt:53)
	at maestro.cli.command.TestCommand.runSingleFlow(TestCommand.kt:352)
	at maestro.cli.command.TestCommand.access$runSingleFlow(TestCommand.kt:63)
	at maestro.cli.command.TestCommand$runShardSuite$2.invoke(TestCommand.kt:326)
	at maestro.cli.command.TestCommand$runShardSuite$2.invoke(TestCommand.kt:297)
	at maestro.cli.session.MaestroSessionManager.newSession(MaestroSessionManager.kt:103)
	at maestro.cli.session.MaestroSessionManager.newSession$default(MaestroSessionManager.kt:53)
	at maestro.cli.command.TestCommand.runShardSuite(TestCommand.kt:297)
	at maestro.cli.command.TestCommand.access$runShardSuite(TestCommand.kt:63)
	at maestro.cli.command.TestCommand$handleSessions$1$results$1$1.invokeSuspend(TestCommand.kt:265)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
	at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
	at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
	at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706)
	at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)
Caused by: io.netty.handler.codec.http2.Http2Exception: First received frame was not SETTINGS. Hex dump for first 5 bytes: 485454502f
	at io.netty.handler.codec.http2.Http2Exception.connectionError(Http2Exception.java:109)
	at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.verifyFirstFrameIsSettings(Http2ConnectionHandler.java:353)
	at io.netty.handler.codec.http2.Http2ConnectionHandler$PrefaceDecoder.decode(Http2ConnectionHandler.java:247)
	at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:453)
	at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:529)
	at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:468)
	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:290)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:444)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:412)
	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:440)
	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:420)
	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166)
	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:788)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:840)
14:11:13.659 [ERROR] maestro.cli.session.MaestroSessionManager.newSession$lambda$0: Failed to record heartbeat
java.lang.InterruptedException: sleep interrupted
	at java.base/java.lang.Thread.sleep(Native Method)
	at maestro.cli.session.MaestroSessionManager.newSession$lambda$0(MaestroSessionManager.kt:74)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
	at java.base/java.lang.Thread.run(Thread.java:840)

Maestro version

1.39.2

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

Anything else?

No response

Copy link

linear bot commented Dec 10, 2024

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

No branches or pull requests

1 participant