<!-- 
RSS generated by JIRA (9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13) at Sat Jan 11 07:14:04 UTC 2025

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>Mojang Studios Jira</title>
    <link>https://bugs.mojang.com</link>
    <description>This file is an XML representation of an issue</description>
    <language>en</language>    <build-info>
        <version>9.12.2</version>
        <build-number>9120002</build-number>
        <build-date>10-01-2024</build-date>
    </build-info>


<item>
            <title>[BDS-427] Crash when resource_packs/vanilla is empty</title>
                <link>https://bugs.mojang.com/browse/BDS-427</link>
                <project id="11700" key="BDS">Bedrock Dedicated Server</project>
                    <description>&lt;p&gt;When the directory resource_packs/vanilla is empty or manifest.json doesn&apos;t exist the server crashes when starting up. This is what prints out:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;NO LOG FILE! - setting up server logging...
NO LOG FILE! - [2019-01-22 19:36:49 INFO] Starting Server
NO LOG FILE! - [2019-01-22 19:36:49 INFO] Version 1.8.1.2
[2019-01-22 19:36:49 INFO] Level Name: Bedrock level
[2019-01-22 19:36:49 INFO] Game mode: 0 Survival
[2019-01-22 19:36:49 INFO] Difficulty: 1 EASY
&amp;lt;?xml version=&lt;span class=&quot;code-quote&quot;&gt;&quot;1.0&quot;&lt;/span&gt; encoding=&lt;span class=&quot;code-quote&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;?&amp;gt;
&amp;lt;!DOCTYPE plist PUBLIC &lt;span class=&quot;code-quote&quot;&gt;&quot;-&lt;span class=&quot;code-comment&quot;&gt;//Apple//DTD PLIST 1.0//EN&quot;&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&lt;/span&gt;&amp;gt;
&lt;/span&gt;&amp;lt;plist version=&lt;span class=&quot;code-quote&quot;&gt;&quot;1.0&quot;&lt;/span&gt;&amp;gt;
 &amp;lt;dict&amp;gt;
 &amp;lt;key&amp;gt;id&amp;lt;/key&amp;gt;
 &amp;lt;string&amp;gt;0&amp;lt;/string&amp;gt;
 &amp;lt;key&amp;gt;delay&amp;lt;/key&amp;gt;
 &amp;lt;integer&amp;gt;0&amp;lt;/integer&amp;gt;
 &amp;lt;key&amp;gt;status&amp;lt;/key&amp;gt;
 &amp;lt;integer&amp;gt;0&amp;lt;/integer&amp;gt;
 &amp;lt;/dict&amp;gt;
&amp;lt;/plist&amp;gt;
Violaci&#243;n de segmento (`core&apos; generado)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This can happen when you copy bedrock_server and libCrypto.so into another directory and start it. It will create the skeleton files and directories but it won&apos;t generate anything under vanilla directory.&lt;/p&gt;

