问:
k-means analysis: how to convert data into numeric?
I want to perform a k-means analysis in R. For that I need numeric data. I tried the following

```<code>unlist(pca)
as.numeric(pca)

lapply(pca,as.numeric(pca))
</code>```

pca is just "normal" Principal Component Analysis data, showed in a plot (with fviz_pca_ind() function).

By the way, when I try to run the k-means analysis, it gives me "list object cannot be coerced to type double". That is why I thought to turn everything into numeric.

How to convert the pca-data into numeric?

Thank you ;)

答:
Most pca objects should return you a list, and you should show which package or function is used to perform the pca, so we can see what's in the list

For example, if you use prcomp, it returns a list of eigenvectors / loadings ($rotation) and principal components ($x). I suppose you are trying to do k-means on the principal componets, and you can do it like:

```<code># perform pca
pca = prcomp(USArrests,scale=TRUE)
# we call out the PCs using pca$x
# and kmeans
kmeans_clus = kmeans(pca$x,3)
## plot
# define colors
COLS = c("#65587f","#f18867","#e85f99")
plot(pca$x[,1:2],col=COLS[kmeans_clus$cluster],pch=20)
legend("topright",fill=COLS,legend=1:3,horiz=TRUE)
</code>```

Body:
I want to perform a k-means analysis in R. For that I need numeric data. I tried the following

unlist(pca)
as.numeric(pca)

lapply(pca,as.numeric(pca))

pca is just "normal" Principal Component Analysis data, showed in a plot (with fviz_pca_ind() function).

By the way, when I try to run the k-means analysis, it gives me "list object cannot be coerced to type double". That is why I thought to turn everything into numeric.

How to convert the pca-data into numeric?

Thank you ;)

Body:
Most pca objects should return you a list, and you should show which package or function is used to perform the pca, so we can see what's in the list

For example, if you use prcomp, it returns a list of eigenvectors / loadings ($rotation) and principal components ($x). I suppose you are trying to do k-means on the principal componets, and you can do it like:

# perform pca
pca = prcomp(USArrests,scale=TRUE)
# we call out the PCs using pca$x
# and kmeans
kmeans_clus = kmeans(pca$x,3)
## plot
# define colors
COLS = c("#65587f","#f18867","#e85f99")
plot(pca$x[,1:2],col=COLS[kmeans_clus$cluster],pch=20)
legend("topright",fill=COLS,legend=1:3,horiz=TRUE)


来源: stackexchange

问:
vis.js hierarchical network graph layout
I've found this strange layout in hierarchical network graph by using vis.js.
As you can see, the edges are messed up.
Any suggestion would be nice. Thanks.
Or is it possible to change the sort function by the parent node position?

Figure 1: The current network

Figure 2: The expected network

答: In a hierarchal view,vis-network is ordering the nodes by there ID. for each level, the node with the lowest ID will be placed on the canvas first, and the highest will be placed last.

ContentLicense: CC BY-SA 4.0


问:
Actionscript flash.filesystem
I made an mp3 player that populates a list with filenames from an xml file but I want to be able to display the contents of a folder in a list. basically populate the list from a directory insread of from the xml.</p>

答:
You could do this via FlashVars if you wanted to parse a list of files to flash using scandir() in PHP. Otherwise, like said, you'll have to use AIR.

The PHP is quite easy anyways; I'd try something similar to this (note this is a really rough example):

Page:

```<code><?php
    $arr = scandir("your_directory");
    $joined = implode('#', $arr);

    echo '
    <object width="x" height="y">
        <param name="flashvars" value="files=' . $joined . '" />
        <embed src="media.swf?files=' . $joined . '" width="x" height="y" />
    </object>';
?>
</code>```

AS3:

```<code>var vars:Object = root.loaderInfo.parameters;
var files:Array = vars.files.split("#");

var i:String;
for each(i in files)
{
    doStuffWith(i);
}

function doStuffWith(file:String):void
{
    // load file etc
}
</code>```

ContentLicense: CC BY-SA 3.0

Title: Actionscript flash.filesystem

Body:
You could do this via FlashVars if you wanted to parse a list of files to flash using scandir() in PHP. Otherwise, like said, you'll have to use AIR.

The PHP is quite easy anyways; I'd try something similar to this (note this is a really rough example):

Page:

<?php
    $arr = scandir("your_directory");
    $joined = implode('#', $arr);

    echo '
    <object width="x" height="y">
        <param name="flashvars" value="files=' . $joined . '" />
        <embed src="media.swf?files=' . $joined . '" width="x" height="y" />
    </object>';
?>

AS3:

var vars:Object = root.loaderInfo.parameters;
var files:Array = vars.files.split("#");

var i:String;
for each(i in files)
{
    doStuffWith(i);
}

function doStuffWith(file:String):void
{
    // load file etc
}


问:
Map Values to Keys
I have a data frame with a 'State' column denoting each record's State. I want to map the States to regions and I've created a dict:

```<code>     di = {'Mideast': ['DL', 'DC', 'MD', 'NJ', 'NY', 'PA'], 'West': [ . . , . .], . . . }
</code>```

which is built using variables such as

```<code>    Mideast = ['DL', 'DC', 'MD', 'NJ', 'NY', 'PA']
</code>```

Why a naive method like this does not work?

```<code>    for i in df_test['State']:
        if i in Mideast: i = 'Mideast';
</code>```

a sample value from the df:

```<code>State   Area Code    Phone    Intl Calls  Intl Charge  CustServ Calls   Churn?
KS       415        382-4657       3          2.7           1           False.
</code>```

I've searched online for possible solutions. I am trying them, but it bugs me that the method above seems so out of bounds that nobody even mentioned it. I am apparently not understanding something very fundamental, but I don't know what it is.

答:
Try this:

```<code>import pandas as pd

di = {'Wonderful spam': ['Spam', 'Egg', 'Sausage'], 'Lovely spam': ['Baked beans', 'Tomato']}

df_test = pd.DataFrame(["Tomato"],columns=["State"])

for i, x in enumerate(df_test['State']):
    for group, names in di.items():
        if x in names:
            df_test['State'][i] = group

print(df_test)
</code>```

Output:

```<code>         State
0  Lovely spam
</code>```

Title: Map Values to Keys

Body:
I have a data frame with a 'State' column denoting each record's State. I want to map the States to regions and I've created a dict:

     di = {'Mideast': ['DL', 'DC', 'MD', 'NJ', 'NY', 'PA'], 'West': [ . . , . .], . . . }

which is built using variables such as

    Mideast = ['DL', 'DC', 'MD', 'NJ', 'NY', 'PA']

Why a naive method like this does not work?

    for i in df_test['State']:
        if i in Mideast: i = 'Mideast';

a sample value from the df:

State   Area Code    Phone    Intl Calls  Intl Charge  CustServ Calls   Churn?
KS       415        382-4657       3          2.7           1           False.

I've searched online for possible solutions. I am trying them, but it bugs me that the method above seems so out of bounds that nobody even mentioned it. I am apparently not understanding something very fundamental, but I don't know what it is.

Body:
Try this:

import pandas as pd

di = {'Wonderful spam': ['Spam', 'Egg', 'Sausage'], 'Lovely spam': ['Baked beans', 'Tomato']}

