View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001423 | NoesisGUI | C++ SDK | public | 2019-03-12 15:53 | 2019-04-25 18:00 |
| Reporter | stonstad | Assigned To | sfernandez | ||
| Priority | normal | Severity | major | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.2.0b6 | ||||
| Target Version | 2.2.2 | Fixed in Version | 2.2.2 | ||
| Summary | 0001423: ToolTipService.SetToolTip on ListBoxItem Causes Crash | ||||
| Description | ListBoxItem lb = _Root.FindName("_lb") as ListBoxItem; // crash! | ||||
| Attached Files | |||||
| Platform | Any | ||||
|
Please close this issue -- it was caused by a null parameter being passed to SetToolTip. |
|
|
Was this crashing (restarting) Unity? If affirmative then we need to solve that. |
|
|
Yes -- it crashes Unity. Seems to be two separate behaviors. 1) Sending in null to SetToolTip causes a crash. and 2) FindName for a listboxitem seems to always returns null. |
|
|
encl. crash .dmp for above issue. |
|
|
@sfernandez, this is the native code crashing (obj is null)
By the way, the check against NULL must be done at C#, not in C++, where asserts are being used. |
|
|
Sure thing, no problem. Just curious -- why does it crash instead of throw an exception? |
|
|
It was crashing because the native code wasn't checking if the input parameter was null, so an unhandled exception was generated closing Unity. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-03-12 15:53 | stonstad | New Issue | |
| 2019-03-12 15:59 | stonstad | Note Added: 0005521 | |
| 2019-03-12 19:16 | jsantos | Note Added: 0005523 | |
| 2019-03-12 19:16 | jsantos | Assigned To | => jsantos |
| 2019-03-12 19:16 | jsantos | Status | new => feedback |
| 2019-03-12 19:16 | jsantos | Assigned To | jsantos => sfernandez |
| 2019-03-13 19:29 | stonstad | Note Added: 0005524 | |
| 2019-03-13 19:29 | stonstad | Status | feedback => assigned |
| 2019-03-13 22:05 | stonstad | File Added: crash.zip | |
| 2019-03-13 22:05 | stonstad | Note Added: 0005526 | |
| 2019-03-14 00:46 | jsantos | Note Added: 0005529 | |
| 2019-03-25 19:15 | stonstad | Note Added: 0005557 | |
| 2019-03-26 21:58 | jsantos | Target Version | => 2.2.1 |
| 2019-04-05 12:26 | sfernandez | Target Version | 2.2.1 => 2.2.2 |
| 2019-04-25 18:00 | sfernandez | Status | assigned => resolved |
| 2019-04-25 18:00 | sfernandez | Resolution | open => fixed |
| 2019-04-25 18:00 | sfernandez | Fixed in Version | => 2.2.2 |
| 2019-04-25 18:00 | sfernandez | Note Added: 0005641 |