草庐IT

background_crash

全部标签

android - ionic 2 : Run a background service with cordova

我使用Ionic2,我希望我的应用在应用关闭时执行一些任务。像Gmail这样的东西会一直通知。我发现了这个:https://ionicframework.com/docs/v2/native/background-mode/但我想使用在后台运行的特定方法创建特定服务。这个插件所有的应用程序都在后台运行。谁能解释我该怎么做? 最佳答案 我想在应用关闭时继续收到通知。我尝试了一个解决方案:使用推送通知、适用于Android的Firebase和适用于iOS的APNS。此解决方案有效,但有两个问题:必须使用外部服务配置可能有点困难我希望这会

安卓工作室 3.1 : mixing versions can lead to runtime crashes

最近升级到AndroidStudio3.1,同时我正在尝试AndroidP预览版。我在编译时遇到以下错误:Allcom.android.supportlibrariesmustusetheexactsameversionspecification(mixingversionscanleadtoruntimecrashes).Foundversions28.0.0-alpha1,26.1.0.Examplesincludecom.android.support:animated-vector-drawable:28.0.0-alpha1andcom.android.support:sup

android - "Possible overdraw: Root element paints background "

在我的项目上运行AndroidLint时,我遇到了这个警告Possibleoverdraw:Rootelementpaintsbackground@drawable/mainwithathemethatalsopaintsabackground推断的主题是@android:style/Theme.NoTitleBar.Fullscreen有人可以向我解释为什么会出现这种情况以及如何删除它吗??我的xml:list中定义主题的部分 最佳答案 要优化您的应用性能(避免过度绘制),您可以执行以下操作:在res/values/styles.

安卓 9.0 : Not allowed to start service: app is in background. 。在 onResume() 之后

我有一个音乐播放器,它试图在Activity的onResume()中启动Service。为了清楚起见,我删除了几行,但代码是有效的:@OverrideprotectedvoidonResume(){super.onResume();startService(newIntent(this,MusicService.class));}根据崩溃日志,这会在一些运行AndroidP的设备上引发异常:Causedbyjava.lang.IllegalStateException:NotallowedtostartserviceIntent{cmp=another.music.player/com

java - C++ 与 Java : endless loop creating objects only crashes C++

这是我的一本书中的一个问题(没有附加答案),我已经思考了几天了。答案仅仅是因为C++代码最终会崩溃,因为它在每次迭代后都会创建一个垃圾内存单元吗?ConsiderthefollowingJavaandC++codefragments,partsoftwoversionsofaGUIbasedapplicationwhichcollectsuserpreferencesandusethemtoassembleacommandanditsparameters.Themethod/functiongetUserCommandSpecification()returnsastringrepre

node.js - pm2 Node 模块能否在crash后自动重​​启app

我有一个可用的Node.js应用程序,但存在导致应用程序崩溃的已知和未知错误。在这种情况下,如果pm2可以重新启动Node应用程序会很好。pm2中是否已经提供此功能? 最佳答案 是的,默认情况下它会这样做。如需更多信息,请参阅Restartstrategies.如果应用在短时间内反复无法启动,pm2可能会停止重启。见configuration、min_uptime和max_restarts。 关于node.js-pm2Node模块能否在crash后自动重​​启app,我们在StackOv

python - C++ 与 Python 嵌入 : crash if Python not installed

我在Windows上开发,我到处搜索,没有发现有人在谈论这种事情。我在我的桌面上制作了一个使用MSVC嵌入Python3.1的C++应用程序。我链接了python31.lib并将python31.dll包含在应用程序的运行文件夹中,与可执行文件一起。它工作得很好。我的扩展和嵌入代码确实有效,并且没有崩溃。我将运行文件夹发送给没有安装Python的friend,但在脚本设置阶段应用程序崩溃了。几个小时前,我在安装了Python2.6的笔记本电脑上试用了该应用。我遇到了和friend一样的崩溃行为,通过调试发现是Py_Initialize()调用失败。我在笔记本电脑上安装了Python3.

java - 调试万无一失的策略 "The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?"

我正在处理一个相当复杂的java项目,其中包含许多依赖项和许多单元测试。我在mac(mavericks)上使用java1.6.0_65,maven3.0.5和maven-surefire-plugin:2.16在多个分支中运行。我的问题是,使用多个fork运行此设置会导致fork退出:"TheforkedVMterminatedwithoutsayingproperlygoodbye.VMcrashorSystem.exitcalled?"只用一个fork运行它不会产生问题(一切都通过了)有一些关于此问题的信息,包括thisStackOverflowquestion和thissuref

java - Android App Bundle 在 Android 应用中引入 Resource Not found crash

通过使用Android的新AndroidAppBundle,我在2个GooglePlay商店应用中收到ResourceNotFound错误。以下是其中一个应用的fabric堆栈跟踪:UnabletostartactivityComponentInfo{/com.Lastyear.MainActivity}:android.content.res.Resources$NotFoundException:Fileres/drawable/abc_item_background_holo_dark.xmlfromdrawableresourceID#0x7f08002catandroid.a

Dart/flutter : application crashes on startup

我有一个非常有趣的问题,我可以在模拟器上很好地运行我的应用程序,flutterbuildapk成功,我可以在GooglePlay上发布新版本或只安装apk在我的手机上(Pixel2XL,目前在4月的安全补丁中)。但是当我在手机上启动它时,它会立即崩溃。我还没有尝试安装debugapk,首先我想应用May补丁。我已经尝试过多次升级flutter,但似乎也没有任何问题:C:\Android\osszefogasaszanhuzokert>flutterupgradeUpgradingFlutterfromc:\Android\flutter...Fromhttps://github.com