什么是“无法设置分配”?错误,谁发出的,我该怎么办?

发布于 2024-08-30 19:30:14 字数 1879 浏览 4 评论 0 原文

多年来,我们一直受到客户偶尔报告的困扰,这些报告涉及我们的应用程序启动时出现的非描述性错误消息“无法设置分配”。到目前为止,我们还无法在我们自己的测试环境中重现该问题。我现在已经没有办法尝试追踪这个问题了。以下是随着时间的推移积累的观察结果的集合:

  • 错误消息文本显示“无法设置分配”(注意缺少标点符号)。
  • 窗口标题只是“错误”(或本地化的等效内容)。
  • 无论操作系统区域设置如何,“无法设置分配”文本始终为英文。
  • 到目前为止,我无法找到包含消息文本的 DLL 或 EXE。

    到目前为止,
  • Google 充斥着有关此错误的报告 适用于各种不同的产品 - 但没有解决方案。

  • 到目前为止,我所能发现的受影响产品之间唯一的统一点是,它们似乎都以 DLL 的形式出现,加载到第三方进程中(例如 Visual Studio 或 Windows Explorer shell 扩展的插件)。到目前为止

  • 我们的应用程序实际上是一个用于 MS Outlook 的共享软件 COM 插件,用 Delphi 编写(即本机代码 - 无 .NET)。

    我们的应用程序
  • 我们案例中的主要嫌疑人是我们正在使用的第三方许可包装器,它会动态解密我们的 DLL 并将其解压缩到内存中。显然,我不能简单地向受影响的客户提供我们应用程序的未受保护版本来验证这一怀疑。也许其他受到举报的供应商正在使用类似的产品。

  • 许可供应商向我们提供的保护包装器的调试版本没有产生任何结果:日志文件看起来与未发生错误的会话完全相同。显然,“内部”DLL 已被解密和解压缩,但由于某种原因,主机进程仍然无法加载。

  • 创建不受保护的“加载程序”DLL,我们能够查明在应该将 DLL 加载到内存中的 LoadLibrary 调用后面某处发生的错误。

  • 我们自己的代码中的大量日志记录和全局异常挂钩(未受保护的加载程序和受保护的“核心”DLL)根本没有产生任何结果。该错误显然是在其他地方引发的。

  • 我之前的问题中描述的问题很可能是由同一问题引起的。这是在我们创建不受保护的加载程序存根之前。

  • 该错误仅发生在大约 1-2% 的客户中 - 而通常任何受影响客户站点上的所有安装都会受到相同的影响。

  • 有时,在我们发布新版本后,错误就会消失,但通常会在几周或几个月后再次出现。
  • 一旦机器上开始出现错误,它就会持续出现。
  • 通过远程访问(例如 VNC、RDP、TeamViewer 等)连接到受影响的计算机时,该错误永远不会发生,并且受影响的客户均不在我们的旅行范围内,因此我们所需要的只是日志文件和“目击者报告”。

  • 一位客户报告说,错误消息对话框显然是非模式的,即他能够简单地将对话框移到一边并继续使用应用程序(减去我们的 DLL 本应提供的功能)。不确定这在所有其他情况下是否也普遍成立。

  • 在某些情况下,客户可以通过禁用或卸载与我们自己的产品共享主机应用程序的其他供应商的其他插件来永久消除错误。

    在某些情况下,
  • 到目前为止,已在 Windows XP、Vista 和 7 上观察到该错误。

    到目前为止,已
  • 在过去几周内,我们发现了来自 Outlook 2003 / Windows 7 用户的报告。最近的 Windows/Office 更新是否会使情况变得更糟?

有人对这个错误有任何经验吗?

或者还有更多的想法来调查这个问题吗?

We've been plagued for several years by occasional reports from customers about a non-descript error message "Cannot set allocations" that appears on startup of our app. We have never been able to reproduce the problem in our own test environments so far. I have now run out of ideas for attempting to track this down. Here's a collection of observations that have accumulated over time:

  • Error message text reads "Cannot set allocations" (note absence of punctuation).
  • The window title simply reads "Error" (or the localized equivalent).
  • The "Cannot set allocations" text is always in English regardless of OS locale.
  • I have so far not been able to locate the DLL or EXE containing the message text.

  • Google is chock full of reports of this error for a variety of different products - but no solutions.

  • The only unifying aspect between the affected products I could make out so far was that they all appear to come in the form of DLLs that load into third-party processes (such as addins for Visual Studio or Windows Explorer shell extensions).

  • Our app is actually a shareware COM-addin for MS Outlook, written in Delphi (i.e. native code - no .NET).

  • The prime suspect in our case is the third-party licensing wrapper that we're using which decrypts and uncompresses our DLL into memory on the fly. Obviously I couldn't simply give an unprotected version of our app to the affected customers to verify this suspicion. Maybe the other vendors that this has been reported against are using similar products.

  • Debug versions of the protection wrapper supplied to us by the licensing vendor yielded no results: The log files looked exactly the same as from sessions where the error did not occur. Apparently the "inner" DLL gets decrypted and uncompressed all right but for some reason still fails to get loaded by the host process.

  • By creating an unprotected "loader" DLL we have been able to pinpoint the occurrence of the error somewhere behind the LoadLibrary call that is supposed to load our DLL into memory.

  • Extensive logging and global exception hooks in our own code (both the unprotected loader and the protected "core"-DLL) yielded no results at all. The error is obviously raised somewhere else.

  • The problem described in this earlier question of mine was very probably prompted by the same issue. This was before we created the unprotected loader stub.

  • The error only occurs at about 1-2% of our customers - whereas typically all installations at any affected customer's site are affected the same.

  • Sometimes the error goes away after we release a new version but often it will come back again after a couple of weeks or months.
  • Once the error has started to occur on a machine it does so consistently.
  • The error never occurs while connected to the affected machine via remote access (e.g. VNC, RDP, TeamViewer, etc.) and none of the affected customers are within travel distance from us so all we have to go by is log files and "eye-witness reports".

  • One customer reported that the error message dialog apparently was non-modal, i.e. he was able to simply move the dialog box to the side and continue working with the application (minus the functionality that our DLL would have provided). Not sure whether this is universally true in all other occurrences, too.

  • In some cases customers have been able to permanently rid themselves of the error by disabling or uninstalling other addins from other vendors that were sharing the host application with our own product.

  • The error has so far been observed on Windows XP, Vista and 7.

  • During the last few weeks we had a surge of reports from Outlook 2003 / Windows 7 users. Could the situation have been made worse by a recent Windows/Office-update?

Does anyone have any experience with this error at all?

Or any more ideas for investigating this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

生活了然无味 2024-09-06 19:30:14

我最近才发生这种情况,这促使我进行搜索,最后我来到了这里。我可以告诉你,对我来说,它肯定是在 Windows 7 家庭高级版中,但仅限于 IE9(顺便说一下,我讨厌它),它会将用户带回虚拟阶段,并假设我们必须对所有内容进行重复标记。会不断询问您是否要禁用附加组件以加快加载时间,但通常不是真正减慢浏览器速度的事情,而是首先有太多垃圾加载。但是回到“无法设置分配”,我从未在任何其他浏览器中使用过它,这并不是说它们不会发生这种情况。

I have only recently had this happen, which prompted my search and I ended up here. I can tell you that with me for sure it is in windows 7 home premium BUT ONLY WITH IE9 (which I hate by the way) it reduces the user back to the dummy stage and assumes that we have to be repeated flagged about everything.It will keep asking you if you want to disable add ons to speed up load times but usually on things that aren't really the things slowing the browser down in the first place,it is there is too much garbage loading in the first place.But back to the "Cannot set allocations", I for one have never expirianced it in any other browser which is not to say it doesn't happen with them.

榕城若虚 2024-09-06 19:30:14

这将是纯粹的猜测工作,但听起来也许您的第三方许可软件正在尝试将 DLL 加载到内存中的特定位置,而在这些失败的系统上,该位置恰好已经被其他东西占用,也许是一个全局钩子 DLL。

This is going to be pure guess-work, but it sounds like maybe your third-party licensing software is trying to load your DLL at a particular location in memory, which - on these failing systems - happens to already be occupied by something else, perhaps a global hook DLL.

温柔嚣张 2024-09-06 19:30:14

如果您有一位愿意与您合作的客户,那么它可能会阐明获取故障转储的情况(例如,使用 ADPlus 或者使用 Sysinternals 可能更简单' ProcDump) 当错误消息显示时。这将显示加载了哪些模块以及可能的调用堆栈(如果它来自错误发生时的消息框,而不是在问题发生后捕获异常的消息框)。

If you have a customer who is willing to work with you a bit, it might shed some light on the situation to get a crash dump (e.g., with ADPlus or maybe simpler with Sysinternals' ProcDump) when the error message is showing. That would show what modules are loaded and possibly the callstack (if it is from a message box at the time of the error as opposed to one that is catching an exception after the problem).

烟沫凡尘 2024-09-06 19:30:14

我也遇到过“无法设置分配”问题。皇家之痛。我禁用了 Java,因为我似乎不需要它,所以我使用添加/删除程序从我的系统中删除 Java。然后我说要得到这些错误。我已经重新安装,但在 IE 浏览器中禁用了 Java。现在我不再收到错误了。不是程序员,不知道为什么会这样。也许对某人来说是一个线索。
Win 7 - 64 位操作系统 IE Explorer 10。希望这可以帮助有人解决这个问题。约翰

I also have experienced the "Cannot set allocations" issue. Royal pain. I had disabled Java, since I did not seem to need it, I used add/remove programs to remove Java from my system. Then I stated to get those errors. I have reinstalled, but disabled Java in IE explorer. Now I do not get the error anymore. Not a programmer, don't know why this happened. Maybe a clue for someone.
Win 7 - 64bit OS IE Explorer 10. Hope this helps someone figure this out. John

青春有你 2024-09-06 19:30:14

我见过这种情况发生。在我的例子中,全局钩子 dll 创建了一个大内存文件映射,可能映射到许可 dll 所依赖的内存。

I've seen this happen. In my case a global hook dll created a large memory file mapping, perhaps to the memory the licensing dll was counting on.

拍不死你 2024-09-06 19:30:14

仅当我打开 google chrome 浏览器时,我看到“无法设置分配”。之后,chrome 关闭,并显示一条消息“哇,chrome 崩溃了……”

仍然没有解决方案:(

I see "Cannot set Allocations" when I open google chrome only. Also after that, chrome closes with a msg saying "Whoa chrome has crashed..."

Still no solution :(

知你几分 2024-09-06 19:30:14

也不是程序员,但当我打开 Chrome 时总是会发生这种情况。它打开第二个窗口,并显示错误消息“无法设置分配”。我通常会关闭它并继续前进。如果我不这样做,通常会导致崩溃。在任何其他浏览器上都不会发生。

Also not a programmer, but it always happens when I open Chrome. It opens second window with error message 'cannot set allocation'. I usually close it and go on my way. if i don't it usually causes a crash. doesnt happen on any other browsers.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文