df_test = pd.DataFrame(["Tomato"],columns=["State"])

for i, x in enumerate(df_test['State']):
    for group, names in di.items():
        if x in names:
            df_test['State'][i] = group

print(df_test)

Output:

         State
0  Lovely spam


问:
`save_model` requires h5py error occurss after installing h5py and cython packages too
I need to save my  new sequential model but when I use the model.save(filename),it shows error like save_model requires hp5y.I tried installing h5py in conda by  'conda install -c anaconda h5py'command. And I also installed cython,but then the error exists .what should I do?</p>

答: one should include the package in pycharm project interpreter after being downloaded in the conda environment.</p>


问:
How to create docx and doc file with QAxObject in qt for windows?
I want to use QAxObject to create a new docx file. how can I create a new doc and docx file and write my text with QAxObject in qt for windows. I try this code but I could not find my answer because it opens existing file but I want to create new one and use QAxObject.

```<code>QString     outFile("C:/test.docx");
QString     inFile1("C:/test1.docx");
QString     inFile2("C:/test2.docx");
QAxObject   axObject("Word.Application");
QAxObject   *documents = axObject.querySubObject("Documents");
QAxObject   *document = documents->querySubObject("Open(const QString&, bool)", inFile1, true);
QAxObject   *selection = axObject.querySubObject("Selection");

selection->dynamicCall("EndKey(QVariant&)", 6); // WdUnits::wdStory=6
selection->dynamicCall("InsertBreak(QVariant&)", 7); // WdBreakType::wdPageBreak=7
selection->dynamicCall("InsertFile(QString&)", inFile2);

document->dynamicCall("SaveAs(const QString&)", outFile);
document->dynamicCall("Close()");
axObject.dynamicCall("Quit()");
</code>```

答:
```<code>#if defined(Q_OS_WIN)
    else if (mod == "DOCX" || mod == "DOC") {
        QTemporaryDir tempDir;
        QString text_filename;
        QString     outFile;
        QString     allMessage;
        else if (mod == "DOCX") {
            if(tempDir.isValid()){
                const QString tempFile = tempDir.path() + "/docxTemplate.docx";
                if(QFile::copy(":/docxTemplate.docx",tempFile)){
                    text_filename = tempFile;
                } else {
                    qDebug()<< "cannot locate docxTemplate.docx";
                }
            }
            else {
                qDebug()<< "cannot access filesystem";
            }
            QString     outFile(pathDirectory+"/"+filename+".docx");
        }
        else if (mod == "DOC") {
            if(tempDir.isValid()){
                const QString tempFile = tempDir.path() + "/docTemplate.doc";
                if(QFile::copy(":/docTemplate.doc",tempFile)){
                    text_filename = tempFile;
                } else {
                    qDebug()<< "cannot locate docTemplate.doc";
                }
            }
            else {
                qDebug()<< "cannot access filesystem";
            }
            QString     outFile(pathDirectory+"/"+filename+".doc");
        }
        QString     inFile(text_filename);
        QAxObject   axObject("Word.Application");
        QAxObject   *documents = axObject.querySubObject("Documents");
        QAxObject   *document = documents->querySubObject("Open(const QString&, bool)", inFile, true);
        document->dynamicCall("SaveAs(const QString&)", outFile);
        document->dynamicCall("Close()");
        axObject.dynamicCall("Quit()");

        QAxObject   axObjectNew("Word.Application");
        QAxObject   *documentsNew = axObjectNew.querySubObject("Documents");
        QAxObject   *documentNew = documentsNew->querySubObject("Open(const QString&, bool)", outFile, true);
        QAxObject   *selection = axObjectNew.querySubObject("Selection");
        selection->dynamicCall("TypeText(QString)",allMessage);
        documentNew->dynamicCall("Close()");
        axObjectNew.dynamicCall("Quit()");
    }
#endif
</code>```

Body:
I want to use QAxObject to create a new docx file. how can I create a new doc and docx file and write my text with QAxObject in qt for windows. I try this code but I could not find my answer because it opens existing file but I want to create new one and use QAxObject.

QString     outFile("C:/test.docx");
QString     inFile1("C:/test1.docx");
QString     inFile2("C:/test2.docx");
QAxObject   axObject("Word.Application");
QAxObject   *documents = axObject.querySubObject("Documents");
QAxObject   *document = documents->querySubObject("Open(const QString&, bool)", inFile1, true);
QAxObject   *selection = axObject.querySubObject("Selection");

selection->dynamicCall("EndKey(QVariant&)", 6); // WdUnits::wdStory=6
selection->dynamicCall("InsertBreak(QVariant&)", 7); // WdBreakType::wdPageBreak=7
selection->dynamicCall("InsertFile(QString&)", inFile2);

document->dynamicCall("SaveAs(const QString&)", outFile);
document->dynamicCall("Close()");
axObject.dynamicCall("Quit()");


问:
How to add notification badge on Bottom Navigation View?
```<code><item
        android:id="@+id/nav_gallery"
        app:actionViewClass="android.widget.TextView"/>
</code>```

This is the menu of bottom Navigation.

```<code>   TextView gallery=(TextView)
   MenuItemCompat.getActionView(navigationView.getMenu().
   findItem(R.id.nav_gallery)); //getting menu item of bottom nav view
   gallery.setText("99+");
</code>```

But this code doesnot work for bottom navigation view.BottomNavigationView is shown without setting any notification counter.

答:
The Latest Material dependency now supports natively add badge count, Need to just updated Material dependency in build.gradle

```<code>implementation 'com.google.android.material:material:1.1.0-alpha09'
</code>```

and just add

```<code>val navBar  = findViewById<BottomNavigationView>(R.id.bottom_navigation)
navBar.getOrCreateBadge(R.id.action_stamp).number = 2
</code>```

and in style.xml just change "AppCompat" to "MaterialComponents"

```<code><style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">
</code>```

Body:
<item
        android:id="@+id/nav_gallery"
        app:actionViewClass="android.widget.TextView"/>

This is the menu of bottom Navigation.

   TextView gallery=(TextView)
   MenuItemCompat.getActionView(navigationView.getMenu().
   findItem(R.id.nav_gallery)); //getting menu item of bottom nav view
   gallery.setText("99+");

But this code doesnot work for bottom navigation view.BottomNavigationView is shown without setting any notification counter.

Body:
The Latest Material dependency now supports natively add badge count, Need to just updated Material dependency in build.gradle

implementation 'com.google.android.material:material:1.1.0-alpha09'

and just add

val navBar  = findViewById<BottomNavigationView>(R.id.bottom_navigation)
navBar.getOrCreateBadge(R.id.action_stamp).number = 2

and in style.xml just change "AppCompat" to "MaterialComponents"

<style name="AppTheme" parent="Theme.MaterialComponents.Light.DarkActionBar">


问:
How to customize error pages served via the default backend of an nginx ingress controller?
I'm running an Nginx Ingress Controller installed via Helm on my Kubernetes cluster. I would like to change the HTML/CSS in the default backend service for some specific errors (e.g. 404). </p>

<p>This link provides  some general information about the default backend. However, there is no mention of how to actually customize the served HTML/CSS files. </p>

答:
You have to create sample deployment with backend configuration:

```<code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-errors
  labels:
    app.kubernetes.io/name: nginx-errors
    app.kubernetes.io/part-of: ingress-nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: nginx-errors
      app.kubernetes.io/part-of: ingress-nginx
  template:
    metadata:
      labels:
        app.kubernetes.io/name: nginx-errors
        app.kubernetes.io/part-of: ingress-nginx
    spec:
      containers:
      - name: nginx-error-server
        image: quay.io/kubernetes-ingress-controller/custom-error-pages-amd64:0.3
        ports:
        - containerPort: 8080
</code>```

Then you have to specify service for it:

```<code>apiVersion: v1
kind: Service
metadata:
  name: nginx-errors
  labels:
    app.kubernetes.io/name: nginx-errors
    app.kubernetes.io/part-of: ingress-nginx
spec:
  selector:
    app.kubernetes.io/name: nginx-errors
    app.kubernetes.io/part-of: ingress-nginx
  ports:
  - port: 80
    targetPort: 8080
    name: http
</code>```

If you do not already have an instance of the NGINX Ingress controller running, deploy it according to the deployment guide, then follow these steps:

Edit the nginx-ingress-controller Deployment and set the value of
the --default-backend-service flag to the name of the newly
created error backend.

Edit the nginx-configuration ConfigMap and create the key
custom-http-errors with a value of 404.

Pay attention on the IP address assigned to the NGINX Ingress controller Service.

```<code>$ kubectl get svc ingress-nginx
NAME            TYPE        CLUSTER-IP  EXTERNAL-IP   PORT(S)          AGE
ingress-nginx   ClusterIP   10.0.0.13   <none>        80/TCP,443/TCP   10m
</code>```

The ingress-nginx Service is of type ClusterIP in this example. This may vary depending on your environment. Make sure you can use the Service to reach NGINX before proceeding with the rest of this example.

The NGINX configuration used for the backend pod is defined by the ConfigMaps. The binary ConfigMap creates the file returned to clients in the RPS tests. So if you want to make modification in following files specify them in configmap and apply changes.

Ingress Controller has one responsibility - implement Ingress rules defined in your cluster. To serve static content you should have a pod that does that, which indeed means ie. running second nginx in your stack. The thing is, that you should treat your ingress controller as part of the infrastructure providing generic cluster functionality, and serving static files from some place (or container if they are versioned/built as docker images) is de facto part of your application.

Take a look here: configmap-kubernetes-ingress, static-files-nginx-ingress default-backend, customization-ingress-errors.

Official documentation: nginx-ingress-controller.

Body:
I'm running an Nginx Ingress Controller installed via Helm on my Kubernetes cluster. I would like to change the HTML/CSS in the default backend service for some specific errors (e.g. 404).

This link provides  some general information about the default backend. However, there is no mention of how to actually customize the served HTML/CSS files.

Body:
You have to create sample deployment with backend configuration:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-errors
  labels:
    app.kubernetes.io/name: nginx-errors
    app.kubernetes.io/part-of: ingress-nginx
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: nginx-errors
      app.kubernetes.io/part-of: ingress-nginx
  template:
    metadata:
      labels:
        app.kubernetes.io/name: nginx-errors
        app.kubernetes.io/part-of: ingress-nginx
    spec:
      containers:
      - name: nginx-error-server
        image: quay.io/kubernetes-ingress-controller/custom-error-pages-amd64:0.3
        ports:
        - containerPort: 8080

Then you have to specify service for it:

apiVersion: v1
kind: Service
metadata:
  name: nginx-errors
  labels:
    app.kubernetes.io/name: nginx-errors
    app.kubernetes.io/part-of: ingress-nginx
spec:
  selector:
    app.kubernetes.io/name: nginx-errors
    app.kubernetes.io/part-of: ingress-nginx
  ports:
  - port: 80
    targetPort: 8080
    name: http

If you do not already have an instance of the NGINX Ingress controller running, deploy it according to the deployment guide, then follow these steps:

Edit the nginx-ingress-controller Deployment and set the value of
the --default-backend-service flag to the name of the newly
created error backend.

Edit the nginx-configuration ConfigMap and create the key
custom-http-errors with a value of 404.

Pay attention on the IP address assigned to the NGINX Ingress controller Service.

$ kubectl get svc ingress-nginx
NAME            TYPE        CLUSTER-IP  EXTERNAL-IP   PORT(S)          AGE
ingress-nginx   ClusterIP   10.0.0.13   <none>        80/TCP,443/TCP   10m

The ingress-nginx Service is of type ClusterIP in this example. This may vary depending on your environment. Make sure you can use the Service to reach NGINX before proceeding with the rest of this example.

The NGINX configuration used for the backend pod is defined by the ConfigMaps. The binary ConfigMap creates the file returned to clients in the RPS tests. So if you want to make modification in following files specify them in configmap and apply changes.

Ingress Controller has one responsibility - implement Ingress rules defined in your cluster. To serve static content you should have a pod that does that, which indeed means ie. running second nginx in your stack. The thing is, that you should treat your ingress controller as part of the infrastructure providing generic cluster functionality, and serving static files from some place (or container if they are versioned/built as docker images) is de facto part of your application.

Take a look here: configmap-kubernetes-ingress, static-files-nginx-ingress default-backend, customization-ingress-errors.

Official documentation: nginx-ingress-controller.


问:
ngbDatepicker set value
In my Angular application, template driven form, I have a date of birth field and added ngbDatepicker for that field as given.

```<code><input #dob="ngbDatepicker"
                 (click)="dob.toggle()"
                 [(ngModel)]="model.dob"
                 [ngClass]="{ 'is-invalid': f.submitted &&  dob.invalid }"
                 class="form-control"
                 id="dob"
                 name="dob"
                 required
                 type="text"
                 [disabled]="isDisabled"
                 [class.ash]="isDisabled"
                 [class.highlight]="!isDisabled"
                 ngbDatepicker
          />
</code>```

I'm getting date of birth form back-end API as dob: "2019-02-16 00:00:00" and I want to pass that value like bellow,

```<code> {
  "year": 2019,
  "month": 2,
  "day": 26
 }
</code>```

because ngbDatepicker get value in that format. This is what I tried to convert my date of birth.

```<code>toDate(dob) {
 const [year, month, day] = dob.split('-');
 const obj = { year: year, month: month, day: day.split(' ')[0].trim() };
 console.log('convert date', obj);
 this.model.dob = obj;
 //  this.model.dob ={year: 2017, month: 5, day: 13};
}
</code>```

The output is {year: "2019", month: "02", day: "16"} , I want to remove quotation marks from this output. I've tried so many methods and unable to get the needed output.
I could get {"year": 2019, "month": 02, "day": 16} this output using bellow code.

```<code>JSON.stringify({ "year": "2019", "month": "2", "day": "26" }, (key, value) => !isNaN(+value) ? +value : value);
</code>```

But to set the date I need to set object like this. {year: 2019, month: 2, day: 26 }

答:
I solved my problem by doing this.

Create NgbDate instance by,

```<code>date = new NgbDate(2020,19,02);
</code>```

make this date as ngModel;

Title: ngbDatepicker set value

Body:
In my Angular application, template driven form, I have a date of birth field and added ngbDatepicker for that field as given.

