Skip to main content
Participant
November 9, 2016
Question

Android Marshmallow 6.0.1 Stagetext constructor crash

  • November 9, 2016
  • 1 reply
  • 974 views

Hello,

I have been developing an application for just over 2 years, and have been successfully using the StageText class to display a user input dialog. I just got two separate devices, one is a Samsung Galaxy S6 Edge and the other is a Samsung Galaxy S6. Both of these devices are running Android Marshmallow 6.0.1 and both devices crash when running a very simple line of code:

var st:StageText = new StageText();

The error that flash builder is showing is:

Error: Error #3694: The object was disposed by an earlier call of dispose() on it.

  at flash.text::StageText/init()

  at flash.text::StageText()

I have tried running this code on Adobe Air 22, Adobe Air 23, and Adobe Air 24 beta. All versions cant seem to handle whatever is going on. Please, anyone with any insight, let me know what to do to fix this.

This topic has been closed for replies.

1 reply

deesharm
Adobe Employee
Adobe Employee
November 9, 2016

Hi James,

Are you using the starling in your application or just creating a sample action script project for stageText.

It will be very helpful for us if you can share a sample project with us so that we can investigate it further.

Thanks,

Adobe AIR Team

Participant
November 10, 2016

deesharm,

I am NOT using Starling in this particular application. I have created a test project to attempt to recreate the issue in a much simpler application. In this test application I am not seeing the same behaviors, although that doesn't mean that my problem is solved. The behavior is strange because my code works very well on iOS (iOS 7 through iOS 10) and on lower android versions (lower than Android 6.0.1). I am still trying to find the differences, I think I have narrowed it down to an application setting. If I insert this line:

var st:StageText = new StageText();

at the entry point of the application, it will crash my project that I have been working on for a long time, but it will not crash the new test application. Still tinkering....

deesharm
Adobe Employee
Adobe Employee
November 11, 2016

Hi James,

I tried with a sample application running it on Android 6.0.1, but I am unable to reproduce the same issue.

Please find my sample project at below location and try it running at your end.

Dropbox - StageTextWorking.zip

It will be very helpful for us if you can share a sample project with us.

Thanks,

Adobe AIR Team