Comments (10)
Hi,
I've tried to reproduce your problem and can confirm it exists..
Currently i'm doing some maintenance on the SDK,
you can find the fork here:
https://github.com/vpmedia/crossbridge
..and the project site here:
https://sourceforge.net/projects/crossbridge-community/
If you have some free time please try to build the SDK so I can have feedbacks.
Most of the thread impl. is in these files:
posix
C_Run.as
CModule.as
libcHack.c
I'll try to look more into it later..
from crossbridge.
I would start to enable the trace statements, so have some sense about the execution flow..
Also worth to try to enable the try catch exception here:
C_Run.as : 249 : public function threadArbCondWait(timo:Number):Boolean
from crossbridge.
Also i think the whole implementation should be reviewed according to AS3 API updates.
from crossbridge.
it looks like that the issue is quite old:
https://forums.adobe.com/message/5143791
any chance for Adobe support on this one?
from crossbridge.
Hi
Well, I'm a little frustrated.
-
SDK build:
I have cygwin, java, installed cygwin tools for autoconf and so on. But building SDK failes. Do you have a "how-to" explaining of enviroment setup on Windows or Linux? -
The traces and debugging.
GDB does not work with SWC/SWF samples (it can not connect at all), and crashes with segfault with multithreaded swf.
FDB does not work with multithreaded applications at all, or maybe I'm just missing something.
So even if I compile the C_Run.as file to ABC and somehow compile it into my SWF - how can I see the traces? Flash Scout maybe?
Sorry for the stupid questions, but my tech background is really miles away from Flash and Windows.
from crossbridge.
Some help for debugging SWFs:
- Download Flash Debug Player: https://www.adobe.com/support/flashplayer/downloads.html (I would recommend to setup both for browsers and standalone, second is essential for CrossBridge)
- Setup Flash Player logging/debugging: https://helpx.adobe.com/flash-player/kb/configure-debugger-version-flash-player.html (You will find a flashlog.txt if setup is succeeded, like: \Users\USERNAME\AppData\Roaming\Macromedia\Flash Player\Logs\ on Win7)
- Set FLASH_PLAYER_EXE environment variable pointing to Flash Player Standalone location, like:
FLASH_PLAYER_EXE=C:\Work\tools\flashplayer.exe - Set FLASCC_GDB_RUNTIME env. variable pointing to F.P. Standalone with Cygwin style path, like: FLASCC_GDB_RUNTIME=/cygdrive/c/Work/tools/flashplayer.exe
- Download Adobe AIR SDK from: https://www.adobe.com/devnet/air/air-sdk-download.html
- Set AIR_HOME env. variable pointing to SDK location, like: AIR_HOME=C:\Work\sdks\adobe-air\14.0
- Learn about FDB for CrossBridge debugging here: https://www.adobe.com/devnet-docs/flascc/docs/gdb_nonstop.html
- Learn more about FDB for Flex/Flash here: http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ffb.html
from crossbridge.
Some help for building CrossBridge SDK from source:
- Download Cygwin pre-installed distribution from here (Needed only for Win.):
http://sourceforge.net/projects/crossbridge-community/files/cygwin-for-sdk-devs.zip/download - Take a look at README.md inside the ZIP package
- Take a look at: https://github.com/vpmedia/crossbridge/blob/master/INSTALL.md
- Check build logs at _\crossbridge\build\win\logs_
- Check config log at failing build target, like: \build\win\llvm-gcc-42\config.log
- Provide these logs if you cannot solve the issue by self
from crossbridge.
Thanks so much for the help!
from crossbridge.
Hi,
After decompiling two different versions of the test program I've found out that the following statement causes the issue:
\posix\CModule.as
public static function startAsync
// try to set us as the ui thread
try {
C_Run.workerClass["current"].setSharedProperty("flascc.uiThread.threadId", realThreadId);
} catch(e:*) {}
If I comment this out I can run the embedded SWCs spawnThread
method in my application (If I run it using startAsync
rather than startBackground
).
I'll release soon a new version of CrossBridge here with the fix:
http://sourceforge.net/projects/crossbridge-community/files/1.0.4/
Anyway some feedback from the previous maintainers would be awesome, why this change has been applied since Flascc (CrossBridge) 1.0.0
- Edit:
Reviewing the changelist from 1.0.1 this one is a candidate:
- avm2_uithunk no longer fails when content was started using CModule.startAsync() due to incorrect assignment of thread ids
- Edit 2:
from crossbridge.
Hi, I've uploaded a release with the fix for the issue:
http://sourceforge.net/projects/crossbridge-community/files/1.0.4/CrossBridge_1.0.4.2.zip/download
from crossbridge.
Related Issues (20)
- Merge codebase to the official SWIG project HOT 3
- Cannot build master branch on Windows platform using Cygwin HOT 6
- Cannot build master branch on Mac platform using Travis-CI HOT 2
- getting started HOT 7
- Building the SDK HOT 1
- getting started HOT 17
- performance aspects of crossbridge code HOT 2
- GDB. HOT 1
- fopen with directories makes fseek throw HOT 2
- PlayerKernel.open() throws exception when opening ISpecialFile file with O_TRUNC
- Cygwin dll files is missing HOT 1
- simple app used flashcc socket throws 'terminate called after throwing an instance of 'AS3::ui::var'' HOT 1
- Can't get it to work with SFML
- how do i link a static lib which build by cygwin HOT 1
- Use crossbridge to compile client.c to swc but failed because of a link error HOT 1
- gcc in cygwin is not support windows 10
- archive project? HOT 4
- crossbridge and C++11 HOT 10
- Disable output in adl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crossbridge.