Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

unable to run samples on android phone (StackOverflowError) #34

Closed
lokeshsharma97 opened this issue Nov 10, 2020 · 6 comments
Closed

unable to run samples on android phone (StackOverflowError) #34

lokeshsharma97 opened this issue Nov 10, 2020 · 6 comments
Assignees
Labels

Comments

@lokeshsharma97
Copy link

lokeshsharma97 commented Nov 10, 2020

on android device following exception occur in all samples

Exception in AnnotationFactory.createAnnotation
11-10 11:55:43.473 29587 29603 I System.out: ERROR GameWindow.frameRender:
11-10 11:55:43.473 29587 29603 I System.out: java.lang.StackOverflowError: stack size 1037KB
11-10 11:55:43.474 29587 29603 W System.err: java.lang.StackOverflowError: stack size 1037KB
11-10 11:55:43.477 29587 29603 W System.err: at java.lang.String.valueOf(String.java:2827)
11-10 11:55:43.477 29587 29603 W System.err: at java.lang.StringBuilder.append(StringBuilder.java:132)
11-10 11:55:43.477 29587 29603 W System.err: at kotlinx.coroutines.DisposeOnCancel.toString(CancellableContinuation.kt:385)
11-10 11:55:43.477 29587 29603 W System.err: at java.lang.String.valueOf(String.java:2827)
11-10 11:55:43.477 29587 29603 W System.err: at java.lang.StringBuilder.append(StringBuilder.java:132)
11-10 11:55:43.477 29587 29603 W System.err: at kotlinx.coroutines.CompletedContinuation.toString(Unknown Source:22)
11-10 11:55:43.477 29587 29603 W System.err: at java.lang.String.valueOf(String.java:2827)
11-10 11:55:43.477 29587 29603 W System.err: at java.lang.StringBuilder.append(StringBuilder.java:132)
11-10 11:55:43.477 29587 29603 W System.err: at kotlinx.coroutines.CancellableContinuationImpl.toString(CancellableContinuationImpl.kt:506)
11-10 11:55:43.478 29587 29603 W System.err: at java.lang.String.valueOf(String.java:2827)
11-10 11:55:43.478 29587 29603 W System.err: at java.lang.StringBuilder.append(StringBuilder.java:132)
.
.
.

@soywiz soywiz added the bug label Nov 10, 2020
@soywiz soywiz added this to Backlog in Korlibs via automation Nov 10, 2020
@soywiz soywiz moved this from Backlog to KorGE 2.0 in Korlibs Nov 10, 2020
@soywiz
Copy link
Collaborator

soywiz commented Nov 10, 2020

Can you provide device and operating system version where you tested and which sample?

Does it also happens with the hello world here? https://github.com/korlibs/korge-hello-world

@lokeshsharma97
Copy link
Author

android 8.0 xiaomi redmi 6 pro . i test text2 , filters , bmpfont .
I am unable to make a build for hello-world
it says :
More than one file was found with OS independent path 'META-INF/AL2.0'
This error was not there for korge 1.4 hello world sample
same case for samples in new 2.0 it is causing exception . older release was working fine

@soywiz soywiz moved this from KorGE 2.0 to Active in Korlibs Nov 10, 2020
@soywiz soywiz self-assigned this Nov 10, 2020
@soywiz
Copy link
Collaborator

soywiz commented Nov 22, 2020

Can't reproduce on my devices. I think I will need your help for debugging. Can you open the project with android studio at build/platforms/android, then launch on debug mode and put a breakpoint or something to figure out what's going on?

@soywiz soywiz moved this from Active to KorGE 3.0 in Korlibs Nov 22, 2020
@soywiz soywiz moved this from KorGE 3.0 to Paused or Waiting Reponse in Korlibs Nov 22, 2020
@soywiz soywiz changed the title unable to run samples on android phone unable to run samples on android phone (StackOverflowError) Nov 27, 2020
@soywiz
Copy link
Collaborator

soywiz commented Nov 27, 2020

Might be related to this: Kotlin/kotlinx.coroutines#2371 ?

If so, seems to be fixed on kotlinx.coroutines 1.4.2: https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.4.2

@soywiz soywiz moved this from Paused or Waiting Reponse to Korge 2.0.x in Korlibs Nov 27, 2020
@soywiz
Copy link
Collaborator

soywiz commented Nov 27, 2020

I have updated kotlinx.coroutines here: korlibs-archive/korio@ea726e4
and will be available on the final release of KorGE 2.0. I will let you know when ready so you can try to see if it is fixed

@soywiz soywiz moved this from Korge 2.0.x to Short-term in Korlibs May 3, 2021
@soywiz
Copy link
Collaborator

soywiz commented Nov 5, 2021

I'm going to asume this was fixed already 👍

@soywiz soywiz closed this as completed Nov 5, 2021
@soywiz soywiz removed this from Short-term in Korlibs May 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants