pboy0922 / x360ce

Automatically exported from code.google.com/p/x360ce
1 stars 0 forks source link

VS2013 hang at startup on certion PCs #1043

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This issue is about long known issue with VS2013 builds - hang at startup on 
certain PCs. All issues that refers to this bug should be merged here.

Original issue reported on code.google.com by tapcio on 23 Nov 2014 at 8:32

GoogleCodeExporter commented 9 years ago
Attached test build.

Original comment by tapcio on 23 Nov 2014 at 8:33

Attachments:

GoogleCodeExporter commented 9 years ago
Please note test build REQUIRES that ini/gdb file will be encoded in UTF-8 or 
ANSI (prefer UTF-8). Old inis, encoded using standard Windows UTF-16 LE with 
BOM are not supported. Sorry for this inconvenience.

Original comment by tapcio on 23 Nov 2014 at 8:34

GoogleCodeExporter commented 9 years ago
still no success

the thread states are

1444 DARKSOULS.exe+0x3956: Wait:WrUserRequest
22816 DARKSOULS.exe+0x14a0: Wait:UserRequest
15984 DARKSOULS.exe+0x1490: Wait:UserRequest

33296   < 0.01  324,052 ntdll.dll!_TppWaiterpThread@4: Wait:DelayExecution
59248 DATA.exe+0x12252ee: Wait:WrKeyedEvent

Original comment by danialho...@gmail.com on 24 Nov 2014 at 1:38

GoogleCodeExporter commented 9 years ago
Oh, setup app is always red square with the attached build.

Original comment by danialho...@gmail.com on 24 Nov 2014 at 1:45

GoogleCodeExporter commented 9 years ago
Red light is related to my second comment, ini file requires to be in UTF-8.

Original comment by tapcio on 24 Nov 2014 at 11:48

GoogleCodeExporter commented 9 years ago
It prints anything to log file/console ?

Original comment by tapcio on 24 Nov 2014 at 12:16

GoogleCodeExporter commented 9 years ago
"Red light is related to my second comment, ini file requires to be in UTF-8."

Ini was converted to ansi and utf-8, but seems after opening and closing the 
app it is unicode again.

"It prints anything to log file/console ?"

It doesn't even load, there is no beep, no console - just a hung process.

Original comment by danialho...@gmail.com on 24 Nov 2014 at 12:59

GoogleCodeExporter commented 9 years ago

Original comment by tapcio on 26 Nov 2014 at 12:35

Attachments:

GoogleCodeExporter commented 9 years ago
Aha, success!

Original comment by danialho...@gmail.com on 26 Nov 2014 at 12:45

GoogleCodeExporter commented 9 years ago
or not, i get the hooking ding, and to the GFWL login, and then no input at all 
on the gamepad.

Original comment by danialho...@gmail.com on 26 Nov 2014 at 12:47

GoogleCodeExporter commented 9 years ago
well never mind that then! whatever happened there it wasn't the dll, its all 
working now :)

Original comment by danialho...@gmail.com on 26 Nov 2014 at 12:58

GoogleCodeExporter commented 9 years ago
That DLL is same as latest trunk, but I don't know what fixed this :p

Original comment by tapcio on 26 Nov 2014 at 6:08

GoogleCodeExporter commented 9 years ago
possibly the removal of hacks.

hmm, i might see if krossx can review the code to see if he can spot it.

Original comment by danialho...@gmail.com on 26 Nov 2014 at 6:21

GoogleCodeExporter commented 9 years ago
You can try to move around code if you have a VS2013. Possible that PrintLog in 
InitInstance caused that.

Original comment by tapcio on 26 Nov 2014 at 7:28

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hym, it seems to be a mutex issue. Now VS2010 and VS2013 use mutex.h which is 
wrapper around WinAPI CRITICAL_SECTION, ie. it's recursive mutex. I used non 
recursive std::mutex in few places for VS2013 before.

Original comment by tapcio on 26 Nov 2014 at 8:54

GoogleCodeExporter commented 9 years ago
PS: I think of dropping Windows XP support in VS2013 builds.

Original comment by tapcio on 26 Nov 2014 at 9:18

GoogleCodeExporter commented 9 years ago
I think trunk is good for next beta release.
VS2013 builds will require Vista or later and VS2010 builds will be 
compatibility builds, when VS2013 fail or for Windows XP support.

Latest VS2013 builds:
https://mega.co.nz/#!r5dmSbia!M9YjJwHp-yfDyxlvJeptw6aPxosJJkMspRfAmcXK8ZY
https://mega.co.nz/#!allmzDoS!D9-4L6DGYKse_V65tC0BIXPmZ1aZKCuW_CosFmO-_T4

Original comment by tapcio on 27 Nov 2014 at 8:53

GoogleCodeExporter commented 9 years ago
having to use mega is a tad heavy just to get the file, i think i will create a 
Sourceforge project to host downloads on

Original comment by danialho...@gmail.com on 28 Nov 2014 at 3:50

GoogleCodeExporter commented 9 years ago
I used mega only for test packages (added pdb file etc. so it was too big for 
attachment).

Original comment by tapcio on 28 Nov 2014 at 10:18

GoogleCodeExporter commented 9 years ago
PS: I can use my current hosting (http://dev.tapek.shst.pl/), but it have a 
limited bandwidth.

Original comment by tapcio on 28 Nov 2014 at 10:20

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please check if anything broken in current trunk, r1032 VS2013 builds:
https://mega.co.nz/#!ykUBjLiQ!vSUo_u013SvWNX0rp5Wn-Zd11Z-ox-W21DFPY8Drz6s
https://mega.co.nz/#!ylNVmDoS!CiNcWYuAKX0R2SaPXJDBv0WyjxCeXVjUI7kbolLK6qM

Original comment by tapcio on 29 Nov 2014 at 12:44

GoogleCodeExporter commented 9 years ago
@danialhorton
Trunk require testing (and VS2010 project files).

Original comment by tapcio on 1 Dec 2014 at 12:03

GoogleCodeExporter commented 9 years ago
not building on vs2010

Error   6   error C2065: '_Iter' : undeclared 
identifier  d:\projects\x360ce\x360ce\common\StringUtils.h  116 1   Common_vs2010
Error   16  error C2065: '_Iter' : undeclared 
identifier  d:\projects\x360ce\x360ce\common\StringUtils.h  194 1   Common_vs2010
Error   26  error C2065: '_Iter' : undeclared 
identifier  d:\projects\x360ce\x360ce\common\StringUtils.h  116 1   InputHook_vs2010
Error   36  error C2065: '_Iter' : undeclared 
identifier  d:\projects\x360ce\x360ce\common\StringUtils.h  194 1   InputHook_vs2010
Error   46  error C2065: '_Iter' : undeclared 
identifier  d:\projects\x360ce\x360ce\common\StringUtils.h  116 1   x360ce
Error   56  error C2065: '_Iter' : undeclared 
identifier  d:\projects\x360ce\x360ce\common\StringUtils.h  194 1   x360ce
Error   1   error C2084: function 'std::string std::to_string(_Longlong)' already 
has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  98  1   Common_vs2010
Error   21  error C2084: function 'std::string std::to_string(_Longlong)' already 
has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  98  1   InputHook_vs2010
Error   41  error C2084: function 'std::string std::to_string(_Longlong)' already 
has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  98  1   x360ce
Error   2   error C2084: function 'std::string std::to_string(_ULonglong)' already 
has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  106 1   Common_vs2010
Error   22  error C2084: function 'std::string std::to_string(_ULonglong)' already 
has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  106 1   InputHook_vs2010
Error   42  error C2084: function 'std::string std::to_string(_ULonglong)' already 
has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  106 1   x360ce
Error   3   error C2084: function 'std::string std::to_string(long double)' already 
has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  114 1   Common_vs2010
Error   23  error C2084: function 'std::string std::to_string(long double)' 
already has a 
body    d:\projects\x360ce\x360ce\common\StringUtils.h  114 1   InputHook_vs2010
Error   43  error C2084: function 'std::string std::to_string(long double)' 
already has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  114 1   x360ce
Error   11  error C2084: function 'std::wstring std::to_wstring(_Longlong)' 
already has a 
body    d:\projects\x360ce\x360ce\common\StringUtils.h  176 1   Common_vs2010
Error   31  error C2084: function 'std::wstring std::to_wstring(_Longlong)' 
already has a 
body    d:\projects\x360ce\x360ce\common\StringUtils.h  176 1   InputHook_vs2010
Error   51  error C2084: function 'std::wstring std::to_wstring(_Longlong)' 
already has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  176 1   x360ce
Error   12  error C2084: function 'std::wstring std::to_wstring(_ULonglong)' 
already has a 
body    d:\projects\x360ce\x360ce\common\StringUtils.h  184 1   Common_vs2010
Error   32  error C2084: function 'std::wstring std::to_wstring(_ULonglong)' 
already has a 
body    d:\projects\x360ce\x360ce\common\StringUtils.h  184 1   InputHook_vs2010
Error   52  error C2084: function 'std::wstring std::to_wstring(_ULonglong)' 
already has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  184 1   x360ce
Error   13  error C2084: function 'std::wstring std::to_wstring(long double)' 
already has a 
body    d:\projects\x360ce\x360ce\common\StringUtils.h  192 1   Common_vs2010
Error   33  error C2084: function 'std::wstring std::to_wstring(long double)' 
already has a 
body    d:\projects\x360ce\x360ce\common\StringUtils.h  192 1   InputHook_vs2010
Error   53  error C2084: function 'std::wstring std::to_wstring(long double)' 
already has a body  d:\projects\x360ce\x360ce\common\StringUtils.h  192 1   x360ce
Error   4   error C2143: syntax error : missing ';' before 
'<' d:\projects\x360ce\x360ce\common\StringUtils.h  115 1   Common_vs2010
Error   14  error C2143: syntax error : missing ';' before 
'<' d:\projects\x360ce\x360ce\common\StringUtils.h  193 1   Common_vs2010
Error   24  error C2143: syntax error : missing ';' before 
'<' d:\projects\x360ce\x360ce\common\StringUtils.h  115 1   InputHook_vs2010
Error   34  error C2143: syntax error : missing ';' before 
'<' d:\projects\x360ce\x360ce\common\StringUtils.h  193 1   InputHook_vs2010
Error   44  error C2143: syntax error : missing ';' before 
'<' d:\projects\x360ce\x360ce\common\StringUtils.h  115 1   x360ce
Error   54  error C2143: syntax error : missing ';' before 
'<' d:\projects\x360ce\x360ce\common\StringUtils.h  193 1   x360ce
Error   9   error C2264: 'std::to_string' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  128 1   Common_vs2010
Error   10  error C2264: 'std::to_string' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  133 1   Common_vs2010
Error   29  error C2264: 'std::to_string' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  128 1   InputHook_vs2010
Error   30  error C2264: 'std::to_string' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  133 1   InputHook_vs2010
Error   49  error C2264: 'std::to_string' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  128 1   x360ce
Error   50  error C2264: 'std::to_string' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  133 1   x360ce
Error   19  error C2264: 'std::to_wstring' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  206 1   Common_vs2010
Error   20  error C2264: 'std::to_wstring' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  211 1   Common_vs2010
Error   39  error C2264: 'std::to_wstring' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  206 1   InputHook_vs2010
Error   40  error C2264: 'std::to_wstring' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  211 1   InputHook_vs2010
Error   59  error C2264: 'std::to_wstring' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  206 1   x360ce
Error   60  error C2264: 'std::to_wstring' : error in function definition or 
declaration; function not 
called  d:\projects\x360ce\x360ce\common\StringUtils.h  211 1   x360ce
Error   7   error C3206: 'std::use_facet' : invalid template argument for '_Facet', 
missing template argument list on class template 
'std::num_put'  d:\projects\x360ce\x360ce\common\StringUtils.h  117 1   Common_vs201
0
Error   17  error C3206: 'std::use_facet' : invalid template argument for 
'_Facet', missing template argument list on class template 
'std::num_put'  d:\projects\x360ce\x360ce\common\StringUtils.h  195 1   Common_vs201
0
Error   27  error C3206: 'std::use_facet' : invalid template argument for 
'_Facet', missing template argument list on class template 
'std::num_put'  d:\projects\x360ce\x360ce\common\StringUtils.h  117 1   InputHook_vs
2010
Error   37  error C3206: 'std::use_facet' : invalid template argument for 
'_Facet', missing template argument list on class template 
'std::num_put'  d:\projects\x360ce\x360ce\common\StringUtils.h  195 1   InputHook_vs
2010
Error   47  error C3206: 'std::use_facet' : invalid template argument for 
'_Facet', missing template argument list on class template 
'std::num_put'  d:\projects\x360ce\x360ce\common\StringUtils.h  117 1   x360ce
Error   57  error C3206: 'std::use_facet' : invalid template argument for 
'_Facet', missing template argument list on class template 
'std::num_put'  d:\projects\x360ce\x360ce\common\StringUtils.h  195 1   x360ce
Error   8   error C3861: '_Iter': identifier not 
found   d:\projects\x360ce\x360ce\common\StringUtils.h  122 1   Common_vs2010
Error   18  error C3861: '_Iter': identifier not 
found   d:\projects\x360ce\x360ce\common\StringUtils.h  200 1   Common_vs2010
Error   28  error C3861: '_Iter': identifier not 
found   d:\projects\x360ce\x360ce\common\StringUtils.h  122 1   InputHook_vs2010
Error   38  error C3861: '_Iter': identifier not 
found   d:\projects\x360ce\x360ce\common\StringUtils.h  200 1   InputHook_vs2010
Error   48  error C3861: '_Iter': identifier not 
found   d:\projects\x360ce\x360ce\common\StringUtils.h  122 1   x360ce
Error   58  error C3861: '_Iter': identifier not 
found   d:\projects\x360ce\x360ce\common\StringUtils.h  200 1   x360ce
Error   5   error C4430: missing type specifier - int assumed. Note: C++ does not 
support 
default-int d:\projects\x360ce\x360ce\common\StringUtils.h  115 1   Common_vs2010
Error   15  error C4430: missing type specifier - int assumed. Note: C++ does not 
support 
default-int d:\projects\x360ce\x360ce\common\StringUtils.h  193 1   Common_vs2010
Error   25  error C4430: missing type specifier - int assumed. Note: C++ does not 
support 
default-int d:\projects\x360ce\x360ce\common\StringUtils.h  115 1   InputHook_vs201
0
Error   35  error C4430: missing type specifier - int assumed. Note: C++ does not 
support 
default-int d:\projects\x360ce\x360ce\common\StringUtils.h  193 1   InputHook_vs201
0
Error   45  error C4430: missing type specifier - int assumed. Note: C++ does not 
support default-int d:\projects\x360ce\x360ce\common\StringUtils.h  115 1   x360ce
Error   55  error C4430: missing type specifier - int assumed. Note: C++ does not 
support default-int d:\projects\x360ce\x360ce\common\StringUtils.h  193 1   x360ce
    61  IntelliSense: back_insert_iterator is not a template    d:\projects\x360ce\x360ce\common\stringutils.h  115 17  Common_vs2010
    62  IntelliSense: back_insert_iterator is not a template    d:\projects\x360ce\x360ce\common\stringutils.h  193 17  Common_vs2010

Original comment by danialho...@gmail.com on 1 Dec 2014 at 1:27

GoogleCodeExporter commented 9 years ago
r1038

Original comment by tapcio on 1 Dec 2014 at 10:19

GoogleCodeExporter commented 9 years ago
Error   3   error C3861: 'strtof': identifier not 
found   d:\Projects\x360ce\x360ce\Common\StringUtils.cpp    188 1   Common_vs2010
Error   1   error C3861: 'strtoll': identifier not 
found   d:\Projects\x360ce\x360ce\Common\StringUtils.cpp    154 1   Common_vs2010
Error   2   error C3861: 'strtoull': identifier not 
found   d:\Projects\x360ce\x360ce\Common\StringUtils.cpp    171 1   Common_vs2010
Error   4   error LNK1181: cannot open input file 
'd:\Projects\x360ce\x360ce\Common\bin\Release\Common_vs2010.lib'    d:\Projects\x36
0ce\x360ce\x360ce\LINK  x360ce
    6   IntelliSense: identifier "strtof" is undefined  d:\projects\x360ce\x360ce\common\stringutils.cpp    188 19  Common_vs2010
    5   IntelliSense: identifier "strtoull" is undefined    d:\projects\x360ce\x360ce\common\stringutils.cpp    171 17  Common_vs2010

Original comment by danialho...@gmail.com on 1 Dec 2014 at 12:08

GoogleCodeExporter commented 9 years ago
mmk, testing with Dark souls, input hook is not working:

Enabled console, console does not appear.

Original comment by danialho...@gmail.com on 1 Dec 2014 at 1:28

GoogleCodeExporter commented 9 years ago
VS2010 build ?

Original comment by tapcio on 1 Dec 2014 at 1:30

GoogleCodeExporter commented 9 years ago
Looks like dll is not reading ini from programdata, when placed in game folder 
it works.

Original comment by danialho...@gmail.com on 1 Dec 2014 at 1:30

GoogleCodeExporter commented 9 years ago
Neither GDB or Ini are being read from programdata\x360ce location.

Original comment by danialho...@gmail.com on 1 Dec 2014 at 1:32

GoogleCodeExporter commented 9 years ago
Upps, seems I forgot about that (BuildPath in Common need tweaking).

Original comment by tapcio on 1 Dec 2014 at 1:34

GoogleCodeExporter commented 9 years ago
xD, in the meantime i'll test it with the config files local

Original comment by danialho...@gmail.com on 1 Dec 2014 at 1:37

GoogleCodeExporter commented 9 years ago
r1044

Original comment by tapcio on 1 Dec 2014 at 2:05

GoogleCodeExporter commented 9 years ago
I think that Dark Souls will require longer timeout.

Original comment by tapcio on 1 Dec 2014 at 2:34

GoogleCodeExporter commented 9 years ago
PS: try VS2013 build in Dark Solus (or other games hanging at start):
https://mega.co.nz/#!atkU1SbK!oJP-OGhJSxkIyCaZVkt3gpXDLhzuiH-xQwJMmbo7IXY
https://mega.co.nz/#!m8VmzAZR!qLiJYOgTBCNHwWh2lnMwhU3DW-utodNGErhdLOXQl34

Original comment by tapcio on 1 Dec 2014 at 2:47

GoogleCodeExporter commented 9 years ago
Any new about hang on start in VS2013 ? No regressions ?

Original comment by tapcio on 2 Dec 2014 at 10:54