当前位置: 首页 > 面试题库 >

在显示t:后,Elasticsearch崩溃:无法读取本地状态,退出

慕俊迈
2023-03-14
问题内容

我是Elasticsearch的新手。我在本地仅运行一个节点。到现在为止一切正常。现在,它一开始就崩溃了。错误堆栈如下。

C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\bin>elasticsearch.bat [2018-12-10T14:20:49,956][INFO ][o.e.e.NodeEnvironment ] [J7qB0pK] using [1] data paths, mounts [[OS (C:)]], net usable_space [352.1gb], net total_space [475.8gb], types [NTFS] [2018-12-10T14:20:49,972][INFO ][o.e.e.NodeEnvironment ] [J7qB0pK] heap size [990.7mb], compressed ordinary object pointers [true] [2018-12-10T14:21:05,971][INFO ][o.e.n.Node ] [J7qB0pK] node name derived from node ID [J7qB0pK5R7S9adX1LCN2xA]; set [node.name] to override [2018-12-10T14:21:05,971][INFO ][o.e.n.Node ] [J7qB0pK] version[6.5.1], pid[16884], build[oss/zip/8c58350/2018-11-16T02:22:42.182257Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_171/25.171-b11] [2018-12-10T14:21:05,971][INFO ][o.e.n.Node ] [J7qB0pK] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\ADITYA~1\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Delasticsearch, -Des.path.home=C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1, -Des.path.conf=C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\config, -Des.distribution.flavor=oss, -Des.distribution.type=zip] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [aggs-matrix-stats] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [analysis-common] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [ingest-common] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [lang-expression] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [lang-mustache] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [lang-painless] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [mapper-extras] [2018-12-10T14:21:07,596][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [parent-join] [2018-12-10T14:21:07,614][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [percolator] [2018-12-10T14:21:07,619][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [rank-eval] [2018-12-10T14:21:07,622][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [reindex] [2018-12-10T14:21:07,627][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [repository-url] [2018-12-10T14:21:07,631][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [transport-netty4] [2018-12-10T14:21:07,633][INFO ][o.e.p.PluginsService ] [J7qB0pK] loaded module [tribe] [2018-12-10T14:21:07,637][INFO ][o.e.p.PluginsService ] [J7qB0pK] no plugins loaded [2018-12-10T14:21:14,718][ERROR][o.e.g.GatewayMetaState ] [J7qB0pK] failed to read local state, exiting... org.elasticsearch.ElasticsearchException: java.io.IOException: failed to read [id:153, file:C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st] at org.elasticsearch.ExceptionsHelper.maybeThrowRuntimeAndSuppress(ExceptionsHelper.java:164) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:304) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaStateService.loadFullState(MetaStateService.java:64) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.GatewayMetaState.<init>(GatewayMetaState.java:86) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:499) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:265) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) [elasticsearch-cli-6.5.1.jar:6.5.1] at org.elasticsearch.cli.Command.main(Command.java:90) [elasticsearch- cli-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) [elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) [elasticsearch-6.5.1.jar:6.5.1] Caused by: java.io.IOException: failed to read [id:153, file:C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:298) ~[elasticsearch-6.5.1.jar:6.5.1] ... 14 more Caused by: org.elasticsearch.gateway.CorruptStateException: org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=459461742 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st"))) at org.elasticsearch.gateway.MetaDataStateFormat.read(MetaDataStateFormat.java:201) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:294) ~[elasticsearch-6.5.1.jar:6.5.1] ... 14 more Caused by: org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=459461742 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st"))) at org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:502) ~[lucene-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df - jimczi - 2018-09-18 13:01:13] at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:414) ~[lucene- core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df - jimczi - 2018-09-18 13:01:13] at org.apache.lucene.codecs.CodecUtil.checksumEntireFile(CodecUtil.java:526) ~[lucene-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df - jimczi - 2018-09-18 13:01:13] at org.elasticsearch.gateway.MetaDataStateFormat.read(MetaDataStateFormat.java:184) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:294) ~[elasticsearch-6.5.1.jar:6.5.1] ... 14 more [2018-12-10T14:21:14,734][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [J7qB0pK] uncaught exception in thread [main] org.elasticsearch.bootstrap.StartupException: ElasticsearchException[java.io.IOException: failed to read [id:153, file:C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st]]; nested: IOException[failed to read [id:153, file:C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st]]; nested: CorruptStateException[org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=459461742 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st")))]; nested: CorruptIndexException[codec footer mismatch (file truncated?): actual footer=459461742 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st")))]; at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:140) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:127) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.5.1.jar:6.5.1] at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch- cli-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:93) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:86) ~[elasticsearch-6.5.1.jar:6.5.1] Caused by: org.elasticsearch.ElasticsearchException: java.io.IOException: failed to read [id:153, file:C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st] at org.elasticsearch.ExceptionsHelper.maybeThrowRuntimeAndSuppress(ExceptionsHelper.java:164) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:304) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaStateService.loadFullState(MetaStateService.java:64) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.GatewayMetaState.<init>(GatewayMetaState.java:86) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:499) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.1.jar:6.5.1] ... 6 more Caused by: java.io.IOException: failed to read [id:153, file:C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:298) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaStateService.loadFullState(MetaStateService.java:64) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.GatewayMetaState.<init>(GatewayMetaState.java:86) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:499) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.1.jar:6.5.1] ... 6 more Caused by: org.elasticsearch.gateway.CorruptStateException: org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=459461742 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st"))) at org.elasticsearch.gateway.MetaDataStateFormat.read(MetaDataStateFormat.java:201) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:294) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaStateService.loadFullState(MetaStateService.java:64) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.GatewayMetaState.<init>(GatewayMetaState.java:86) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:499) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.1.jar:6.5.1] ... 6 more Caused by: org.apache.lucene.index.CorruptIndexException: codec footer mismatch (file truncated?): actual footer=459461742 vs expected footer=-1071082520 (resource=BufferedChecksumIndexInput(SimpleFSIndexInput(path="C:\MyApps\elasticsearch6.5.1\elasticsearch- oss-6.5.1\elasticsearch-6.5.1\data\nodes\0\indices\0gZa7OvBS4GaYgFeY2sKaQ\_state\state-153.st"))) at org.apache.lucene.codecs.CodecUtil.validateFooter(CodecUtil.java:502) ~[lucene-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df - jimczi - 2018-09-18 13:01:13] at org.apache.lucene.codecs.CodecUtil.checkFooter(CodecUtil.java:414) ~[lucene- core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df - jimczi - 2018-09-18 13:01:13] at org.apache.lucene.codecs.CodecUtil.checksumEntireFile(CodecUtil.java:526) ~[lucene-core-7.5.0.jar:7.5.0 b5bf70b7e32d7ddd9742cc821d471c5fabd4e3df - jimczi - 2018-09-18 13:01:13] at org.elasticsearch.gateway.MetaDataStateFormat.read(MetaDataStateFormat.java:184) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaDataStateFormat.loadLatestState(MetaDataStateFormat.java:294) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.MetaStateService.loadFullState(MetaStateService.java:64) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.gateway.GatewayMetaState.<init>(GatewayMetaState.java:86) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:499) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.node.Node.<init>(Node.java:265) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap$5.<init>(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:212) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:333) ~[elasticsearch-6.5.1.jar:6.5.1] at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:136) ~[elasticsearch-6.5.1.jar:6.5.1] ... 6 more

