Marinell / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

App crashes on iOS devices when using sound #1166

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to add sounds to my app but cannot get it to work on iOS devices: 
the app keeps crashing.
A crash means the app is moved to background and when moved to foreground it 
either restarts or hangs.
Using the sounds works fine in the Simulator and on Android device.

CN1 version is 1.0.77. NetBeans 7.3 & Windows 7. 
Devices: iPad/iOS 7.1.2 and iPodTouch/iOS 6.1.6, Nexus7/Android 4.4.4

See the attached project that will reproduce the problem.

1. run the program on an iOS device
2. click button 'Click'                                --> a click sound is 
played
3. click one of the white or black pieces on the board --> app crashes

The expected output is that the square on which the clicked piece resides is 
highlighted.
Instead the app crashes.

See also these posts in the discussion forum:

https://groups.google.com/forum/embed/?place=forum/codenameone-discussions&shows
earch=true&showpopout=true&hl=en&parenturl=http%3A%2F%2Fwww.codenameone.com%2Fdi
scussion-forum.html#!searchin/codenameone-discussions/board$20game/codenameone-d
iscussions/Yntcaj4i1bU/YzbJJpHpOBgJ
https://groups.google.com/forum/embed/?place=forum/codenameone-discussions&shows
earch=true&showpopout=true&hl=en&parenturl=http%3A%2F%2Fwww.codenameone.com%2Fdi
scussion-forum.html#!searchin/codenameone-discussions/sound/codenameone-discussi
ons/wGqrzRfAvOc/fD7fSruXYz0J

Original issue reported on code.google.com by janjaapv...@gmail.com on 16 Aug 2014 at 12:39

Attachments:

GoogleCodeExporter commented 9 years ago
This issue should be resolved now. It was triggered due to a fix for a memory 
leak that exposed a rather old bug in the code.

Original comment by shai.almog on 19 Aug 2014 at 11:30

GoogleCodeExporter commented 9 years ago
Thank you.
Will the update show in the next CN1 version (plugin) or in the next 
project/client libs version, and when is that due?
(I suppose it's not a server update, as I just tried a new build on iPad and 
that doesn't work yet.)

Original comment by janjaapv...@gmail.com on 19 Aug 2014 at 1:38

GoogleCodeExporter commented 9 years ago
Just send a new build, we had a fix failed issue but it should work now.

Original comment by shai.almog on 20 Aug 2014 at 12:12

GoogleCodeExporter commented 9 years ago
Thanks, it works now!

Original comment by janjaapv...@gmail.com on 20 Aug 2014 at 4:11