VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

Crash after VialerSIPLib Installation & on building for iPhone #182

Open ratan93 opened 5 years ago

ratan93 commented 5 years ago

Version

Lastest 3.5.2

File / Feature

Setting up end point.

Expected behavior

It should configure the VialerSIP with credentials update inside keys.swift file.

Actual behavior

But it is crashing inside file VSLEndpoint. Here is crash log: VialerSIPLib_Example(1903,0x10306eb80) malloc: can't allocate region mach_vm_map(size=4336959488) failed (error code=3) VialerSIPLib_Example(1903,0x10306eb80) malloc: set a breakpoint in malloc_error_break to debug

Stacktrace / Error message

VialerSIPLib_Example(1903,0x10306eb80) malloc: can't allocate region mach_vm_map(size=4336959488) failed (error code=3) VialerSIPLib_Example(1903,0x10306eb80) malloc: set a breakpoint in malloc_error_break to debug

Other info

This is being critical to find out and implement into application at my end asap. So please if anyone can help me on this. I shall be obliged.

Thanks, Ratneshwar, IOS Team

Screenshot 2019-04-03 at 2 48 28 PM
jeremynorman89 commented 5 years ago

Hey,

We just released 3.5.3, could you try with that version to make sure the issue still exists?

ratan93 commented 5 years ago

@jeremynorman89 , Thanks for reply but I am still getting the error after configuration of pod file in example project.

I followed following steps:

  1. Clone the source code from repository.
  2. Navigate to example folder & run pod update command.
  3. After opening VialerSIPLib.xcworkspace, I ran into errors of missing pjsip files.
  4. I updated example pod file by adding following lines: pod 'Vialer-pjsip-iOS', :git => 'https://github.com/VoIPGRID/Vialer-pjsip-iOS' pod 'pjsip'
  5. run the command pod update & run the example project.
  6. Updated the keys.swift file for my credentials.
  7. Build successful but after launch I am getting above issue.

Please help me to configure it to my app as I am very new to SIP concept.

Thanks, Ratneshwar

NaiyerAghaz commented 4 years ago

I am getting same issue please save my day, look at the screenshot too. I am using pod

# platform :ios, '9.0'
#use_frameworks! #!! Do not enable, causes an error about "target has transitive dependencies that include static binaries.... "
def pods_for_all_targets
    pod 'VialerSIPLib'
    pod 'pjsip'
end
Screenshot 2019-12-17 at 6 21 57 PM