我对Elasticsearch
6.3有同样的问题。我下载了6.5.1,它在一段时间内运行良好。但是,这再次发生了。一段时间后,我必须主持Elasticsearch。请帮助我解决问题。


问题答案:

我遇到了几乎相同的情况,并尝试将损坏的索引移至/ tmp
/目录并重新启动了计算机。重新启动后(我已经设置了Elasticsearch以在重新启动后自动运行)后一切正常。

因此,根据您的情况,这里是解决方案:1)将文件/整个索引目录移动到其他位置C:\ MyApps \ elasticsearch6.5.1 \
elasticsearch-oss-6.5.1 \ elasticsearch-6.5.1 \ data \ nodes \ 0 \ indices \
0gZa7OvBS4GaYgFeY2sKaQ_state \ state-153.st

2)然后重启机器

3)重新启动elasticsearch流程(如果未在crontab或Scheduler中添加)

4)就这样!

祝好运



 类似资料:
  • 当遵循这个指南并进入链接中的步骤时,我的web.1 dyno立即崩溃。我没有改变他们在指南中所说的任何东西。然后,我试图确保我的数据库是用< code > heroku run:detached rake db:migrate 创建的,并且超时了。 任何信息都很好。

  • 问题内容: 我正在尝试使webdriver.io和Jasmine工作。 按照他们的示例,我的脚本位于(根据配置),其中包含: 我使用wdio作为测试运行程序,并使用交互式设置进行设置。该配置是自动生成的,并且都非常简单明了,因此我认为不需要发布它。 在另一个终端窗口中,我正在使用Java 7运行selenium-server- andalone-2.47.1.jar。我的计算机上确实安装了Fire

  • 我在我的iOS应用程序中实现了Firebase Crashlytics。我遵循了firebase文档中的所有步骤。我已经在没有调试器的情况下运行了crashlytics,方法是先关闭应用程序,然后重新运行应用程序,以便发送崩溃报告。我甚至收到这个信息 崩溃上载提交成功 我甚至将Run脚本和set变量添加到“dwarf with dsym”

  • 在谷歌Play上部署我的Flitter应用程序后,它在启动时崩溃。它为2台设备(Google Test devices on Play)工作,并为其他设备提供以下错误。 问题:java.lang.不满意LinkError:dalvik.system.PathClassLoader[DexPathList[[[zip file"/data/app/abc.pota.tallxy-1/base.apk

  • 我的应用程序(仍在进展中)在不同的设备上运行良好。但突然它拒绝在华为荣耀7(Android 6.0/EMUI 4.0.3)上启动。Logcat给了我以下信息: E/dex2oat:无法创建oat文件: /data/dalvik缓存/arm64/data@app@myapp.mycomp.de.myapp-1@split_lib_slice_1_apk.apk@班级。索引: 权限被拒绝 然后 07-

  • 我刚开始学习android应用程序开发。我尝试创建一个非常简单的应用程序,它只会以全屏模式将用户重定向到我们的主页。 但是如果我启动应用程序,那么一个黑色窗口显示不到半秒钟,应用程序就会关闭。 我不知道如何调试/修复这个,我希望有人能帮助初学者!谢谢! app\src\main\res\layout\activity\u全屏显示。xml app\src\main\java\com\example\