<input #dob="ngbDatepicker"
                 (click)="dob.toggle()"
                 [(ngModel)]="model.dob"
                 [ngClass]="{ 'is-invalid': f.submitted &&  dob.invalid }"
                 class="form-control"
                 id="dob"
                 name="dob"
                 required
                 type="text"
                 [disabled]="isDisabled"
                 [class.ash]="isDisabled"
                 [class.highlight]="!isDisabled"
                 ngbDatepicker
          />

I'm getting date of birth form back-end API as dob: "2019-02-16 00:00:00" and I want to pass that value like bellow,

 {
  "year": 2019,
  "month": 2,
  "day": 26
 }

because ngbDatepicker get value in that format. This is what I tried to convert my date of birth.

toDate(dob) {
 const [year, month, day] = dob.split('-');
 const obj = { year: year, month: month, day: day.split(' ')[0].trim() };
 console.log('convert date', obj);
 this.model.dob = obj;
 //  this.model.dob ={year: 2017, month: 5, day: 13};
}

The output is {year: "2019", month: "02", day: "16"} , I want to remove quotation marks from this output. I've tried so many methods and unable to get the needed output.
I could get {"year": 2019, "month": 02, "day": 16} this output using bellow code.

JSON.stringify({ "year": "2019", "month": "2", "day": "26" }, (key, value) => !isNaN(+value) ? +value : value);

But to set the date I need to set object like this. {year: 2019, month: 2, day: 26 }

Body:
I solved my problem by doing this.

Create NgbDate instance by,

date = new NgbDate(2020,19,02);

make this date as ngModel;


问:
Scrolling div inside a div appear over div with higher z-index
https://jsfiddle.net/09rcqwdf/1/

The sidebar has a higher z-index. The container .main has overflow: none, the div inside it has overflow: scroll but for some reason when you drag the text it thinks its over the .scrolling div when in fact its over the sidebar div.

<!doctype html>

  <meta charset="utf-8">
  <title></title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="theme-color" content="#fafafa">

Drag

```

答:
I suppose you want to restrict the dragging between the sidebar only.

For that you need to provide option for containment in draggable function. Which will block the movement of drag.

```<code><!doctype html>
<html class="no-js" lang="">

<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="theme-color" content="#fafafa">
  <style>
    body,
    html {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }

    #content {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
    }

    .main {
      position: absolute;
      bottom: 0;
      left: 300px;
      right: 0;
      top: 0;
      overflow: hidden;
    }

    .scroll-container {
      display: block;
      position: absolute;
      top: 0px;
      bottom: 0px;
      left: 0px;
      right: 0px;
      overflow: scroll;
      z-index: 1;
    }

    .scrolling {
      display: block;
      overflow: hidden;
      position: absolute;
      left: 0;
      top: 0;
      z-index: 2;
      width: 3500px;
      height: 4000px
    }

    .sidebar {
      display: block;
      position: absolute;
      background-color: #5555;
      overflow: hidden;
      z-index: 100000;
      width: 300px;
      bottom: 0;
      top: 0;
      left: 0;
    }
  </style>
</head>

<body>
  <div id="content">
    <div class="main">
      <div class="scroll-container">
        <div class="scrolling">

        </div>
      </div>
    </div>
    <div class="sidebar">
      <div>
        <div class="drag">Drag</div>
      </div>
    </div>
  </div>
  <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  <script>
    window.jQuery || document.write('<script src="js/vendor/jquery-3.4.1.min.js"><\/script>')
  </script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
  <script>
    $('.scrolling').droppable({
      tolerance: 'pointer',
      accept: '.drag',
      drop(event, ui) {
        console.log(event);
        console.log(ui);
        if (ui.helper.hasClass('cancelled')) {
          return;
        }
      },
    });
    $('.drag').draggable({
    containment: ".sidebar",
      helper() {
        const $helper = $('<div></div>');
        $helper.text('drag');
        return $helper.clone().addClass('dragged-component-helper');
      },
      start() {},
      stop(event, ui) {
        ui.helper[0].remove();
      },
      cursorAt: {
        left: 0,
        top: 5,
      },
      cancelOnEscape: true,
      appendTo: '#content',
      disabled: false,
      distance: 0,
      revert: 'invalid',
    });
  </script>
</body>
</html>
</code>```

Body:
I suppose you want to restrict the dragging between the sidebar only.

For that you need to provide option for containment in draggable function. Which will block the movement of drag.

<!doctype html>
<html class="no-js" lang="">

<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="description" content="">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="theme-color" content="#fafafa">
  <style>
    body,
    html {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0;
    }

    #content {
      position: absolute;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      overflow: hidden;
    }

    .main {
      position: absolute;
      bottom: 0;
      left: 300px;
      right: 0;
      top: 0;
      overflow: hidden;
    }

    .scroll-container {
      display: block;
      position: absolute;
      top: 0px;
      bottom: 0px;
      left: 0px;
      right: 0px;
      overflow: scroll;
      z-index: 1;
    }

    .scrolling {
      display: block;
      overflow: hidden;
      position: absolute;
      left: 0;
      top: 0;
      z-index: 2;
      width: 3500px;
      height: 4000px
    }

    .sidebar {
      display: block;
      position: absolute;
      background-color: #5555;
      overflow: hidden;
      z-index: 100000;
      width: 300px;
      bottom: 0;
      top: 0;
      left: 0;
    }
  </style>
</head>

<body>
  <div id="content">
    <div class="main">
      <div class="scroll-container">
        <div class="scrolling">

        </div>
      </div>
    </div>
    <div class="sidebar">
      <div>
        <div class="drag">Drag</div>
      </div>
    </div>
  </div>
  <script src="https://code.jquery.com/jquery-3.4.1.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script>
  <script>
    window.jQuery || document.write('<script src="js/vendor/jquery-3.4.1.min.js"><\/script>')
  </script>
  <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
  <script>
    $('.scrolling').droppable({
      tolerance: 'pointer',
      accept: '.drag',
      drop(event, ui) {
        console.log(event);
        console.log(ui);
        if (ui.helper.hasClass('cancelled')) {
          return;
        }
      },
    });
    $('.drag').draggable({
    containment: ".sidebar",
      helper() {
        const $helper = $('<div></div>');
        $helper.text('drag');
        return $helper.clone().addClass('dragged-component-helper');
      },
      start() {},
      stop(event, ui) {
        ui.helper[0].remove();
      },
      cursorAt: {
        left: 0,
        top: 5,
      },
      cancelOnEscape: true,
      appendTo: '#content',
      disabled: false,
      distance: 0,
      revert: 'invalid',
    });
  </script>
</body>
</html>


问:
MATLAB submitWithConfiguration
I am having trouble using the submit() command in MATLAB. The error I get trying to submit a file is

```<code>       Warning: Name is nonexistent or not a directory: .\lib
     > In path (line 109)
       In addpath (line 88)
       In submit (line 2)
       Undefined function or variable 'submitWithConfiguration'.
</code>```

I am not adding the actual file content because I don't think it is relevant in this case, but if I am wrong please let me know.

Thanks in advance.

EDIT:

My code is:

```<code>    function A = warmUpExercise()
%WARMUPEXERCISE Example function in octave
%   A = WARMUPEXERCISE() is an example function that returns the 5x5 identity matrix

% ============= YOUR CODE HERE ==============
% Instructions: Return the 5x5 identity matrix
%               In octave, we return values by defining which variables
%               represent the return values (at the top of the file)
%               and then set them accordingly.

A = eye(5);
</code>```

答:
For me, the lib folder was under exercise 1 folder but it was greyed out.

I right-clicked on it and selected add to the path and then chose include folder and subfolder:

After that submit started to work.

Title: MATLAB submitWithConfiguration

Body:
I am having trouble using the submit() command in MATLAB. The error I get trying to submit a file is

       Warning: Name is nonexistent or not a directory: .\lib
     > In path (line 109)
       In addpath (line 88)
       In submit (line 2)
       Undefined function or variable 'submitWithConfiguration'.

I am not adding the actual file content because I don't think it is relevant in this case, but if I am wrong please let me know.

Thanks in advance.

EDIT:

My code is:

    function A = warmUpExercise()
%WARMUPEXERCISE Example function in octave
%   A = WARMUPEXERCISE() is an example function that returns the 5x5 identity matrix

% ============= YOUR CODE HERE ==============
% Instructions: Return the 5x5 identity matrix
%               In octave, we return values by defining which variables
%               represent the return values (at the top of the file)
%               and then set them accordingly.

A = eye(5);


问:
Ensure PHP shutdown function is called
I'm trying to catch as many errors as possible in PHP and properly handle them in a non-default way. My question is best illustrated in this example:

```<code><?php

function errorHandler($errno, $errstr, $errfile, $errline){
    echo "Error handler here <br>\n";
    //throw new Exception($errstr);
}
function shutdownFunction() {
    echo "Hi I'm in here <br>\n";
}

set_error_handler("errorHandler");
register_shutdown_function("shutdownFunction");

try {
    $undefined->ok(); // causes some error
} catch(Exception $e) {
    echo "Caught the exception <br>\n";
}
</code>```

The result of running this code as a PHP program will indicate that errorHandler() is run, a PHP error is printed (if "display_errors" is set to "On"), and then shutdownFunction() is run.

The problem I'm having arises if I uncomment out that exception throw; I want to throw exceptions on PHP errors as often as possible. If I uncomment the throw statement out, then the error handler is called, which throws an exception thus causing a further error which results in shutdownFunction() not to be called.

It is my understanding that I can't make this error into a catchable exception; however, I would at least like to ensure that the shutdown function is called without restricting my ability to catch at least some php errors as exceptions (meaning I don't want to remove that throw statement in errorHandler()).

Is there some check in the errorHandler that I can do to check whether or not throwing it will cause shutdownFunction() to be bypassed?

答: So the way I'm solving this is to check if the $errstr parameter starts with "Undefined variable" - and if it does, then I'm not throwing the exception. I suppose if there are any other errors that have a similar issue, i'll do the same thing with those. I can't find a comprehensive list of php errors and what their affects are though, so it'll have to be ad hoc</p>

Title: Ensure PHP shutdown function is called

Body:
I'm trying to catch as many errors as possible in PHP and properly handle them in a non-default way. My question is best illustrated in this example:

<?php

function errorHandler($errno, $errstr, $errfile, $errline){
    echo "Error handler here
\n";
    //throw new Exception($errstr);
}
function shutdownFunction() {
    echo "Hi I'm in here
\n";
}

set_error_handler("errorHandler");
register_shutdown_function("shutdownFunction");

try {
    $undefined->ok(); // causes some error
} catch(Exception $e) {
    echo "Caught the exception
\n";
}

The result of running this code as a PHP program will indicate that errorHandler() is run, a PHP error is printed (if "display_errors" is set to "On"), and then shutdownFunction() is run.

The problem I'm having arises if I uncomment out that exception throw; I want to throw exceptions on PHP errors as often as possible. If I uncomment the throw statement out, then the error handler is called, which throws an exception thus causing a further error which results in shutdownFunction() not to be called.

It is my understanding that I can't make this error into a catchable exception; however, I would at least like to ensure that the shutdown function is called without restricting my ability to catch at least some php errors as exceptions (meaning I don't want to remove that throw statement in errorHandler()).

Is there some check in the errorHandler that I can do to check whether or not throwing it will cause shutdownFunction() to be bypassed?


问:
App-crash on HoloLens(1st. gen)-Emulator when enabling 'Spatial Awareness System' in MRTK 2.3
i recently set up required software for development for the Microsoft HoloLens(1st. gen) with the newest version of the HoloLens(1st. gen) emulator (followed the MRTK-Guide: https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/GettingStartedWithTheMRTK.html#get-the-latest-mrtk-unity-packages). I already tested some example scenes from the MRTK on the emulator and everything works as expected. However, when i test the SpatialAwarenessMeshDemo, the app starts within the emulator with the unity start-screen. Then the scene is visible but after 1-2s the scene disappears and exceptions are thrown.
Visual Studio Log:</p>

```<code>'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel32legacy.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vccorlib140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vcruntime140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\ucrtbased.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\msvcp140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Forwarders\kernel32.dll'.
The thread 0x1578 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\procthreadexthost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MinUser.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32min.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\advapi32legacy.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\UnityPlayer.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\D3D12.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mfplat.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mfreadwrite.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vccorlib140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Forwarders\version.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vcruntime140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\msvcp140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\RTWorkQ.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ExecModelClient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Storage.ApplicationData.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'.
CreateDirectory 'C:/Data' failed: Operation has failed with error 0xb7: Cannot create a file when that file already exists.
 (current dir: C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data)
Logging to C:/Data/Users/Visitor0/AppData/Local/Packages/Template3D_pzq3xp76mxafg/TempState/UnityPlayer.log
[0.322811 / 0.399454] - Initializing Unity runtime
Loading native plugins
  Loading AudioPluginMsHRTF.dll
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\AudioPluginMsHRTF.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\HrtfApo.dll'.
Module information:
 Built with Compiler Ver '191627012'
 Built from '2019.2/staging' branch
 Version is '2019.2.21f1 (9d528d026557)'
 Debug build
 Application type 'D3D'
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Enumeration.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\deviceassociation.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: Cn::XH at memory location 0x013CE754.
onecoreuap\windows\moderncore\inputv2\inputhost\components\cursor\client\cursorclient.cpp(43)\InputHost.dll!6E59AB33: (caller: 6E59ACAC) ReturnHr(1) tid(1678) 87B20809 onecoreuap\windows\moderncore\inputv2\inputhost\components\cursor\client\cursorclient.cpp(75)\InputHost.dll!6E59ACC3: (caller: 6E56959D) ReturnHr(2) tid(1678) 87B20809 'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'.
[0.000716 / 0.617966] - AppCallbacks::SetCoreWindowEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Perception.Stub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Mirage.dll'.
wil(439)\Windows.Mirage.dll!6EA6C73F: (caller: 6EA6C564) ReturnHr(1) tid(d64) 80070005 Access is denied.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d10warp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
'HoloLensTest.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
[0.080414 / 0.698570] - AppCallbacks::InitializeD3DWindow
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'.
[0.740232 / 0.740232] - OnActivated event.
[0.003292 / 0.743524] - OnCoreWindowSizeChanged event (0.00, 0.00, 853.33, 480.00), m_Initialized=False.
[0.033297 / 0.776821] - OnVisibilityChanged event - Visible.
[0.004851 / 0.781672] - OnWindowActivated event - CodeActivated.
 OS 'Windows 10 (10.0.17763)'
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\GameAssembly.dll'. Symbols loaded.
[2.106498 / 2.888170] - OnCoreWindowSizeChanged event (0.00, 0.00, 853.33, 480.00), m_Initialized=False.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'.
PlayerConnection initialized from C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data (debug = 0)
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.Connectivity.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.HostName.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc6.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc.dll'.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'.
PlayerConnection initialized network socket : 0.0.0.0 55287
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'.
Multi-casting "[IP] 172.17.191.38 [Port] 55287 [Flags] 2 [Guid] 1043895467 [EditorId] 0 [Version] 1048832 [Id] UWPPlayerX86(minwinpc) [Debug] 0 [PackageName] Template3D_pzq3xp76mxafg" to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55287]
PlayerConnection already initialized - listening to [0.0.0.0:55287]
[3.073006 / 3.514748] - Initialize
[XR] Discovering subsystems at path C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\DXGIDebug.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'.
Successfully created d3d11 device with debug flag.
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: Microsoft Basic Render Driver (ID=0x8c)
    Vendor:   (null)
    VRAM:     1023 MB
