crossbridge-community / crossbridge

C/C++ Compiler for the ActionScript Virtual Machine (AVM2)
http://sourceforge.net/projects/crossbridge-community/
Other
151 stars 36 forks source link

Build with support of flash player version 11.8 #67

Open CrossAlchemy opened 9 years ago

CrossAlchemy commented 9 years ago

Error when i try to run app using Stage3D on player version lower 15. I know there was critical issue: https://github.com/adobe-flash/crossbridge/issues/56 Is there any fixed release that supports 11.8?

TypeError: Error #1006: value is not a function. at global/C_Run::FUnwind_SjLj_RaiseException() at global/C_Run_J_3A2F_adobe_2F_power_2F_cygwin_2F_tmp_2F_cczW0s93_2E_lto_2E_bc_3A_3524fabb_2D_e530_2D_4819_2D_88b1_2D92019914dd24::Fcxa_throw() at global/C_Run_J_3A__2F_adobe_2F_power_2F_cygwin_2F_tmp_2F_cczW0s93_2E_lto_2E_bc_3A_3524fabb_2D_e530_2D_4819_2D_88b1_2D_92019914dd24::FZN3AS32ui5flash9display3D9Context3D8internal8instance19configureBackBufferEiiibbb() at global/C_Run_J_3A2F_adobe_2F_power_2F_cygwin_2F_tmp_2F_cczW0s93_2E_lto_2E_bc_3A_3524fabb_2D_e530_2D_4819_2D_88b1_2D_92019914dd24::F__ZN10CS3DRender6resizeEii() at global/C_Run_J_3A2F_adobe_2F_power_2F_cygwin_2F_tmp_2F_cczW0s93_2E_lto_2E_bc_3A_3524fabb_2D_e530_2D_4819_2D_88b1_2D_92019914dd24::FZL13initContext3DPvN3AS32ui3varE() at global/C_Run_J_3A__2F_adobe_2F_power_2F_cygwin_2F_tmp_2F_cczW0s93_2E_lto_2E_bc_3A_3524fabb_2D_e530_2D_4819_2D_88b1_2D_92019914dd24::FZN3AS32ui3var8internal8funThunkEPFS1_PvS1_ES3_j() at com.adobe.flascc::CModule$/callI() at Function/ccd67kWM.lto.1.as$0:anonymous()

vpmedia commented 9 years ago

Hi, Sorry but I don't think this will be supported in the future because Flash Player is already at version 16.

JoeDupuis commented 9 years ago

The problem with that is that we don't know how many people still run on flash 11. We should still keep some backward compatibility. I won't work on it at the moment, because our game engine use the standard vector api instead of stage 3D, but I was planning a Stage 3D with Flash 11 support somewhere in 2015 maybe. So I might give it a try.

Meanwhile, you could try old releases. Adobe's releases are still online and they should support Flash 11. Though if you encounter other problem you won't get much help if you are using old releases.

http://sourceforge.net/projects/crossbridge/files/

CrossAlchemy commented 9 years ago

vpmedia, alot of people still having lower versions. It is bad to ask them to update, because this question has some kind of "download nature" Why not support min. version, it is good practice.

twistedjoe, it has bug witch was fixed by vpmedia. Look here https://github.com/adobe-flash/crossbridge/issues/56

JoeDupuis commented 9 years ago

We should not be so eager to close bug and force end user to use the last flash version, but I see why this bug was closed. I doubt any serious effort will be made on this issue for quite some time, I don't plan on porting my engine to Stage3D for at least a couple of months.

Though here is some things that could help pinpoint the issue.

First, what are you building? Is it the samples or custom code? If it is the sample, well it's definitely a problem, else, try building the stage3D sample and see if they work.

Try old release too, if you need the fix for https://github.com/adobe-flash/crossbridge/issues/56, try a release between the two. Sadly they have not been kept on sourceforge, so you will have to build it yourselve. Since there was no tags before the version 15. It's gonna be a tedious task (reading the commit messages), but still.

Though first as I said. Check if the samples works. If they do, it might not be a crossbridge problem.

CrossAlchemy commented 9 years ago

twistedjoe, i do not say that it is crossbridge problem/ it is problem of runtime. try to compile something, that uses Context3D::configureBackBuffer <- it should run on 11.8 but it throws. on 15 > it runs perfectly. Compile with original CrossBridge 1.0.1 it runs on 11.8 without excptions

JoeDupuis commented 9 years ago

That was my understanding. Though it might still help pinpoint the issue to know if the sample crash too. If it doesn't we go by bisection from there and try to find the culprit in the difference between what you do and the sample.

vpmedia commented 9 years ago

I'll try to reproduce this one.

vpmedia commented 9 years ago

Hi, Changes related to fix for adobe-flash#56: https://github.com/crossbridge-community/crossbridge/commit/294c54fb988dcdc9ca6cae1625f48ff1dff53a95

vpmedia commented 9 years ago

Also I don't think the two issue is connected (stage3d vs. threads) - but of course its still possible.