iOS Facebook SDK 在 iOS 4.1 和 4.2 中崩溃

标签 ios facebook sdk crash

是我还是其他任何人在使用 Facebook SDK 的 iOS 版本上崩溃。当您要共享时会发生这种情况,然后它会为您提供错误的访问权限并且调试器会显示“decodeGIFFrame”...经过一番研究我注意到 Facebook html 正在返回一个带有空引用的图像“img src="/images/icons/default_app_icon.gif"/>"但我不认为图像的“空”引用会导致崩溃但渲染的 gif ... 如何修复它?

编辑:崩溃的BT

#0  0x33ff4938 in decodeGIFFrame ()
#1  0x33ff5ef8 in copyImageBlockSetGIF ()
#2  0x33fe463c in ImageProviderCopyImageBlockSetCallback ()
#3  0x31314e4c in CGImageProviderCopyImageBlockSetWithOptions ()
#4  0x31314cfc in CGImageProviderCopyImageBlockSet ()
#5  0x313149cc in img_blocks_create ()
#6  0x31312248 in img_data_lock ()
#7  0x31310fd0 in CGSImageDataLock ()
#8  0x315b7604 in ripc_AcquireImage ()
#9  0x315b3dfc in ripc_DrawImage ()
#10 0x31310cc4 in CGContextDelegateDrawImage ()
#11 0x31310ae8 in CGContextDrawImage ()
#12 0x34323a48 in WebCore::BitmapImage::checkForSolidColor ()
#13 0x343234d0 in WebCore::BitmapImage::cacheFrame ()
#14 0x343233cc in WebCore::BitmapImage::frameAtIndex ()
#15 0x343226a8 in WebCore::BitmapImage::draw ()
#16 0x34322568 in WebCore::GraphicsContext::drawImage ()
#17 0x343223e8 in WebCore::GraphicsContext::drawImage ()
#18 0x34321f28 in WebCore::RenderImage::paintIntoRect ()
#19 0x3431482c in WebCore::RenderImage::paintReplaced ()
#20 0x34314134 in WebCore::RenderReplaced::paint ()
#21 0x34313e90 in WebCore::RenderImage::paint ()
#22 0x34313e54 in WebCore::InlineBox::paint ()
#23 0x34313e54 in WebCore::InlineBox::paint ()
#24 0x34312c10 in WebCore::InlineFlowBox::paint ()
#25 0x34312790 in WebCore::RootInlineBox::paint ()
#26 0x34223964 in WebCore::RenderLineBoxList::paint ()
#27 0x34220138 in WebCore::RenderBlock::paintObject ()
#28 0x34221670 in WebCore::RenderBlock::paint ()
#29 0x34220a6c in WebCore::RenderBlock::paintFloats ()
#30 0x342201d8 in WebCore::RenderBlock::paintObject ()
#31 0x34221670 in WebCore::RenderBlock::paint ()
#32 0x342207f4 in WebCore::RenderBlock::paintChildren ()
#33 0x34220150 in WebCore::RenderBlock::paintObject ()
#34 0x34221670 in WebCore::RenderBlock::paint ()
#35 0x342207f4 in WebCore::RenderBlock::paintChildren ()
#36 0x34220150 in WebCore::RenderBlock::paintObject ()
#37 0x34221670 in WebCore::RenderBlock::paint ()
#38 0x342207f4 in WebCore::RenderBlock::paintChildren ()
#39 0x34220150 in WebCore::RenderBlock::paintObject ()
#40 0x34221670 in WebCore::RenderBlock::paint ()
#41 0x342207f4 in WebCore::RenderBlock::paintChildren ()
#42 0x34220150 in WebCore::RenderBlock::paintObject ()
#43 0x34221670 in WebCore::RenderBlock::paint ()
#44 0x3421e99c in WebCore::RenderLayer::paintLayer ()
#45 0x3421ec24 in WebCore::RenderLayer::paintLayer ()
#46 0x3421ec24 in WebCore::RenderLayer::paintLayer ()
#47 0x3421dce0 in WebCore::RenderLayer::paint ()
#48 0x3421db38 in WebCore::FrameView::paintContents ()
#49 0x30369fb8 in -[WebFrame(WebInternal) _drawRect:contentsOnly:] ()
#50 0x30369dec in -[WebHTMLView drawSingleRect:] ()
#51 0x30369d20 in -[WebHTMLView drawRect:] ()
#52 0x3421d828 in drawCallback ()
Cannot access memory at address 0x4380fffc

它发生在 Facebook webView 委托(delegate)响应“webViewDidFinishLoad:”之后

最佳答案

需要在 Facebook.m 文本中替换:

static NSString* kDialogBaseURL = @"https://m.facebook.com/dialog/";

static NSString* kDialogBaseURL = @"https://www.facebook.com/dialog/";

关于iOS Facebook SDK 在 iOS 4.1 和 4.2 中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8450404/

相关文章:

java - 重复条目 : com/google/android/gms/auth/api/signin/internal/zzf. 类

c++ - 如何在 Linux 上构建 "lzma sdk"

ios - UITableView插入行动画与自定义单元格不一致

html - iOS 删除除 <p> 之外的所有 HTML 标签

Facebook 不允许发布照片 url,它指的是 Facebook 的服务器

android - 在 Genymotion 中安装 Facebook APK

parsing - 解析和 Rubymotion

ios - 将 UIImage 中的图像作为 JPEG 与其他 POST 数据一起上传

ios - 如何使用导航 Controller iOS 13 从模态呈现的 ViewController 将 ViewController 推送到全屏?

facebook - 在 Facebook 的图形 API 上发布限制