http://bugs.winehq.org/show_bug.cgi?id=32495
Bug #: 32495
Summary: Incorrect behavior in ScriptGetLogicalWidths() /
ScriptApplyLogicalWidth() (buffer overrun)
Product: Wine
Version: 1.5.19
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: usp10
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: disposable593-wine(a)yahoo.com
Classification: Unclassified
Currently, ScriptGetLogicalWidths() and ScriptApplyLogicalWidth() are
incorrectly implemented, leading to wrong glyph positioning in one of my
applications.
**ScriptGetLogicalWidths(): The current implementation simply copies the input
to the output array, incorrectly assuming nbchar==nbglyphs. If there are fewer
glyphs than characters, this causes a buffer overrun, potentially leading to
application crashes. (The problem does and will become more prevalent as the
implementation of shaping is improved over time.)
**ScriptApplyLogicalWidths(): The functions fails to apply justification and
simply returns the unjustified widths.
Below I include what I believe are correct implementations. I have taken care
that the results agree with those returned by the Microsoft implementations. (I
have never seen or been in contact with the original Microsoft code, though, so
the following code is "clean" and may be used for any purpose.)
HRESULT WINAPI ScriptGetLogicalWidths(const SCRIPT_ANALYSIS *sa, int nbchars,
int nbglyphs,
const int *glyph_width, const WORD
*log_clust,
const SCRIPT_VISATTR *sva, int *widths)
{
int rtl, i;
// TRACE("(%p, %d, %d, %p, %p, %p, %p)\n",
// sa, nbchars, nbglyphs, glyph_width, log_clust, sva, widths);
rtl = sa->fRTL && !sa->fLogicalOrder;
for (i = 0; i < nbchars; )
{
int w = 0, i2, j, j2;
j = log_clust[i];
i2 = i;
do i2++; while (i2 < nbchars && log_clust[i2] == j);
j2 = i2 < nbchars ? log_clust[i2] : rtl? -1 : nbglyphs;
for ( ; j != j2; rtl? j--:j++)
w += glyph_width[j];
for ( ; i < i2; i++)
w -= widths[i] = w / (i2-i);
}
return S_OK;
}
HRESULT WINAPI ScriptApplyLogicalWidth(const int *dx, int num_chars, int
num_glyphs,
const WORD *log_clust, const
SCRIPT_VISATTR *sva,
const int *advance, const
SCRIPT_ANALYSIS *sa,
ABC *abc, int *justify)
{
int rtl, i;
// FIXME("(%p, %d, %d, %p, %p, %p, %p, %p, %p)\n",
// dx, num_chars, num_glyphs, log_clust, sva, advance, sa, abc,
justify);
rtl = sa->fRTL && !sa->fLogicalOrder;
if (abc) abc->abcB = - abc->abcA - abc->abcC;
for (i = 0; i < num_chars; )
{
int w = 0, j, j1, j2;
j1 = log_clust[i];
do w += dx[i++]; while (i < num_chars && log_clust[i] == j1);
j2 = i < num_chars ? log_clust[i] : rtl? -1 : num_glyphs;
for (j = j1; j != j2; rtl? j--:j++)
w -= advance[j];
for (j = j1; j != j2; rtl? j--:j++)
{
w -= justify[j] = w / (rtl? j-j2:j2-j);
justify[j] += advance[j];
if (abc) abc->abcB += justify[j];
}
}
return S_OK;
}
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=19452
Summary: QuickVerse 2009 crashes when attempting to open a book
Product: Wine
Version: 1.1.26
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: firesword14(a)yahoo.com
Created an attachment (id=22597)
--> (http://bugs.winehq.org/attachment.cgi?id=22597)
Log of what happened, then dump
Wine crashes when I double click on a bible or book to open.
This is my first bug report, if need more information, please ask.
First issue in log: shdocvw:PersistStreamInit_InitNew
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34662
Bug #: 34662
Summary: Unhandled exception: page fault on read access to
0x0000001c in 32-bit code (0x1002faf3)
Product: Wine
Version: unspecified
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: rjchaves93(a)gmail.com
Classification: Unclassified
Created attachment 46206
--> http://bugs.winehq.org/attachment.cgi?id=46206
backtrace generated by wine
on a screen change a game caught the wine.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=30415
Bug #: 30415
Summary: wineserver leaks memory when running Crysis Wars
dedicated server
Product: Wine
Version: 1.4
Platform: x86-64
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: liquitsnake(a)gmx.net
Classification: Unclassified
The Crysis Wars dedicated server, especially with the MWLL mod and many
players, leaks a lot of memory. 5 to 10 MB/minute are not unusual.
This happens on Windows too, can't be fixed and is not subject of this bug
report.
On Wine however, the wineserver process leaks memory alongside the Crysis Wars
process! In fact, wineserver leaks even faster, more than doubling the memory
load on my machine at a given time.
Wineserver's leak is the subject of this bug report.
Wineserver will not release its memory when Crysis quits. In fact, the only way
to do that is to quit wineserver, either by killing it, or by closing all Wine
applications and waiting for wineserver to quit on its own.
I'll be happy to provide any info needed to help debug this. I don't know where
to even start though.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=40053
Bug ID: 40053
Summary: Romance of the Three Kingdoms 13 (三國志13) fails to
start
Product: Wine
Version: 1.9.2
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: directx-d3d
Assignee: wine-bugs(a)winehq.org
Reporter: jiashulu(a)gmail.com
Distribution: ---
The game window appears for less than a second, then the game exits.
When I set d3d9.dll to native in winecfg and put the d3d9.dll file of
SwiftShader (a software renderer) in the game directory, the game can run.
The game has a benchmark program which suffers from the same bug. It can be
downloaded from the game's official website:
http://download1.gamecity.ne.jp/bench/setup_SAN13_BM.exe
I am using a Nvidia Quadro K2100M card and the newest nvidia binary driver, not
sure whether this is related.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=29598
Bug #: 29598
Summary: eRacer demo: no text displayed
Product: Wine
Version: 1.3.37
Platform: x86
URL: http://www.fileplanet.com/60483/60000/fileinfo/eRacer-
Online-Demo
OS/Version: Linux
Status: NEW
Keywords: download
Severity: normal
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: gyebro69(a)gmail.com
Classification: Unclassified
Created attachment 38346
--> http://bugs.winehq.org/attachment.cgi?id=38346
terminal output
Text is missing from the game. Neither menu options nor in-game HUD are
displayed.
The game was developed by Rage Software in 2001. Some other titles released at
that time from this developer are also affected, e.g. Eurofighter Typhoon.
Hostile Waters is another game developed by Rage. When using the default gfx
options offered by the launcher, text in the game is shown correctly. However
there is a compatibility option in the launcher, named 'Use Compatible Upload'
(disabled by default).
No idea what does this option do, but enabling it results in the same problem
as with eRacer: text is missing in the game.
Unfortunately this option is not used by either eRacer or Eurofighter Typhoon
so there is no way to work around the problem.
Steps to reproduce the problem with the demo:
1. Install the demo as usual.
2. Before starting the game remove/rename intro.avi located in eRacer/Gui/Avi
directory. Start the game by eracer.exe
3. You can see that the menu is displayed without any text.
Fedora 16
Nvidia 250 / driver 290.10
X.Org X Server 1.11.3
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=34243
Bug #: 34243
Summary: Automatically closes after a single duel/replay
Product: Wine
Version: unspecified
Platform: x86
OS/Version: Mac OS X
Status: UNCONFIRMED
Severity: major
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: yazzie.alden(a)yahoo.com
Classification: Unclassified
Created attachment 45565
--> http://bugs.winehq.org/attachment.cgi?id=45565
program error to YGOPro Percy
Closes application after a single duel or replay.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=36828
Bug ID: 36828
Summary: Multiple DirectX11 games need D3D11CreateDevice
implementation with D3D_FEATURE_LEVEL_11_x support
(Sniper Elite 3)
Product: Wine
Version: 1.7.21
Hardware: x86
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: directx-d3d
Assignee: wine-bugs(a)winehq.org
Reporter: focht(a)gmx.net
Hello folks,
a collector bug to capture all games that require/request
D3D_FEATURE_LEVEL_11_x support through 'D3D11CreateDevice'.
Bug 34008 is about D3D_FEATURE_LEVEL_10_x support
'Sniper Elite 3' requires DirectX 11, it complains with 'Failed to initialise
D3D11; Error Code 0' message box.
--- snip ---
...
fixme:d3d11:D3D11CreateDevice stub: adapter (nil), driver_type
D3D_DRIVER_TYPE_HARDWARE, swrast (nil), flags 0, feature_levels 0x33fd10,
levels 0x3, sdk_version 7, device 0xd712f4, feature_level (nil), context
0xd712f8
55 return E_OUTOFMEMORY;
Wine-dbg>bt
Backtrace:
=>0 0x7edfd01b D3D11CreateDevice+0xb4(adapter=(nil),
driver_type=D3D_DRIVER_TYPE_HARDWARE, swrast=(nil), flags=0,
feature_levels=0x33fd10, levels=0x3, sdk_version=0x7, device=0xd712f4,
feature_level=(nil), context=0xd712f8)
[/home/focht/projects/wine/wine.repo/src/dlls/d3d11/d3d11_main.c:55] in d3d11
(0x0033fcd4)
1 0x0040cd00 in sniperelite3 (+0xccff) (0x0033fd20)
2 0x00958919 in sniperelite3 (+0x558918) (0x0033fd2c)
3 0x009f7429 in sniperelite3 (+0x5f7428) (0x0033fd54)
4 0x00937a07 in sniperelite3 (+0x537a06) (0x0033fd70)
5 0x00631ef1 in sniperelite3 (+0x231ef0) (0x0033fd8c)
6 0x00a1d9c1 in sniperelite3 (+0x61d9c0) (0x0033fe20)
7 0x7b863ddc call_process_entry+0xb() in kernel32 (0x0033fe38)
...
Wine-dbg>p *feature_levels
D3D_FEATURE_LEVEL_11_0
--- snip ---
Interestingly, the call site looks like it's able to pass
D3D_FEATURE_LEVEL_10_x too but currently there is no way to influence this from
command line (the global variable responsible for this is only read).
Maybe there will be a command line option with a later game update, that allows
to force the game into 'DirectX10' feature level.
Regards
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=28932
Bug #: 28932
Summary: Screamer Radio, language selection works incorrectly
Product: Wine
Version: 1.3.31
Platform: x86
URL: http://www.screamer-radio.com/download/file/screamer04
4.exe
OS/Version: Linux
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: -unknown
AssignedTo: wine-bugs(a)winehq.org
ReportedBy: ocean04(a)suomi24.fi
Classification: Unclassified
It suggests "Turkish" for default language. When I select English, it still
selects something else?
Works fine in WinXP
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=41033
Bug ID: 41033
Summary: Unimplemented function
api-ms-win-crt-runtime-l1-1-0.dll.set_terminate need
by Battle.net
Product: Wine
Version: 1.9.15
Hardware: x86
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: api-ms-win-*
Assignee: wine-bugs(a)winehq.org
Reporter: audiger(a)live.fr
Distribution: ---
Created attachment 55206
--> https://bugs.winehq.org/attachment.cgi?id=55206
Error
Now this bug: https://bugs.winehq.org/show_bug.cgi?id=40905 has been resolved,
I built a custom version with the patch to resolve it. But now when I launched
Battle.net I got a new error.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.