Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
2013.09 and later crashes with Notification plugin in Android — Gideros Forum

2013.09 and later crashes with Notification plugin in Android

Jeff_KanaziJeff_Kanazi Member
edited October 2013 in Bugs and issues
Hi,

The code used to work fine with the earlier releases but ever since we have tried to upgrade to 2013.09 the notifications plugin has stopped working. After some digging it looks like the call to require("notification") is going through OK but setting event listeners like this crashes and it does not matter what the functions are. We have tried even empty function body just in case but it is all the same.

if notifManager then
notifManager:addEventListener(Event.PUSH_REGISTRATION, pushRegistrationSuccess)
notifManager:addEventListener(Event.PUSH_REGISTRATION_ERROR, pushRegistrationError)
notifManager:addEventListener(Event.PUSH_NOTIFICATION, pushNotification)
end

Other plugins used the project like AdMob, Facebook and Google Billing appear to be working fine. Not sure how this would matter but this is done with a licensed version of Gideros so there is no Gideros logo at start.

The debug output looks like this:

10-24 16:16:01.026: A/libc(8448): Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1), thread 8461 (Thread-690)
10-24 16:16:01.126: I/DEBUG(120): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-24 16:16:01.126: I/DEBUG(120): Build fingerprint: 'google/nakasi/grouper:4.3/JWR66Y/776638:user/release-keys'
10-24 16:16:01.126: I/DEBUG(120): Revision: '0'
10-24 16:16:01.126: I/DEBUG(120): pid: 8448, tid: 8461, name: Thread-690 >>> com.ijs.phyzzlets <<<
10-24 16:16:01.126: I/DEBUG(120): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000010
10-24 16:16:01.236: I/DEBUG(120): r0 00000000 r1 69734460 r2 40000000 r3 69ce49b8
10-24 16:16:01.236: I/DEBUG(120): r4 00000000 r5 6a2d02a8 r6 69ce49b8 r7 ffffffff
10-24 16:16:01.236: I/DEBUG(120): r8 69ce4978 r9 00000000 sl 6a2d02a4 fp 00000000
10-24 16:16:01.236: I/DEBUG(120): ip 00000001 sp 6983c59c lr 6967e559 pc 6960e64e cpsr 200b0030
10-24 16:16:01.236: I/DEBUG(120): d0 5f544c554e554f53 d1 8d00000098000000
10-24 16:16:01.236: I/DEBUG(120): d2 9800000098000000 d3 9800000098000000
10-24 16:16:01.236: I/DEBUG(120): d4 9600000096000000 d5 9600000096000000
10-24 16:16:01.236: I/DEBUG(120): d6 9600000096000000 d7 3ff0000000000000
10-24 16:16:01.236: I/DEBUG(120): d8 0000000000000000 d9 0000000000000000
10-24 16:16:01.236: I/DEBUG(120): d10 0000000000000000 d11 0000000000000000
10-24 16:16:01.236: I/DEBUG(120): d12 0000000000000000 d13 0000000000000000
10-24 16:16:01.236: I/DEBUG(120): d14 0000000000000000 d15 0000000000000000
10-24 16:16:01.236: I/DEBUG(120): d16 3f5176592e000000 d17 3f5176592e000000
10-24 16:16:01.236: I/DEBUG(120): d18 42a2309ce5400000 d19 0000000000000000
10-24 16:16:01.236: I/DEBUG(120): d20 40147ae147ae147b d21 4080000000000000
10-24 16:16:01.236: I/DEBUG(120): d22 0000000000000000 d23 0000000100000001
10-24 16:16:01.236: I/DEBUG(120): d24 0000000000000000 d25 0000002300000022
10-24 16:16:01.236: I/DEBUG(120): d26 4080000000000000 d27 991f1f1f991f1f1f
10-24 16:16:01.236: I/DEBUG(120): d28 0707070703030303 d29 008bc02300874022
10-24 16:16:01.236: I/DEBUG(120): d30 0082c000007e4000 d31 4000000000000000
10-24 16:16:01.236: I/DEBUG(120): scr 60000015
10-24 16:16:01.236: I/DEBUG(120): backtrace:
10-24 16:16:01.236: I/DEBUG(120): #00 pc 000e264e /data/app-lib/com.ijs.phyzzlets-2/libgideros.so (GReferenced::data(void*) const+1)
10-24 16:16:01.236: I/DEBUG(120): #01 pc 00152555 /data/app-lib/com.ijs.phyzzlets-2/libgideros.so
10-24 16:16:01.236: I/DEBUG(120): stack:
10-24 16:16:01.236: I/DEBUG(120): 6983c55c 6965215d /data/app-lib/com.ijs.phyzzlets-2/libgideros.so
10-24 16:16:01.236: I/DEBUG(120): 6983c560 69cd5c90
10-24 16:16:01.236: I/DEBUG(120): 6983c564 69ce49b8
10-24 16:16:01.236: I/DEBUG(120): 6983c568 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c56c 69cd5c90
10-24 16:16:01.236: I/DEBUG(120): 6983c570 00000004
10-24 16:16:01.236: I/DEBUG(120): 6983c574 69cf7fb0
10-24 16:16:01.236: I/DEBUG(120): 6983c578 ffffffff
10-24 16:16:01.236: I/DEBUG(120): 6983c57c 69ce4978
10-24 16:16:01.236: I/DEBUG(120): 6983c580 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c584 6a2d02a4
10-24 16:16:01.236: I/DEBUG(120): 6983c588 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c58c 696543b5 /data/app-lib/com.ijs.phyzzlets-2/libgideros.so (lua_setfield+52)
10-24 16:16:01.236: I/DEBUG(120): 6983c590 df0027ad
10-24 16:16:01.236: I/DEBUG(120): 6983c594 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c598 00000004
10-24 16:16:01.236: I/DEBUG(120): #00 6983c59c 00000000
10-24 16:16:01.236: I/DEBUG(120): #01 6983c5a0 69ce49b8
10-24 16:16:01.236: I/DEBUG(120): 6983c5a4 69cd5c90
10-24 16:16:01.236: I/DEBUG(120): 6983c5a8 6a2d02a8
10-24 16:16:01.236: I/DEBUG(120): 6983c5ac 696803df /data/app-lib/com.ijs.phyzzlets-2/libgideros.so (EventDispatcherBinder::addEventListener(lua_State*)+82)
10-24 16:16:01.236: I/DEBUG(120): 6983c5b0 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c5b4 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c5b8 69cd5c90
10-24 16:16:01.236: I/DEBUG(120): 6983c5bc 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c5c0 69ce49a8
10-24 16:16:01.236: I/DEBUG(120): 6983c5c4 69cd5c90
10-24 16:16:01.236: I/DEBUG(120): 6983c5c8 69ce49c8
10-24 16:16:01.236: I/DEBUG(120): 6983c5cc 69ce4998
10-24 16:16:01.236: I/DEBUG(120): 6983c5d0 69cd5c90
10-24 16:16:01.236: I/DEBUG(120): 6983c5d4 00000003
10-24 16:16:01.236: I/DEBUG(120): 6983c5d8 00000000
10-24 16:16:01.236: I/DEBUG(120): 6983c5dc 69707688 /data/app-lib/com.ijs.phyzzlets-2/libgideros.so

Anyone else with a similar problem?

Thanks for the help.

Comments

  • hmm, thats really interesting, because it does not seem to relate to this problem http://www.giderosmobile.com/forum/discussion/4073/gideros-2013-09-1-every-custom-android-plugin-fail-to-load#Item_1
    but it should

    any chance you have a mix of old/new files, like exporting upon older version project, etc?
  • No. I do not think so. Indeed updating an Android project has always been a pain and I try to migrate new files into my project instead of exporting onto it after Gideros update but after that did not work this time I started with a complete fresh export from Gideros and added the plugins to the new project. Did not work.

    I had a problem with another plugin too (facebook) and that was resolved but I am not sure what exactly resolved it - tried too many things in a rush including recompile of the libfacebook.so for that plugin with the latest libgideros.so. Frankly I am not sure why that helped since in the past updating the libgideros.so from a new Gideros release never required recompile of the other plugin libs.

    Then I tried recompiling the Notification plugin (libnotification.so) but that did not resolve the problem. .. Then I noticed that I was not using the latest Android NDK so I took the latest and tried again - no luck.

    Unfortunately I am not familiar enough with how the plugins work and I am not sure what in the plugin gets executed on the call to notifManager:addEventListener() ... Perhaps by the time I am done with that screenshot plugin I need I would have learned how to track this better.

    For now all I can tell is that NotificationClass.onCreate() is called and it does not crash (added some debug log) but almost anything else crashes ... almost as if NotificationManager.getSharedInstance() does not return the correct pointer somehow.



  • Hello,
    I've rebuilt the notification plugin for new Gideros version and can not reproduce this error. Can you please try it out (available in both Github and Gideros Labs) ;)
  • Thanks! This worked. I remember to keep track of and recompile plugins with each Gideros release. Somehow I guess I was lucky and did not need to do this before.

Sign In or Register to comment.