Initialize engine version: 2019.2.21f1 (9d528d026557)
[AudioManager] InitNormal(tryDeviceDefaults = false, preferredOutputType = FMOD_OUTPUTTYPE_AUTODETECT) attempt with hardAudioDisable: false
[AudioManager] Setting output to FMOD_OUTPUTTYPE_AUTODETECT
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Devices.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\DevDispItemProvider.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\avrt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\threadpoolwinrt.dll'.
[AudioManager] InitNormal succeeded with output "FMOD_OUTPUTTYPE_WASAPI". Driver name is "Speakers (Null Audio Driver)". Speaker mode is "FMOD_SPEAKERMODE_STEREO"
The thread 0x12e0 has exited with code 0 (0x0).
The thread 0x12bc has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Gaming.Input.dll'.
onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(1) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(2) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(3) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(4) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(5) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(6) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(7) tid(b90) 8685C003 [0.001229 / 5.339379] - AppCallbacks::SetupInputEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Sensors.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\biwinrt.dll'.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\profext.dll'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(1) tid(1678) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x013CDB40.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\simpleorientation.cpp(127)\Windows.Devices.Sensors.dll!506F1AC7: (caller: 506EB61C) Exception(2) tid(1678) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x013CDD88.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(1) tid(1678) 80070490 Element not found.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\lib\simpleorientationsensor.cpp(160)\Windows.Devices.Sensors.dll!5074B90D: (caller: 50749E09) ReturnHr(2) tid(1678) 80070490 Element not found.
[0.061399 / 5.401353] - AppCallbacks::SetupOrientationSensorEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.applicationmodel.datatransfer.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\coml2.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ie_shims.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ClipboardServer.dll'.
[0.152667 / 5.458863] - AppCallbacks::Load
[2.571148 / 5.459318] - Starting first scene loading
The following GlobalManagers were stripped from the build (Either because they're not used or not supported on this platform):
  ClusterInputManager
If your machine has multiple graphics adapters, Unity may have created a WindowContext on the wrong adapter. If you experience a black screen when playing, please restart the Editor.

(Filename: C:\buildslave\unity\build\Modules/VR/VRDevice.cpp Line: 323)

onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(542)\Windows.Mirage.dll!6EA719A2: (caller: 6EA7177F) ReturnHr(2) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(428)\Windows.Mirage.dll!6EA717C5: (caller: 6EA75CDB) Exception(1) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCBF8.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\analog\input\holographicdriverclientlib\lib\spatialgraphdriverclient.cpp(2174)\Windows.Mirage.dll!6EA7370F: (caller: 6EA73573) ReturnHr(3) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(542)\Windows.Mirage.dll!6EA719A2: (caller: 6EA7177F) ReturnHr(4) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(428)\Windows.Mirage.dll!6EA717C5: (caller: 6EA75CDB) Exception(2) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x08B3DE98.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\analog\input\holographicdriverclientlib\lib\spatialgraphdriverclient.cpp(2174)\Windows.Mirage.dll!6EA7370F: (caller: 6EA73573) ReturnHr(5) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
[0.023743 / 5.483061] - OnCoreWindowSizeChanged event (0.00, 0.00, 845.33, 480.00), m_Initialized=True.
Created eye textures with a "texture array" layout.  The "single-pass instancing" stereo mode will be used.

[0.080543 / 5.563604] - Finishing first scene loading
[0.000505 / 5.564109] - First level loaded
[0.000411 / 5.564521] - PerformUpdateAndRender started
Windows Mixed Reality spatial locatability state changed to Active.

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 324)

End showing splash screen.
UnloadTime: 2.198500 ms
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreCommonProxyStub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Profile.SystemId.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Clipc.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CryptoWinRT.dll'.
Failed to calculate boundary bounds.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:CalculateBoundaryBounds()
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.Boundary.MixedRealityBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.<>c:<InitializeAllServices>b__60_0(IMixedRealityService)
System.Action`1:Invoke(T)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeInstance()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance(MixedRealityToolkit, Boolean)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Awake()

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rometadata.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\WinMetadata\Windows.Graphics.winmd'. Module was built without symbols.
The thread 0x310 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Speech.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp110_win.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Common\sapi_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msxml6.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ole32_wp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\FlightSettings.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcd.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Common\SpeechServiceWinRTApi.ProxyStub.dll'.
onecoreuap\enduser\nui\onecore\sapi\sapi\sr\srcloudpolicy.cpp(255)\sapi_onecore.dll!5E2B61EA: (caller: 5E2B6621) ReturnHr(1) tid(b98) 80070005 Access is denied.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Engines\SR\spsrx_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\wininet.dll'.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: 0x40080202: WinRT transform error (parameters: 0x8000000B, 0x80070490, 0x00000014, 0x0F5FE224).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\tokenbinding.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winnsi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rasapi32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rasman.dll'.
[5.896206 / 11.460727] - OnWindowActivated event - Deactivated.
The thread 0x173c has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptnet.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\webio.dll'.
The thread 0x614 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cabinet.dll'.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
The thread 0x9d0 has exited with code 0 (0x0).
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(3) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC900.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(4) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB48.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(3) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(5) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC8D0.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(6) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB18.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(4) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(7) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC860.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(8) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCAA8.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(5) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(9) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC940.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(10) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB88.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(6) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x01FCDDBC.
The thread 0x778 has exited with code 0 (0x0).
Failed to retrieve bytes for vertex positions from surface mesh!

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/SpatialMapping/SpatialSurface.cpp Line: 127)

HoloLensTest.exe has triggered a breakpoint.

</code>```

<p>After trying out with different scenes this only happens if i choose a profile in the MixedRealityToolki-object where 'Enable Spatial Awareness System' is enabled.
I already tried cloning and modifing the DefaultHoloLens1ConfigurationProfile by enabling 'Enable Spatial Awareness System' and adding the 'SpatialObjectMeshObserver' to the Spatial Observer list.
I double-checked my project-settings and the Unity-Package-Manager for the right settings.</p>

