Adobe AIR 3.6  -  Bug 3511982

Created on Sunday, March 3, 2013

Login for more options

Title

[Platform_iOS]IOS Context3d.drawToBitmapData() bug

Description

Problem Description: On On IOS bitmapdata for drawToBitmapData() only shows up after you call .dispose() on Context3D.

Steps to Reproduce: Use drawToBitmapData() on iOS.

Actual Result: empty bitmapdata is returned from drawToBitmapData on iOS.

Expected Result: bitmapdata being returned

Any Workarounds: For some reason if you call dispose after using drawToBitmapData on iOS, the data will show up.

Test Configuration

My Hardware and Environment details: Mac OSX, AIR 3.6

App Language(s) English
OS Language(s) English
Platform(s) iOS All
Browser(s) Unspecified

Notes (25)

  • 62316e

    4:39:57 AM GMT+00:00 Oct 9, 2013

    @PeterCTucker
    Oh cmon. I've posted around 20 bugs. Im pretty sure that Socket bug still not fixed since 2007.
    Flascc crashes after taking 16 GB of RAM away - a year already passed.
    Peer 2 Peer and h264 bug is not fixed since 1.5 year!
    They just closing bugs and thats it.

    Maybe this is not critical bug. But how we can work if i even cant compile the project.

    Thats why everybody thinks that Flash is dead. And i with to leave without this product, but this $$$$ is the best what we have right now. And i'm trying to make it better.

    But idiots from Adobe just ignoring customers.

  • PeterCTucker

    1:34:56 AM GMT+00:00 Oct 9, 2013

    Hi Dongxing Li,
    This bug is still very much open, and many members of the community want this bug fixed. Though I don't agree with the name calling by 62316e, I can understand his/hers passion about the bug. It's been 6 months now. It's response times like these that are going to put the nail in Flash's proverbial coffin. Don't put our wants for a better product on some closed/deferred to-do list after asking for 6 months for this to get fixed. Developers are your customers. Listen to your customers.

    Air 3.9 has just been released. I am to presume by seeing the closed state, and deferred status it's not in the current release?

    Thank you,
    Actionscript Community

  • 62316e

    11:58:40 PM GMT+00:00 Oct 8, 2013

    6 month passed since bug posted. You are idiots.

  • Dongxing Li

    9:09:34 PM GMT+00:00 Oct 8, 2013

    Close the bug first as deferred, we will review all high voted bugs periodically.

  • PeterCTucker

    3:15:07 AM GMT+00:00 Sep 5, 2013

    I believe I might have found another Bug for drawToBitmapData. Textures at certain widths/heights sometimes return an image with a black border. Image looks to be scaled on either the x or y occasionally leaving a black border.

    I've added a picture so you can see what I mean(IncorrectSizingBug.jpg).

  • PeterCTucker

    12:14:32 AM GMT+00:00 Sep 3, 2013

    Hey Donie,
    Seeing if there was any update on this bug?

    -Peter

  • PeterCTucker

    10:29:02 PM GMT+00:00 Sep 2, 2013

    Hey Donie,
    Seeing if there was any update on this bug?

    -Peter

  • Dongxing Li

    12:16:19 AM GMT+00:00 Aug 29, 2013

    Hi,
    Thanks for your report.
    I have reproduced your issue and we will investigate it further.
    Regards,
    Donie

  • PeterCTucker

    4:49:10 AM GMT+00:00 Aug 27, 2013

    Tested on DroidX, iPod Touch 4, iPhone 5.
    Bug for AIR 3.6(and lower) and above. Tested up to Air 3.8

    I've uploaded a flash project inside here example called drawBug.zip
    Create an FLA. Attach as file. Import texture.jpg into library with actionscript linkage name 'myTextureBitmap'.

    The portion of the code for drawToBitmapData starts on line 260.

    Basically the code creates an area for stage3D to draw which is the flash stage + 200 pixels. Then we create a bitmap that gets it's data from context3D through drawToBitmapData. We then scale the bitmap by .33 to see the entire image data captured. In the desktop version(Fig1Desktop.jpg) of this code we see the rock texture is clearly being drawn as expected(notice it's outside of the red line which represents our flash stage. Green is our contextBackBuffer size). On Desktop it works fine. If you try to compile this as an iOS app however what you will see is any part of the rock texture outside of our red line is cut off(See Fig2iOS.jpg). The area between the red and green line returns empty pixel data.

    Thank you.

  • Dongxing Li

    2:24:38 AM GMT+00:00 Aug 25, 2013

    Hi,
    Thank you for reporting.
    I've tested your issue, but I can't reproduce your issue. Could you tell us the detailed info of your environment? if you can provide us with a piece of code, it'll be quicker for us to find the cause of this issue.
    Regards,
    Donie

  • PeterCTucker

    5:54:03 PM GMT+00:00 Aug 24, 2013

    Dear Adobe,
    This bug has been around for over a year now. I find it unacceptable that the Adobe Developers cannot reproduce this bug in multiple examples given by the Actionscript community. This infers that either the Adobe Devs are inept at their jobs, or just plain dodging this bug. Please respond with a course of action.

    Thank you,
    The Actionscript Community

  • 62316e

    11:06:41 AM GMT+00:00 Jun 25, 2013

    Here: https://github.com/AlternativaPlatform
    Also please try "community" branch.

    http://forum.alternativaplatform.com/index.php?showtopic=4656

  • Jing Chen

    8:19:16 PM GMT+00:00 Jun 19, 2013

    Where could I find alternativa 3d with sample? Seems the downloaded files in http://alternativaplatform.com/en/technologies/alternativa3d/ do not contain any examples.

  • 62316e

    6:58:57 AM GMT+00:00 Jun 18, 2013

    Steps to reproduce:
    1. Download alternativa 3d with sample from http://alternativaplatform.com/en/technologies/alternativa3d/
    2. Run any example with events
    3. Optional go to 'view.as' and find 'drawToBitmapData' and try to draw it onto Bitmap

    I'm not 100% sure if its related to drawToBitmapData or scissor test but you will have different results on Desktop and Devices for sure.
    Also we had problems with Intel HD400 integrated video card. Works only in Chrome.

  • Jing Chen

    12:25:25 AM GMT+00:00 Jun 8, 2013

    Hi,

    Using the simple test case here, we see it renders normally, I've attached the test case and the screen shot.

    Please point out if I misunderstood your problem.

    Regards,

    Jing

  • Jing Chen

    1:46:08 AM GMT+00:00 Jun 7, 2013

    Hi,

    Sorry for the late reply, I was out of office for three weeks, will try testing this issue as soon as possible.

    Regards,

    Jing

  • PeterCTucker

    10:21:58 PM GMT+00:00 May 30, 2013

    Hey Adobe,
    I've added Inspirit's GPU Image processing library.
    https://github.com/inspirit/GPUImage

    Try using the example. Create a movieclip and a bmp, put the bmp inside the movieclip. Load an image through the library, through a filter. Make sure the image is larger then the screen size. Once the image comes back through drawToBitmapData(), set that bitmapdata to your original bmp you've created. Resize that bmp by .width. You will see that the data is cut off(replaced by black). The cut off area of the bitmap will be in proportion to the devices screen size.

  • 62316e

    3:25:41 AM GMT+00:00 May 21, 2013

    Related issues

    https://github.com/AlternativaPlatform/Alternativa3D/issues/14#issuecomment-16448560
    http://forum.alternativaplatform.com/index.php?showtopic=4474&hl=mouseevent3d
    https://github.com/Patrick-RUTKA/Alternativa3D/commit/e67f1a1d1a4b91d4d534bd43cfdf0d38e7a65529#commitcomment-3254949
    http://forum.alternativaplatform.com/index.php?showtopic=4206

    Please take a look and fix as fast as possible!

  • 62316e

    3:09:41 AM GMT+00:00 May 21, 2013

    Related issues

    https://github.com/AlternativaPlatform/Alternativa3D/issues/14#issuecomment-16448560
    http://forum.alternativaplatform.com/index.php?showtopic=4474&hl=mouseevent3d
    https://github.com/Patrick-RUTKA/Alternativa3D/commit/e67f1a1d1a4b91d4d534bd43cfdf0d38e7a65529#commitcomment-3254949
    http://forum.alternativaplatform.com/index.php?showtopic=4206

    Please take a look and fix as fast as possible!

  • 62316e

    2:14:48 AM GMT+00:00 May 21, 2013

    Same in 3.8 beta

  • 62316e

    1:28:38 AM GMT+00:00 May 21, 2013

    Any results?

  • 62316e

    9:47:23 AM GMT+00:00 May 18, 2013

    Please contact me by email and i will help you fix a problem if you have iPad 1/2 or any Android device other wise i can send one device to you if you will provide address.

  • 62316e

    9:44:06 AM GMT+00:00 May 18, 2013

    http://alternativaplatform.com/en/technologies/alternativa3d/
    Download bin/src + example.
    Compile any demo with mouse events.

    in View.as find a line "context.drawToBitmapData(pixel);"
    Then do debug output on Desktop and on Devices.

    I can reproduce this bug on iPad 2 (ios 5), iPhone 5 (ios6) and few android devices.
    Its works fine on desktop but not working on devices.

  • Jing Chen

    2:54:41 AM GMT+00:00 Apr 17, 2013

    Hi,

    We couldn't reproduce this issue using our local test app, does this issue only occurs on iOS6? Could you please attach a test project here which could reproduce this issue?


    Regards,

    Jing

  • 62316e

    10:00:45 AM GMT+00:00 Apr 16, 2013

    Adobe? Any results? Would you be so kind as to fix that bug?
    I can reproduce it since 3.4 and also in 3.7

Duplicate ID
Reported By PeterCTucker

Status

State Closed
Status Deferred
Reason Workaround

Importance

Priority 2-Medium
Frequency All users will encounter
Failure Type Data Loss
Product Area AIR SDK

Build

Found In Build 3.6.0.597
Fixed In Build

Votes (1)

  • 62316e

    7:30:12 AM GMT+00:00 Apr 16, 2013

    Same here! Very old bug! FIx it FFS

Your session has expired! Click to login
Current form data will be preserved

Cancel