&lt;p&gt;It seems to be crashing in the function ResourcePack::getManifest because it&apos;s trying to dereference a null pointer. Here&apos;s the backtrace:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Reading symbols from ./bedrock_server...(no debugging symbols found)...done.
(gdb) r
Starting program: /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/miguel/test/bedrock_server 
[&lt;span class=&quot;code-object&quot;&gt;Thread&lt;/span&gt; debugging using libthread_db enabled]
Using host libthread_db library &lt;span class=&quot;code-quote&quot;&gt;&quot;/lib/x86_64-linux-gnu/libthread_db.so.1&quot;&lt;/span&gt;.
NO LOG FILE! - setting up server logging...
NO LOG FILE! - [2019-01-22 19:24:19 INFO] Starting Server
NO LOG FILE! - [2019-01-22 19:24:19 INFO] Version 1.8.1.2
[2019-01-22 19:24:19 INFO] Level Name: Bedrock level
[New &lt;span class=&quot;code-object&quot;&gt;Thread&lt;/span&gt; 0x7ffff11d7700 (LWP 9111)]
[New &lt;span class=&quot;code-object&quot;&gt;Thread&lt;/span&gt; 0x7ffff09d6700 (LWP 9112)]
[New &lt;span class=&quot;code-object&quot;&gt;Thread&lt;/span&gt; 0x7fffebfff700 (LWP 9113)]
[2019-01-22 19:24:19 INFO] Game mode: 0 Survival
[2019-01-22 19:24:19 INFO] Difficulty: 1 EASY
&lt;span class=&quot;code-object&quot;&gt;Thread&lt;/span&gt; 1 &lt;span class=&quot;code-quote&quot;&gt;&quot;bedrock_server&quot;&lt;/span&gt; received signal SIGSEGV, Segmentation fault.
0x000055555707ead0 in ResourcePack::getManifest() &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ()
(gdb) backtrace
#0 0x000055555707ead0 in ResourcePack::getManifest() &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ()
#1 0x0000555556dca799 in DedicatedServer::run() ()
#2 0x0000555556dc9cd5 in DedicatedServer::start() ()
#3 0x0000555557fe04b0 in main ()
(gdb) disassemble
Dump of assembler code &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; function _ZNK12ResourcePack11getManifestEv:
0x000055555707eac0 &amp;lt;+0&amp;gt;: push rbp
0x000055555707eac1 &amp;lt;+1&amp;gt;: mov rbp,rsp
0x000055555707eac4 &amp;lt;+4&amp;gt;: sub rsp,0x10
0x000055555707eac8 &amp;lt;+8&amp;gt;: mov QWORD PTR [rbp-0x8],rdi
0x000055555707eacc &amp;lt;+12&amp;gt;: mov rdi,QWORD PTR [rbp-0x8]
=&amp;gt; 0x000055555707ead0 &amp;lt;+16&amp;gt;: mov rdi,QWORD PTR [rdi+0x8]
0x000055555707ead4 &amp;lt;+20&amp;gt;: call 0x55555701a800 &amp;lt;_ZN4Pack11getManifestEv&amp;gt;
0x000055555707ead9 &amp;lt;+25&amp;gt;: add rsp,0x10
0x000055555707eadd &amp;lt;+29&amp;gt;: pop rbp
0x000055555707eade &amp;lt;+30&amp;gt;: ret
End of assembler dump.
(gdb) x/xw $rdi+0x8
0x8: Cannot access memory at address 0x8
(gdb) x/xw $rdi
0x0: Cannot access memory at address 0x0
(gdb)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="225117">BDS-427</key>
            <summary>Crash when resource_packs/vanilla is empty</summary>
                <type id="1" iconUrl="https://bugs.mojang.com/secure/viewavatar?size=xsmall&amp;avatarId=18903&amp;avatarType=issuetype">Bug</type>
                                    <status id="5" iconUrl="https://bugs.mojang.com/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="7">Invalid</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="nikalon">Miguel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Jan 2019 19:48:21 +0100</created>
                <updated>Tue, 3 Mar 2020 13:52:17 +0100</updated>
                            <resolved>Tue, 3 Mar 2020 13:52:17 +0100</resolved>
                                    <version>1.8.1.2</version>
                                                            <votes>0</votes>
                                    <watches>0</watches>
                                                                            <comments>
                            <comment id="642294" author="ionicecko" created="Tue, 3 Mar 2020 10:26:16 +0100"  >&lt;p&gt;Hi Miguel,&lt;/p&gt;

&lt;p&gt;Thanks for replying. Unfortunately I&apos;m going to have to put this bug report forward for closure.&lt;/p&gt;

&lt;p&gt;It should always be expected that if you delete a programs working files that it won&apos;t work as expected, this is true of all software and its very rare that you would find software that tells you why it won&apos;t start when you&apos;ve done so.&lt;/p&gt;

&lt;p&gt;If you think its something that should be added to the software please feel free to make a suggestion over at &lt;a href=&quot;https://feedback.minecraft.net&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://feedback.minecraft.net&lt;/a&gt;. The Dedicated Server software is currently in Alpha (a pre-release, feature incomplete state) so now is the best time to make your suggestions.&lt;/p&gt;

&lt;p&gt;If you believe this is in error please let me know.&lt;/p&gt;

&lt;p&gt;Ionic&lt;/p&gt;</comment>
                            <comment id="639439" author="nikalon" created="Tue, 25 Feb 2020 21:12:40 +0100"  >&lt;blockquote&gt;&lt;p&gt;Sorry I&apos;m not sure I understand the bug report. Unless I&apos;m misreading your concern is that the server wont start if you dont have all the files present?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Yes, that&apos;s the problem.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;Bedrock server is not like Java in that, you are not able to start it with just the EXE. The entire set of files must be downloaded and unpacked from the BDS website.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;I see, it&apos;s not designed to start without the files. It would be nice if it could display an error to the user to indicate what went wrong or something &lt;img class=&quot;emoticon&quot; src=&quot;https://bugs.mojang.com/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="639270" author="ionicecko" created="Tue, 25 Feb 2020 13:20:04 +0100"  >&lt;p&gt;Hi Miguel,&lt;/p&gt;

&lt;p&gt;Sorry I&apos;m not sure I understand the bug report. Unless I&apos;m misreading your concern is that the server wont start if you dont have all the files present?&lt;/p&gt;

&lt;p&gt;Bedrock server is not like Java in that, you are not able to start it with just the EXE. The entire set of files must be downloaded and unpacked from the BDS website.&lt;/p&gt;

&lt;p&gt;Ionic&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_11700" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_11600" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0wwcn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    </customfields>
    </item>
</channel>
</rss>