wei-spring / codenameone

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

Application with IOS static library freeze #1363

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
IOS application uses 2D barcode reader, native static library by
https://github.com/PDF417/pdf417-ios.
After 2-3 barcode reader calls application freeze.
Build with new VM.

What steps will reproduce the problem?

Previous few days build with new VM freeze.
Build with old VM working good - barcode reader can be called many times.
Found IPA file built 28.jan with new VM. Application working good.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
IOS 7.1, 8.1.3

Please provide any additional information below.
My forum post IOS application crash after today build

Original issue reported on code.google.com by ratko.sk...@gmail.com on 19 Feb 2015 at 9:41

GoogleCodeExporter commented 9 years ago
We need a full working test case that we can run.

Original comment by shai.almog on 21 Feb 2015 at 5:30

GoogleCodeExporter commented 9 years ago
It's very hard to make simple test case.
Every simple project works good.

On the project that we have problems with 
situation has changed since sunday 22. feb.

After build same application does not freeze any more but crashes
after staring barcode scanner SECOND time.
It crashes after barcode recognition on callback in IOS native code.

This is the line where application crashes:

hr_kaba_bcscanner_BCScanner_scanCallback__(CN1_THREAD_GET_STATE_PASS_SINGLE_ARG)
; 

Here is console output:

Feb 23 09:00:15 iPhone-od-Ratko BCTest[2681] <Warning>: ---- before  
scanCallback
Feb 23 09:00:15 iPhone-od-Ratko ReportCrash[2682] <Error>: 
task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) 
invalid argument)
Feb 23 09:00:15 iPhone-od-Ratko ReportCrash[2682] <Notice>: ReportCrash acting 
against PID 2681
Feb 23 09:00:15 iPhone-od-Ratko ReportCrash[2682] <Notice>: Formulating crash 
report for process BCTest[2681]
Feb 23 09:00:15 iPhone-od-Ratko mediaserverd[37] <Notice>: '' 
hr.kaba.bctest(pid = 2681) setting DiscoveryMode = DiscoveryMode_None, 
currentDiscoveryMode = DiscoveryMode_None
Feb 23 09:00:15 iPhone-od-Ratko mediaserverd[37] <Notice>: '' 
hr.kaba.bctest(pid = 2681) setting DiscoveryMode = DiscoveryMode_None, 
currentDiscoveryMode = DiscoveryMode_None
Feb 23 09:00:15 iPhone-od-Ratko com.apple.xpc.launchd[1] 
(UIKitApplication:hr.kaba.bctest[0x18c8][2681]) <Notice>: Service exited due to 
signal: Segmentation fault: 11
Feb 23 09:00:16 iPhone-od-Ratko SpringBoard[43] <Warning>: Application 
'UIKitApplication:hr.kaba.bctest[0x18c8]' crashed.
Feb 23 09:00:16 iPhone-od-Ratko kernel[0] <Notice>: 
AppleH4CamIn::ISP_FlushInactiveDARTMappings: 0x00000000
Feb 23 09:00:16 iPhone-od-Ratko ReportCrash[2682] <Notice>: Saved report to 
/var/mobile/Library/Logs/CrashReporter/BCTest_2015-02-23-090015_iPhone-od-Ratko.
ips
Feb 23 09:00:16 iPhone-od-Ratko assertiond[58] <Warning>: pid_suspend failed 
for <BKNewProcess: 0x16d7e9f0; hr.kaba.bctest; pid: 2681; hostpid: -1>: Unknown 
error: -1, Unknown error: -1
Feb 23 09:00:16 iPhone-od-Ratko assertiond[58] <Warning>: Could not set 
priority of <BKNewProcess: 0x16d7e9f0; hr.kaba.bctest; pid: 2681; hostpid: -1> 
to 2, priority: No such process
Feb 23 09:00:16 iPhone-od-Ratko assertiond[58] <Warning>: Could not set 
priority of <BKNewProcess: 0x16d7e9f0; hr.kaba.bctest; pid: 2681; hostpid: -1> 
to 4096, priority: No such process
Feb 23 09:00:16 iPhone-od-Ratko UserEventAgent[18] <Warning>: id=hr.kaba.bctest 
pid=2681, state=0

Original comment by ratko.sk...@gmail.com on 23 Feb 2015 at 8:06

GoogleCodeExporter commented 9 years ago
Since Tuesday, 24.Feb.2015 application does not crash but it freezes after 
starting the barcode scanner for a third time.

Original comment by idrag...@gmail.com on 24 Feb 2015 at 1:57