View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001414 | NoesisGUI | C++ SDK | public | 2019-02-26 02:28 | 2019-03-04 11:30 |
| Reporter | nikobarli | Assigned To | jsantos | ||
| Priority | normal | Severity | crash | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 2.2.0b7 | ||||
| Target Version | 2.2.0 | Fixed in Version | 2.2.0b8 | ||
| Summary | 0001414: NoesisGUI crash on Windows 7 SP1 | ||||
| Description | NoesisGUI crash on Windows 7 SP1 (confirmed with the r7800 of trunk) All samples code of Noesis C++ SDK failed to run on Windows 7 SP1.
We usually use Windows 10 when developing code, but our target platform includes Windows 7 SP1.I forgot when is the last time I confirmed it run on Windows 7 SP1 | ||||
| Attached Files | |||||
| Platform | Windows | ||||
|
At least it works on r6976 |
|
|
Yes, we introduced this bug in beta5 and was fixed in beta6. Could you try trunk? |
|
|
Hi Jesus, I tried using r7801 of trunk just now and it's still there. |
|
|
Hhhmmmghh, it seems there are two problems
This is due to commit on r7369. NoesisGUI called an API of XInput_4.dll which only supported on Windows 8 or above. Thus failing in Win7 SP1. This is still happening even on trunk r7801.
This maybe the bug in beta5 you are mentioning. We are currently using r7643. Will try to update to the latest. |
|
|
Hi Niko, I am looking at the input thing right now and I see that we load XInput dynamically
So we shouldn't have that dependency at launch time. Could you please give me more information about the error? Thanks! |
|
|
Could you provide minidump using our latest beta release? https://www.noesisengine.com/forums/viewtopic.php?f=14&t=1491 |
|
|
Hi Jesus, I attached a patch to comment out the offending part of the current source code. Win32Display.cpp.patch (1,163 bytes)
Index: Src/Packages/App/Win32Display/Src/Win32Display.cpp
===================================================================
--- Src/Packages/App/Win32Display/Src/Win32Display.cpp (revision 7801)
+++ Src/Packages/App/Win32Display/Src/Win32Display.cpp (working copy)
@@ -345,13 +345,13 @@
if (currentTime - lastEnumTime > 2000)
{
lastEnumTime = currentTime;
- XINPUT_CAPABILITIES xinputCaps;
- uint32_t capsResult = XInputGetCapabilities_(0, XINPUT_FLAG_GAMEPAD, &xinputCaps);
- if (capsResult == ERROR_SUCCESS)
- {
- NS_LOG_DEBUG("XInput controller connected");
- isControllerConnected = true;
- }
+ // XINPUT_CAPABILITIES xinputCaps;
+ // uint32_t capsResult = XInputGetCapabilities_(0, XINPUT_FLAG_GAMEPAD, &xinputCaps);
+ // if (capsResult == ERROR_SUCCESS)
+ // {
+ // NS_LOG_DEBUG("XInput controller connected");
+ // isControllerConnected = true;
+ // }
}
}
|
|
|
I updated our Noesis to 2.2.0b6 (r7766) and I confirmed that our code no longer crashes in Win7 SP1 |
|
|
So, just checking if XInputGetCapabilities_ is NULL before calling will solve the issue right? |
|
|
I mean, the problem is that in Win7 that pointer is NULL or uninitiated. |
|
Yes, that's correct. |
|
|
Thanks for the help Niko! Fixed in r7850 |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2019-02-26 02:28 | nikobarli | New Issue | |
| 2019-02-26 02:28 | nikobarli | File Added: NoesisCrashOnWin7SP1.PNG | |
| 2019-02-26 03:12 | nikobarli | Note Added: 0005472 | |
| 2019-02-26 05:05 | jsantos | Note Added: 0005474 | |
| 2019-02-26 05:05 | jsantos | Assigned To | => jsantos |
| 2019-02-26 05:05 | jsantos | Status | new => feedback |
| 2019-02-26 05:05 | jsantos | Target Version | => 2.2.0 |
| 2019-02-26 05:05 | jsantos | Description Updated | |
| 2019-02-26 05:17 | nikobarli | Note Added: 0005475 | |
| 2019-02-26 05:17 | nikobarli | Status | feedback => assigned |
| 2019-02-26 07:57 | nikobarli | Note Added: 0005476 | |
| 2019-02-26 16:52 | jsantos | Note Added: 0005477 | |
| 2019-02-26 16:52 | jsantos | Status | assigned => feedback |
| 2019-02-26 16:56 | jsantos | Note Added: 0005478 | |
| 2019-02-27 03:01 | nikobarli | File Added: Win32Display.cpp.patch | |
| 2019-02-27 03:01 | nikobarli | Note Added: 0005482 | |
| 2019-02-27 03:01 | nikobarli | Status | feedback => assigned |
| 2019-02-27 03:50 | nikobarli | Note Added: 0005483 | |
| 2019-03-01 13:18 | jsantos | Note Added: 0005485 | |
| 2019-03-01 13:18 | jsantos | Note Added: 0005486 | |
| 2019-03-01 13:18 | jsantos | Status | assigned => feedback |
| 2019-03-02 02:33 | nikobarli | Note Added: 0005489 | |
| 2019-03-02 02:33 | nikobarli | Status | feedback => assigned |
| 2019-03-04 11:30 | jsantos | Status | assigned => resolved |
| 2019-03-04 11:30 | jsantos | Resolution | open => fixed |
| 2019-03-04 11:30 | jsantos | Fixed in Version | => 2.2.0b8 |
| 2019-03-04 11:30 | jsantos | Note Added: 0005495 |