<p>Does someone has a clue about what the cause of this problem might be?</p>

答:
So i ironically found a solution for this just after posting the question:
I stumbled about  this https://github.com/Microsoft/MixedRealityToolkit-Unity/issues/3554 so i installed an older version of the HoloLens(1st. gen) emulator and everything works fine.
Older versions: https://learn.microsoft.com/en-us/windows/mixed-reality/hololens-emulator-archive

version that worked for me: HoloLens Emulator build 10.0.17134.80

Body:
i recently set up required software for development for the Microsoft HoloLens(1st. gen) with the newest version of the HoloLens(1st. gen) emulator (followed the MRTK-Guide: https://microsoft.github.io/MixedRealityToolkit-Unity/Documentation/GettingStartedWithTheMRTK.html#get-the-latest-mrtk-unity-packages). I already tested some example scenes from the MRTK on the emulator and everything works as expected. However, when i test the SpatialAwarenessMeshDemo, the app starts within the emulator with the unity start-screen. Then the scene is visible but after 1-2s the scene disappears and exceptions are thrown.
Visual Studio Log:

'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel32legacy.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vccorlib140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vcruntime140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\ucrtbased.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\msvcp140d_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Forwarders\kernel32.dll'.
The thread 0x1578 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\procthreadexthost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rmclient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dcomp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MinUser.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\gdi32min.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d2d1.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ntmarta.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\advapi32legacy.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\sspicli.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\propsys.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreUAPCommonProxyStub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Graphics.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Shell.ServiceHostBuilder.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\UnityPlayer.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\D3D12.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mfplat.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mfreadwrite.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vccorlib140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Forwarders\version.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\crypt32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\vcruntime140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msasn1.dll'.
'HoloLensTest.exe' (Win32): Loaded 'U:\Programs\WindowsApps\Microsoft.VCLibs.140.00.Debug_14.0.27323.0_x86__8wekyb3d8bbwe\msvcp140_app.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\RTWorkQ.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ExecModelClient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Storage.ApplicationData.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\MrmCoreR.dll'.
CreateDirectory 'C:/Data' failed: Operation has failed with error 0xb7: Cannot create a file when that file already exists.
 (current dir: C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data)
Logging to C:/Data/Users/Visitor0/AppData/Local/Packages/Template3D_pzq3xp76mxafg/TempState/UnityPlayer.log
[0.322811 / 0.399454] - Initializing Unity runtime
Loading native plugins
  Loading AudioPluginMsHRTF.dll
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\AudioPluginMsHRTF.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\HrtfApo.dll'.
Module information:
 Built with Compiler Ver '191627012'
 Built from '2019.2/staging' branch
 Version is '2019.2.21f1 (9d528d026557)'
 Debug build
 Application type 'D3D'
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Enumeration.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\deviceassociation.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\execmodelproxy.dll'.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: Cn::XH at memory location 0x013CE754.
onecoreuap\windows\moderncore\inputv2\inputhost\components\cursor\client\cursorclient.cpp(43)\InputHost.dll!6E59AB33: (caller: 6E59ACAC) ReturnHr(1) tid(1678) 87B20809 onecoreuap\windows\moderncore\inputv2\inputhost\components\cursor\client\cursorclient.cpp(75)\InputHost.dll!6E59ACC3: (caller: 6E56959D) ReturnHr(2) tid(1678) 87B20809 'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\UiaManager.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.UI.Core.TextInput.dll'.
[0.000716 / 0.617966] - AppCallbacks::SetCoreWindowEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Perception.Stub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Mirage.dll'.
wil(439)\Windows.Mirage.dll!6EA6C73F: (caller: 6EA6C564) ReturnHr(1) tid(d64) 80070005 Access is denied.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d10warp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
'HoloLensTest.exe' (Win32): Unloaded 'C:\Windows\System32\ResourcePolicyClient.dll'
[0.080414 / 0.698570] - AppCallbacks::InitializeD3DWindow
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'.
[0.740232 / 0.740232] - OnActivated event.
[0.003292 / 0.743524] - OnCoreWindowSizeChanged event (0.00, 0.00, 853.33, 480.00), m_Initialized=False.
[0.033297 / 0.776821] - OnVisibilityChanged event - Visible.
[0.004851 / 0.781672] - OnWindowActivated event - CodeActivated.
 OS 'Windows 10 (10.0.17763)'
'HoloLensTest.exe' (Win32): Loaded 'U:\Users\DefaultAccount\AppData\Local\DevelopmentFiles\Template3DVS.Debug_Win32.Christopher\GameAssembly.dll'. Symbols loaded.
[2.106498 / 2.888170] - OnCoreWindowSizeChanged event (0.00, 0.00, 853.33, 480.00), m_Initialized=False.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\IPHLPAPI.DLL'.
PlayerConnection initialized from C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data (debug = 0)
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.Connectivity.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Networking.HostName.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\wshbth.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dnsapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\nsi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc6.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\dhcpcsvc.dll'.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\FWPUCLNT.DLL'.
PlayerConnection initialized network socket : 0.0.0.0 55287
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\nlaapi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.ApplicationModel.dll'.
Multi-casting "[IP] 172.17.191.38 [Port] 55287 [Flags] 2 [Guid] 1043895467 [EditorId] 0 [Version] 1048832 [Id] UWPPlayerX86(minwinpc) [Debug] 0 [PackageName] Template3D_pzq3xp76mxafg" to [225.0.0.222:54997]...
Started listening to [0.0.0.0:55287]
PlayerConnection already initialized - listening to [0.0.0.0:55287]
[3.073006 / 3.514748] - Initialize
[XR] Discovering subsystems at path C:/Data/Users/DefaultAccount/AppData/Local/DevelopmentFiles/Template3DVS.Debug_Win32.Christopher/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\DXGIDebug.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\d3d11_3SDKLayers.dll'.
Successfully created d3d11 device with debug flag.
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: Microsoft Basic Render Driver (ID=0x8c)
    Vendor:   (null)
    VRAM:     1023 MB
Initialize engine version: 2019.2.21f1 (9d528d026557)
[AudioManager] InitNormal(tryDeviceDefaults = false, preferredOutputType = FMOD_OUTPUTTYPE_AUTODETECT) attempt with hardAudioDisable: false
[AudioManager] Setting output to FMOD_OUTPUTTYPE_AUTODETECT
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Devices.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\DevDispItemProvider.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\avrt.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\threadpoolwinrt.dll'.
[AudioManager] InitNormal succeeded with output "FMOD_OUTPUTTYPE_WASAPI". Driver name is "Speakers (Null Audio Driver)". Speaker mode is "FMOD_SPEAKERMODE_STEREO"
The thread 0x12e0 has exited with code 0 (0x0).
The thread 0x12bc has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Gaming.Input.dll'.
onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(1) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(2) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(3) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(4) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(5) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(6) tid(b90) 8685C003 onecoreuap\xbox\devices\api\winrt\pnpapiwrapper.cpp(385)\Windows.Gaming.Input.dll!6FFAF86B: (caller: 6FFB2723) ReturnHr(7) tid(b90) 8685C003 [0.001229 / 5.339379] - AppCallbacks::SetupInputEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Devices.Sensors.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\biwinrt.dll'.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\userenv.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\profext.dll'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(1) tid(1678) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x013CDB40.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\simpleorientation.cpp(127)\Windows.Devices.Sensors.dll!506F1AC7: (caller: 506EB61C) Exception(2) tid(1678) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x013CDD88.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(1) tid(1678) 80070490 Element not found.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\lib\simpleorientationsensor.cpp(160)\Windows.Devices.Sensors.dll!5074B90D: (caller: 50749E09) ReturnHr(2) tid(1678) 80070490 Element not found.
[0.061399 / 5.401353] - AppCallbacks::SetupOrientationSensorEvents
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\windows.applicationmodel.datatransfer.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\coml2.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\iertutil.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ie_shims.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ClipboardServer.dll'.
[0.152667 / 5.458863] - AppCallbacks::Load
[2.571148 / 5.459318] - Starting first scene loading
The following GlobalManagers were stripped from the build (Either because they're not used or not supported on this platform):
  ClusterInputManager
If your machine has multiple graphics adapters, Unity may have created a WindowContext on the wrong adapter. If you experience a black screen when playing, please restart the Editor.

(Filename: C:\buildslave\unity\build\Modules/VR/VRDevice.cpp Line: 323)

onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(542)\Windows.Mirage.dll!6EA719A2: (caller: 6EA7177F) ReturnHr(2) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(428)\Windows.Mirage.dll!6EA717C5: (caller: 6EA75CDB) Exception(1) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCBF8.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\analog\input\holographicdriverclientlib\lib\spatialgraphdriverclient.cpp(2174)\Windows.Mirage.dll!6EA7370F: (caller: 6EA73573) ReturnHr(3) tid(1674) 8007007B The filename, directory name, or volume label syntax is incorrect.
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(542)\Windows.Mirage.dll!6EA719A2: (caller: 6EA7177F) ReturnHr(4) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
onecoreuap\analog\input\holographicdriverclientlib\lib\holographicdriverhandlewrapper.h(428)\Windows.Mirage.dll!6EA717C5: (caller: 6EA75CDB) Exception(2) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
    CallContext:[\OpenHolographicDevice]
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x08B3DE98.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\analog\input\holographicdriverclientlib\lib\spatialgraphdriverclient.cpp(2174)\Windows.Mirage.dll!6EA7370F: (caller: 6EA73573) ReturnHr(5) tid(158c) 8007007B The filename, directory name, or volume label syntax is incorrect.
[0.023743 / 5.483061] - OnCoreWindowSizeChanged event (0.00, 0.00, 845.33, 480.00), m_Initialized=True.
Created eye textures with a "texture array" layout.  The "single-pass instancing" stereo mode will be used.

[0.080543 / 5.563604] - Finishing first scene loading
[0.000505 / 5.564109] - First level loaded
[0.000411 / 5.564521] - PerformUpdateAndRender started
Windows Mixed Reality spatial locatability state changed to Active.

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/HoloLensWorldManager.cpp Line: 324)

End showing splash screen.
UnloadTime: 2.198500 ms
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OneCoreCommonProxyStub.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.System.Profile.SystemId.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Clipc.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\CryptoWinRT.dll'.
Failed to calculate boundary bounds.
UnityEngine.DebugLogHandler:Internal_Log(LogType, LogOption, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:CalculateBoundaryBounds()
Microsoft.MixedReality.Toolkit.Boundary.BaseBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.Boundary.MixedRealityBoundarySystem:Initialize()
Microsoft.MixedReality.Toolkit.<>c:<InitializeAllServices>b__60_0(IMixedRealityService)
System.Action`1:Invoke(T)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:ExecuteOnAllServicesInOrder(Action`1)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeAllServices()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeServiceLocator()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:InitializeInstance()
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:RegisterInstance(MixedRealityToolkit, Boolean)
Microsoft.MixedReality.Toolkit.MixedRealityToolkit:Awake()

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rometadata.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\WinMetadata\Windows.Graphics.winmd'. Module was built without symbols.
The thread 0x310 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Media.Speech.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msvcp110_win.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47Langs.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\urlmon.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Common\sapi_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winmmbase.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winhttp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rsaenh.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\msxml6.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\ole32_wp.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Windows.Globalization.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\BCP47mrm.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\FlightSettings.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\bcd.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Common\SpeechServiceWinRTApi.ProxyStub.dll'.
onecoreuap\enduser\nui\onecore\sapi\sapi\sr\srcloudpolicy.cpp(255)\sapi_onecore.dll!5E2B61EA: (caller: 5E2B6621) ReturnHr(1) tid(b98) 80070005 Access is denied.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\Speech_OneCore\Engines\SR\spsrx_onecore.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\wininet.dll'.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: 0x40080202: WinRT transform error (parameters: 0x8000000B, 0x80070490, 0x00000014, 0x0F5FE224).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\tokenbinding.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\OnDemandConnRouteHelper.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\winnsi.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rasapi32.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\rasman.dll'.
[5.896206 / 11.460727] - OnWindowActivated event - Deactivated.
The thread 0x173c has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cryptnet.dll'.
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\webio.dll'.
The thread 0x614 has exited with code 0 (0x0).
'HoloLensTest.exe' (Win32): Loaded 'C:\Windows\System32\cabinet.dll'.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
The thread 0x9d0 has exited with code 0 (0x0).
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(3) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC900.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(4) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB48.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(3) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(5) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC8D0.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(6) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB18.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(4) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(7) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC860.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(8) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCAA8.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(5) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 (KernelBase.dll) in HoloLensTest.exe: WinRT originate error - 0x80040111 : 'Windows.UI.WindowManagement.DisplayRegion'.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\viewpositiontrackerinternal.h(94)\Windows.Devices.Sensors.dll!506F33ED: (caller: 506F240F) Exception(9) tid(1674) 80040111 ClassFactory cannot supply requested class
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCC940.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensor.cpp(179)\Windows.Devices.Sensors.dll!506EF4AC: (caller: 506EB61C) Exception(10) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: wil::ResultException at memory location 0x01FCCB88.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.
onecoreuap\drivers\mobilepc\sensors\convergence\api\winrt\public\internal\sensorserver.cpp(46)\Windows.Devices.Sensors.dll!506E8581: (caller: 506E593F) ReturnHr(6) tid(1674) 80070490 Element not found.
Exception thrown at 0x7770F2B2 in HoloLensTest.exe: Microsoft C++ exception: Il2CppExceptionWrapper at memory location 0x01FCDDBC.
The thread 0x778 has exited with code 0 (0x0).
Failed to retrieve bytes for vertex positions from surface mesh!

(Filename: C:\buildslave\unity\build\Modules/VR/HoloLens/SpatialMapping/SpatialSurface.cpp Line: 127)

HoloLensTest.exe has triggered a breakpoint.

After trying out with different scenes this only happens if i choose a profile in the MixedRealityToolki-object where 'Enable Spatial Awareness System' is enabled.
I already tried cloning and modifing the DefaultHoloLens1ConfigurationProfile by enabling 'Enable Spatial Awareness System' and adding the 'SpatialObjectMeshObserver' to the Spatial Observer list.
I double-checked my project-settings and the Unity-Package-Manager for the right settings.

Does someone has a clue about what the cause of this problem might be?