Using FSockets for IOS

Hello,

So when i run the project on the editor it all runs correctly even on standalone mode all packets get sent and received. But if i package the project and run it on IOS the project crashes as soon as it tries to initialize the FSocket class which is done at the press of a button. In other words everything runs correctly until i press the button. When the button is press the app just closes down.

Are there extra step i need to do to make sure the project can run on IOS and use the FSocket class?

Here is some log info for those of you who are willing to help me

Hardware Model:      
Process:             FSOcket_Test [2628]
Path:                /private/var/containers/Bundle/Application/A53D7D51-943F-4C85-8273-1626A2E72DFE/FSOcket_Test.app/FSOcket_Test
Identifier:          com..SocketTest
Version:             0.23 (1.0)
Code Type:           ARM (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com..SocketTest [837]
Date/Time:           2016-12-28 09:14:57.3356 -0800
Launch Time:         2016-12-28 09:14:44.8205 -0800
OS Version:          iPhone OS 10.1.1 (14B100)
Report Version:      104
Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Triggered by Thread:  7
Filtered syslog:
None found
Thread 0:
0   libsystem_kernel.dylib          0x1e3f283c mach_msg_trap + 20
1   CoreFoundation                  0x1ec1a869 __CFRunLoopServiceMachPort + 137
2   CoreFoundation                  0x1ec18b67 __CFRunLoopRun + 1015
3   CoreFoundation                  0x1eb68073 CFRunLoopRunSpecific + 487
4   CoreFoundation                  0x1eb67e81 CFRunLoopRunInMode + 105
5   GraphicsServices                0x20314bfd GSEventRunModal + 157
6   UIKit                           0x23d1c82f -[UIApplication _run] + 575
7   UIKit                           0x23d16f61 UIApplicationMain + 151
8   FSOcket_Test                    0x004f09e5 0x80000 + 4655589
9   libdyld.dylib                   0x1e33250b start + 3
Thread 1:
0   libsystem_kernel.dylib          0x1e408744 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x1e4ba48c start_wqthread + 8
Thread 2:
0   libsystem_kernel.dylib          0x1e408744 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x1e4ba48c start_wqthread + 8
Thread 3:
0   libsystem_kernel.dylib          0x1e408744 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x1e4ba48c start_wqthread + 8
Thread 4:
0   libsystem_kernel.dylib          0x1e408744 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x1e4ba48c start_wqthread + 8
Thread 5:
0   libsystem_kernel.dylib          0x1e408744 __workq_kernreturn + 8
1   libsystem_pthread.dylib         0x1e4ba48c start_wqthread + 8
Thread 6 name:  com.apple.uikit.eventfetch-thread
Thread 6:
0   libsystem_kernel.dylib          0x1e3f283c mach_msg_trap + 20
1   CoreFoundation                  0x1ec1a869 __CFRunLoopServiceMachPort + 137
2   CoreFoundation                  0x1ec18b67 __CFRunLoopRun + 1015
3   CoreFoundation                  0x1eb68073 CFRunLoopRunSpecific + 487
4   CoreFoundation                  0x1eb67e81 CFRunLoopRunInMode + 105
5   Foundation                      0x1f49a0db -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 261
6   Foundation                      0x1f4b8df1 -[NSRunLoop(NSRunLoop) runUntilDate:] + 87
7   UIKit                           0x24624cb3 -[UIEventFetcher threadMain] + 129
8   Foundation                      0x1f5830d1 __NSThread__start__ + 1161
9   libsystem_pthread.dylib         0x1e4bca17 _pthread_body + 217
10  libsystem_pthread.dylib         0x1e4bc93d _pthread_start + 235
11  libsystem_pthread.dylib         0x1e4ba498 thread_start + 8
Thread 7 Crashed:
0   libsystem_kernel.dylib          0x1e407ad4 __pthread_kill + 8
1   libsystem_c.dylib               0x1e39b309 abort + 109
2   FSOcket_Test                    0x0051e981 0x80000 + 4843905
3   FSOcket_Test                    0x00606923 0x80000 + 5794083
4   libsystem_platform.dylib        0x1e4b826d _sigtramp + 25
5   FSOcket_Test                    0x005a3773 0x80000 + 5388147
6   FSOcket_Test                    0x00921929 0x80000 + 9050409
7   FSOcket_Test                    0x00a272a9 0x80000 + 10121897
8   FSOcket_Test                    0x00a289ed 0x80000 + 10127853
9   FSOcket_Test                    0x00a267f7 0x80000 + 10119159
10  FSOcket_Test                    0x00a289ed 0x80000 + 10127853
11  FSOcket_Test                    0x00921929 0x80000 + 9050409
12  FSOcket_Test                    0x00a2cb75 0x80000 + 10144629
13  FSOcket_Test                    0x01724a1b 0x80000 + 23743003
14  FSOcket_Test                    0x02f5453f 0x80000 + 49104191
15  FSOcket_Test                    0x02ee293f 0x80000 + 48638271
16  FSOcket_Test                    0x02f788e5 0x80000 + 49252581
17  FSOcket_Test                    0x024aac75 0x80000 + 37923957
18  FSOcket_Test                    0x02324a91 0x80000 + 36326033
19  FSOcket_Test                    0x022e6bbd 0x80000 + 36072381
20  FSOcket_Test                    0x0232e519 0x80000 + 36365593
21  FSOcket_Test                    0x0232e5bb 0x80000 + 36365755
22  FSOcket_Test                    0x006163bf 0x80000 + 5858239
23  FSOcket_Test                    0x0060ea1d 0x80000 + 5827101
24  FSOcket_Test                    0x0060e0df 0x80000 + 5824735
25  FSOcket_Test                    0x02302e39 0x80000 + 36187705
26  FSOcket_Test                    0x004eaf03 0x80000 + 4632323
27  FSOcket_Test                    0x00606c07 0x80000 + 5794823
28  Foundation                      0x1f5830d1 __NSThread__start__ + 1161
29  libsystem_pthread.dylib         0x1e4bca17 _pthread_body + 217
30  libsystem_pthread.dylib         0x1e4bc93d _pthread_start + 235
31  libsystem_pthread.dylib         0x1e4ba498 thread_start + 8

Hi Luismex4,

In order to help you resolve this we will need also need the runtime log and the crash log. Please provide the following:

  1. If the Crash Reporter window is present when the crash occurs, select “Copy Callstack to the Clipboard,” and paste that information in a document and add to this post. Be sure to hit “Submit” on the Crash Reporter pop-up to send the Crash Report to Epic. Also, be sure the text includes your machine ID.
  2. “UE4.log” Located: Engine\Saved\Logs\
  3. “ProjectName.log” Located: ProjectName\Saved\Logs\

Thanks,

.

Hi Luismex4,

Since we have not heard back from you in a while, we are marking this post “resolved” for tracking purposes. However, if you are still having a problem with your project crashing when running in iOS, please respond with the requested information and we will continue to investigate.

Thanks,

.

Hi, I am having the same problem in 4.16. Did you find a solution?