Jump to content
  • Advertisement

carew

Member
  • Content Count

    52
  • Joined

  • Last visited

Community Reputation

145 Neutral

About carew

  • Rank
    Member
  1. carew

    Bytecode from PC to mobile

    Sorry, all works fine I had problems with a file reader on Android :/
  2. carew

    Bytecode from PC to mobile

    Hello,   Is it possible to use bytecode saved on Linux (x86/x64) on mobile platforms like Android or iOS (ARM)? Today I tried that, but it looks like a bytecode is incompatible (Script building failed). Is it a bug or normal behaviour? Bytecode works without problems on both x86 and x64 Linux.   Cheers,
  3. carew

    Problem with random float value on Android

    I can confirm that this bug wasn't caused by Angel Script. I found issue inside my C++ code and fixed it. If you can edit topic please mark it as "NOT BUG".     Thanks for it and all your help.
  4. carew

    Problem with random float value on Android

    Thanks for info, I'll try to prepare working patch.
  5. carew

    Problem with random float value on Android

    This problem still occur with NDK r10. I'll check armeabi-v7a build. BTW. I tried to run my app with hard-float flag (of course I removed AS_SOFTFP in as_config.h for Android), but in this case AngelScript causes app crash (native calling convention), however with default settings for armeabi-v7a (softfp + fpu set to vfp3) AngelScript starts fine.
  6. carew

    Problem with random float value on Android

    I checked my app for memory leaks on iOS (instruments tool) and on Windows (visual leak detector) and both tools didn't find leaks, however after change NDK from r9 to r10 I still can't reproduce this issue on Android. At now I have following infos: - This issue appeared with NDK r9x, however app builded with r10 wasn't tested too long ~5 hours. - This issue didn't appear on CyanogenMod based devices. Maybe branded Android soft was fault (one Lenovo phone and one HTC as I remember). I'll post more info when I'll get feedback from a beta testers.
  7. carew

    Problem with random float value on Android

    Valgrind with default settings doesn't show any memory problems, however I'll check it again with other settings tomorrow.     No, I need 'i' value from inner loop, so if variable from inner loop hide variable from outer loop my script works properly. It looks like I have to find my bug in other place :/ I'll post my results soon.   I'll be thankful about info (bug or not) with redeclared variables.   It's strange but only a few Android based devices are affected by this issue, thats why it's hard to debug and find it.   BTW. This app on iOS works without problems.
  8. carew

    Problem with random float value on Android

    Thanks for a replay. I can check my 64-bit linux binary in valgrind, however I never used it before, so maybe can you tell me which settings I should use for memcheck test? I tried valkyrie with default settings, but it shows only LDL problem with X64_CallFunction and a lot of fglrx_dri issues.   --- Update ---   Can you explain how this situation is interpreted by AngelScript (I found this issue in my script): enum SOME_ENUM { TP0 = 0, TP1, TP2 } for (uint i = 0; i < somebigvalue; ++i) {      for (uint i = 0; i < objects[i].length(); ++i)      {           // 'i' is redeclared, so is it possible that it stores here values from range 0-somebigvalue?           int result = val[objects[i].getType()]; // objects[i].getType() return enum (SOME_ENUM).           problematicFloat = 0.5f * result;      } } I currently replaced variable name in second 'for' and it looks like problem is gone, but I'm not sure thats why I'll thankful if you would comment this case.   Is it safe to use enums without casting to int as array ID eg. 'val[objects.getType()]' instead of 'val[int(objects.getType())]'? AngelScript compiler doesn't report any problems.
  9. In my app I have problem with floats on some Android based devices (ARM). Sometimes I see that my float has other value than which one I set before. I think that it may be caused by softfp (it's hard to reproduce this issue, because it appear in random situations - after 10 minute, next time after 3 minutes etc, but only for one variable). I don't see this issue on PC, so it looks like it's related to ARM and Android. I see that AngelScript doesn't support hard floating point on Android (as_config.h), but force softfp (AS_SOFTFP). Is it safe to force hard fp for AngelScript? Maybe it will solve my problem.
  10. carew

    Linux x64 + asOBJ_VALUE problem.

    Thanks a lot for your help! It works great! :)
  11. carew

    Linux x64 + asOBJ_VALUE problem.

    It returns 768 for these classes.
  12. carew

    Linux x64 + asOBJ_VALUE problem.

    Sorry for double post. I pressed 'post' by mistake. Upper error is cause of missing copy constructor. In my app I use static functions for copy constructor: template<class T> static void CONST_COPY(T* th, const T& ot) {      new(th) T(ot); } Anyway when I use upper function as copy constructor and register classes as asOBJ_APP_CLASS_CK I see issues from my first post.
  13. carew

    Linux x64 + asOBJ_VALUE problem.

    Thanks for replay. When I used GetTypeTraits<T>() I get this error when I try to register methods which return btVector3 or btQuaternion:
  14. Hi,   I'm trying to register btQuaternion and btVector3 (classes from Bullet Physics) classes in AngelScript as value objects. On Windows x86 and Linux x86 all works fine, but on Linux x64 I see problems with these classes. I use "asOBJ_VALUE|asOBJ_APP_CLASS_CDAK" for those classes. In script I see following results: btRigidBodyObject.setGravity(btVector3(5.f, 6.f, 7.f)); btVector3 a(1.f, 2.f, 3.f); float b = 1.f; btQuaternion sample(a, b); sample.getAxis().x(); // when I print this value I see data which I set in setGravity method, so 5.f, getAxis method return btVector3 Do you know where issue may exist? Why getAxis method return data from gravity? I tried asOBJ_APP_CLASS_ALLFLOATS for both btVector3 and btQuaternion, but it didn't help.   BTW. I disabled sse and allign to 16 bytes for bullet classes.   UPDATE: I forgot to mention that on OSX x64 the same issue appear. I use the latest rev from trunk.   Cheers,
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!