应用程序崩溃 - “DiskImageCache:无法解析旧目录的绝对路径。” [英] App crash - "DiskImageCache: Could not resolve the absolute path of the old directory."

查看:180
本文介绍了应用程序崩溃 - “DiskImageCache:无法解析旧目录的绝对路径。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,我在其中显示用户在PDF文件中输入的数据。 PDF文件也是动态创建的。

I am working on an app, where I display the data entered by user in a PDF file. PDF File is also created dynamically.

这一切都很好。

我已经实现了QuickLook框架来显示pdf文件。当我调用QL框架时,PDF文件ID显示得很好但是当回到调用屏幕时,我的应用程序崩溃而没有任何崩溃日志或内存警告。

I have implemented QuickLook framework to display the pdf file. When I call the QL framework, PDF file id displayed quite fine but when come back to the calling screen, my app crashes without any crash log or memory warnings.

我是使用以下代码调用QL:

I am calling QL with below code:

[[self navigationController] presentModalViewController:qlPreviewer animated:YES];

创建的日志是

DiskImageCache: Could not resolve the absolute path of the old directory.
[Switching to process 3070 thread 0x17603]
[Switching to process 3070 thread 0x15503]

这很有意思.....
当我在Instruments中运行相同的程序来检查泄漏和内存管理时,我只能在滚动PDF文档并查看所有页面时发现泄漏。
然而,有趣的是,我看不到应用程序崩溃。
另外,我确实尝试过使用 ZombieEnabled = YES 而没有它,但没有应用程序崩溃与仪器。

This is quite interesting..... When I run the same program in Instruments to check for leaks and Memory Management, i can only find leaks when PDF document is scrolled and all the pages are viewed. However, interestingly there is no app crash that I can see. Also, I did try with ZombieEnabled = YES and without it but no app crash with Instruments.

我对如何解释这一点毫无头绪,并且一直在尝试不同的方法来解决这个问题。此外,我尝试过UIWebView但结果是一样的。

I am quite clueless on how to interpret this and have been trying different things to solve this. Also, I have tried UIWebView but the result is the same.

我再次尝试检查问题,发现了一些有趣的东西。
当我直接从X-Code执行代码时 - 如上所述我得到了崩溃。

I was again trying something to check out the issue and found something interesting. When i execute the code directly from X-Code - i get the crash in as explained above.

在其他情况下,如果我通过点击执行应用程序在sim中的应用程序...没有崩溃

In other instance, if I execute the app by clicking on the app in the sim... no crash

我还没有在设备上检查这个。有人可以确认设备上的崩溃吗?

I am yet to check this on device. Can someone confirm the crash on the device?

此外,Google没有回答这个问题。

Also, Google does not have answer to this question.

提前感谢您的回答。
任何人都可以对此有所了解吗?

Thanks in advance for your answers. Can anyone shed some light on this?

推荐答案

我遇到了完全相同的问题。

I'm having the exact same issue.

作为解决方法,您可以禁用或删除所有异常断点。这可能会使调试变得更加困难,但它并不像必须一直重新启动应用程序那么糟糕。

As a workaround, you can disable or remove your 'All Exceptions' breakpoint. This might make debugging a little more difficult, but it's not as bad as having to relaunch the application all the time.

这是导致问题的断点。我很久以前就把它设置好了,我忘了那里是

This is the breakpoint causing the issue. I had set it so long ago that I'd forgotten it was there

这篇关于应用程序崩溃 - “DiskImageCache:无法解析旧目录的绝对路径。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