Skip to content

Sample program that crashes the new iOS VM, Part 2 #1338

Description

Original issue 1339 created by codenameone on 2015-02-06T23:21:17.000Z:

This is a continuation of issue 1304. The old test program submitted with 1304 served its purpose and now runs after the gc changes made. However my real app still has problems. This is a new test app to reproduce the problem.

In order to run this app you will need to set the property ios.fileSharingEnabled to true and you will need to copy the sample data file to the app on your device using iTunes.

The attached program causes the new iOS VM to run out of memory and crash. Run the program, select Start and then Import. The first time you do this it should work. When it finishes, repeat the above steps and it should crash.

The key to getting this process to crash was moving to a second form. I had the same ImportThread in the main form and it would run fine. But after moving it to a second form it started to crash. My real app uses a second form.

I have run this same app 10 times in a row on the old VM without a problem.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions