-
-
Save neworld/5d336a9c53dee7a0e21b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 01-20 10:21:51.878 4393-4393/lt.neworld.kotlinpropertiesinfiniterecursion E/art: Throwing OutOfMemoryError "Failed to allocate a 9122344 byte allocation with 4816736 free bytes and 4MB until OOM" | |
| 01-20 10:21:51.879 4393-4393/lt.neworld.kotlinpropertiesinfiniterecursion E/AndroidRuntime: Error reporting crash | |
| java.lang.OutOfMemoryError: Failed to allocate a 9122344 byte allocation with 4816736 free bytes and 4MB until OOM | |
| at java.lang.AbstractStringBuilder.enlargeBuffer(AbstractStringBuilder.java:95) | |
| at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:125) | |
| at java.lang.StringBuffer.append(StringBuffer.java:278) | |
| at java.io.StringWriter.write(StringWriter.java:123) | |
| at com.android.internal.util.FastPrintWriter.flushLocked(FastPrintWriter.java:358) | |
| at com.android.internal.util.FastPrintWriter.appendLocked(FastPrintWriter.java:303) | |
| at com.android.internal.util.FastPrintWriter.write(FastPrintWriter.java:625) | |
| at com.android.internal.util.FastPrintWriter.append(FastPrintWriter.java:658) | |
| at java.io.PrintWriter.append(PrintWriter.java:691) | |
| at java.io.PrintWriter.append(PrintWriter.java:31) | |
| at java.lang.Throwable.printStackTrace(Throwable.java:324) | |
| at java.lang.Throwable.printStackTrace(Throwable.java:300) | |
| at android.util.Log.getStackTraceString(Log.java:340) | |
| at com.android.internal.os.RuntimeInit.Clog_e(RuntimeInit.java:59) | |
| at com.android.internal.os.RuntimeInit.access$200(RuntimeInit.java:43) | |
| at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:85) | |
| at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693) | |
| at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package lt.neworld.java; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.util.Log; | |
| public class MainActivity extends AppCompatActivity { | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| Log.d("TAG", "" + getFoo()); | |
| } | |
| private int getFoo() { | |
| return getBar(); | |
| } | |
| private int getBar() { | |
| return getFoo(); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package lt.neworld.kotlinpropertiesinfiniterecursion | |
| import android.os.Bundle | |
| import android.support.v7.app.AppCompatActivity | |
| import android.util.Log | |
| class MainActivity : AppCompatActivity() { | |
| val foo: Int | |
| get() = bar | |
| val bar: Int | |
| get() = foo | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_main) | |
| Log.d("TAG", "$foo") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment