Commit Graph

60815 Commits

Author SHA1 Message Date
Adrien Destugues
32158f3d64 Fix test_app_server build.
Fixes #15536.
2019-12-31 13:15:30 +01:00
Adrien Destugues
620d0707d7 intel_extreme: probe DVI port C as well.
Might help with #15537.
2019-12-31 12:47:49 +01:00
Kyle Ambroff-Kao
fbc30e9145 support/String: Revert 6c67c7d63 to fix double-free
6c67c7d63 was attempting to fix a leak caught by a static analysis
tool, but it actually just introduced a double-free bug. Running
`UnitTester BString` will result in a crash.

The original code was correct because, in the event that realloc()
fails in BString::_Resize(), the value of fPrivateData is still
retained. It will be freed by the destructor of BString only if
fPrivateData is not shared by another BString instance, since BStrings
are copy-on-write.

Note that while the change in 6c67c7d63 caused tests to fail, that
doesn't mean those tests are ideal. They only trigger
BString::_Resize() to fail because they depend on implementation
details of hoard2 which limits allocations via malloc() to
1GB. Most malloc() implementations will allow allocations of arbitrary
sizes using anonymous mappings (mmap on Linux, or create_area() in
Haiku). This is a much bigger change, so for now I'm just adding some
comments so that we can revisit these tests if we make a change to the
allocator.

Change-Id: I208c1c7a76b6b4409d237b911c62bb3198e49dab
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2060
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-12-31 11:03:59 +00:00
Adrien Destugues
8d663f4d33 intel_extreme: fix PLL limits again
In hrev53618 I swapped both the LVDS and SVDO limits for i9xx to be in
the same order (always use "min" for the smallest value and "max" for
the largest, both for dividers and multipliers). But I missed the fact
that P2 is not searched for values in the range as are the other
parameters.

So, the code that picks the appropriate P2 value needs to be adjusted
accordingly. Now that this is clear, put the values always in the same
order (smallest value in "min", largest value in "max") and adjust the
code to comute P2.

Fixes #15573.
2019-12-31 12:00:40 +01:00
X512
9ca1f3a903 app_server: don't focus the window on mouse down if it accepts first click
* matches BeOS behaviour. Fixes #15544.

Change-Id: I2a3636024753b53ba9ad6446c187e6a4479c31b6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2020
Reviewed-by: John Scipione <jscipione@gmail.com>
2019-12-31 09:28:59 +00:00
Augustin Cavalier
c9606abe0c boot_loader: Add an error message to the "Continue booting" item.
This way, when it is disabled, at least there will be an error
message giving some indication of what has gone wrong.
2019-12-30 19:07:21 -05:00
Augustin Cavalier
94d36145df mount_server: Remove the scary warning for BFS partitions.
Even if we are still not so sure about the veracity of other
filesystem drivers, the BFS driver has had no reported corruption
bugs for quite some time (almost 2 years I think). In fact the
only real corruption issues heard of recently are from KDLs,
which are also a vanishing issue.

So, disabling the warning entirely for BFS partitions probably makes
sense at this point.

Change-Id: I5470c956d57b90ea00b647bf15299ba606ba01c4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1822
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-27 23:04:54 +00:00
Joachim Mairböck
80df503d1d sis19x: Fix build on gcc2
Declare loop variables before the for loops to be compatible with C89.

Fixes #15583.

Change-Id: If2a3b4447a88bb2e65c5ff4166f32df1b26fd859
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2058
Reviewed-by: Alexander G. M. Smith <agmsmith@ncf.ca>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-27 22:21:46 +00:00
Zotyamester
a9e97bc01f Remove 'always true' if statements (PVS 547)
Change-Id: I8d50e0ca48b48e4ce5091efee65949c6d65099a3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2057
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-12-27 13:40:05 +00:00
Adrien Destugues
d9e196c7f5 DefaultMediaTheme: move controls to a namespace
They have generic names and are likely to conflict with other things. In
particular, there is another BPrivate::TitleView in BColumnListView,
which results in weird behavior (and me wasting days debugging things
and scratching my head) when one links libmedia before libcolumnlistview
and the wrong one ends up being called.
2019-12-26 22:54:54 +01:00
Humdinger
6f46a20613 AboutHaiku: added credits for Portuguese + Brazilian
Added Victor Domingos and "zeru". Thanks, guys!
2019-12-26 09:12:17 +01:00
Augustin Cavalier
978182e00a sis19x: Add szharski to the copyright header.
He wrote the original version of haiku_sge_get_mac_addr_apc.
2019-12-25 19:01:50 -05:00
Augustin Cavalier
ca869f7df6 sis19x: Add glue mechanism for get_mac_addr_apc.
The PCI enumeration functions are not implemented in the compat layer,
so we need a glue function that performs the Haiku equivalent here.
This code existed in the old Haiku-native driver, so it's just
copied from there.
2019-12-23 16:34:45 -05:00
Augustin Cavalier
21a5c628fb XHCI: Add buffer count to "unable to allocate" trace, fix freeing.
FreeDescriptor needs to know buffer_size and buffer_count,
so we have to initialize these for the fail-exit case to work.
2019-12-23 15:32:26 -05:00
Augustin Cavalier
93904285cf USB: Add overall timeout to the PhysicalMemoryAllocator.
The within-an-attempt timeout did not successfully break up
deadlocks that occur on a system with a lot of USB transfers
going, as we may never hit 2 seconds in between wake-ups,
but the size requested may be un-fulfillable regardless.

So, now we have a 2-second overall timeout. This fixes
the system freeze in #15569, but now attached USB disk
drives enter a Stall state, making the system unusable
anyway.
2019-12-23 15:31:34 -05:00
Augustin Cavalier
a77769a549 USB: Rework the PhysicalMemoryAllocator to use MutexLocker.
No functional change, but will make some subsequent
changes easier and more fail-proof.
2019-12-23 15:29:43 -05:00
Augustin Cavalier
006add310a boot_loader: Fix initializing old package volume states.
In hrev53370, leavengood refactored this function out of
PackageVolumeInfo::SetTo(). Inside that function, there
is a "state" variable which is initialized to the first,
default state, which is always the head state.

Refactoring it out of there and changing this to NULL meant
that GetNext would always return a NULL state, so the
states would never be initialized, and booting from an
old state would thus not be possible.

Fixes #15380.
2019-12-23 14:25:02 -05:00
Augustin Cavalier
470db787dc BuildFeatures: Remove the gnuefi build feature.
Now unused since the switch to the Fuchsia EFI headers.
2019-12-23 12:38:47 -05:00
Adrien Destugues
7a202ae8fc DeskCalc: fix translation of key labels
The labels were never actually translated, only marked for use in
catalogs. Moreover, all the keys were sent as a single string, which is
unconvenient for translation and requires useless parsing in the code.

Use an array of strings instead, which is simpler.

There is a change to the archiving format, instead of storing the whole
keymap, only its name is stored. For backwards compatibility, if we
detect "ln" at the start of the string we use scientific mode.

Change-Id: I566d8d51e8ac6e780fc25207aad1dfa7ff737988
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2049
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-22 21:01:51 +00:00
Adrien Destugues
4766e7fe56 Tracker InfoWindow: collapse borders and make resizable
Fixes #15344.

Change-Id: I3560137248babb88e9475efb775675decb4d1181
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2050
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-22 20:59:26 +00:00
Jérôme Duval
d7690f68a8 userlandfs: ReadAttr() with user_memcpy()
should fix #14969

Change-Id: Iaf4e1362841b65cb56f112d379db041ef3d8ab08
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2047
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-22 11:35:57 +00:00
Kyle Ambroff-Kao
39147a617f write_overlay: Fix SMAP violation in OverlayInode::Read
Change-Id: I66d852008a4375bb9295bc0238ed6289fb8439d5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2046
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2019-12-22 11:00:48 +00:00
Jessica Hamilton
51429f0417 kernel/efi: Drop device_set_path_end. Fixes booting Haiku with EFI under qemu
Change-Id: Iafa6cf064675d5f2beb134a6c6a906d137c70dc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2040
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2019-12-22 10:59:34 +00:00
Alexander von Gluck IV
485b5cf8bc efi: Refactor our EFI code to use fuchsia's cleaner EFI headers.
* Drop gnu-efi

Change-Id: Ib601fc8ced49b18281b6b98cf861a5aef1b9c065
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2026
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-22 10:59:34 +00:00
Jérôme Duval
571148258b hmulti_audio.media_addon: stop the output thread on BTimedEventQueue::B_STOP
fix #15263

Change-Id: Icd305668365067a89f3f952465bfe2aef84e8d0e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2045
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-21 20:33:11 +00:00
Jérôme Duval
b073975e18 media: fix 64-bit debug build
Change-Id: Ie8c19fc5f067da9973cc52ec4c787a4ad36e390c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2044
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-21 20:33:11 +00:00
Jérôme Duval
0749734769 launch_daemon: don't relaunch when a shutdown is in progress
Change-Id: Ice0dd504f65f592eb64ec0e2192ef42b88486daa
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2043
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-21 20:32:31 +00:00
Jérôme Duval
feeb4b5d93 RosterPrivate: add IsShutDownInProgress()
enable to check whether a shutdown process is in progress.

Change-Id: I8efdddb3caa80e9fd188f202b6e92a888a7608e5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2042
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-12-21 20:32:31 +00:00
Zotyamester
a02f7c7bae Terminal: Fix double-freed memory
The base problem was, that every time I opened KeyMap while a Terminal
was opened too, it eventually crashed. I followed along the trace and
found that the code first frees the keymap and keymapchars in the
_UpdateKeymap() and then calls SetKeymap for every tab opened which
also tries to free the old keymap and keymapchars.

TermWindow's _UpdateKeymap() method first frees the old keymap and keymapchars:

delete fKeymap;
delete[] fKeymapChars;

and then calls SetKeyMap for every tab which tries to free the old keymap and keymapchars again:

for (int32 i = 0; i < fTabView->CountTabs(); i++) {
	TermView* view = _TermViewAt(i);
	view->SetKeymap(fKeymap, fKeymapChars);
}

So TermView simply is not responsible for the memory, it merily has a pointer.

Fixes #15502.

Change-Id: Id08c863d811fbb72cce9be4c8fff2d3eb5f0064f
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2037
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-12-21 16:49:45 +00:00
Autocomitter
eeb89ccd8b Update translations from Pootle 2019-12-21 08:48:38 +00:00
Michael Lotz
ca93f8fbc2 Fix leaking the IO context buffer when opening input fails.
The context buffer needs to be freed manually. This was already done
correctly in the destructor, but was missing from the error case.
This lead to a leak of at least 32K for the initial allocation or
potentially a lot more, depending on how much avformat_open_input
extended it for probing.

Change-Id: Ib4c751c7de9430926ae82b397803ac93ecfffe5d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2038
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-12-20 21:04:04 +00:00
Panagiotis Vasilopoulos
1ae464b9cf PVS 583: removed unnecessary ternary operator
Change-Id: I8f2b93863e6379e998b974c86980b712a8c1b12e
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2022
Reviewed-by: François Revol <revol@free.fr>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-17 07:49:21 +00:00
Augustin Cavalier
6302cfeda2 sis19x: Replace native driver with the one from FreeBSD 12.
As per #15550, it seems the native driver does not work and causes
the system to lock up. Hopefully the FreeBSD driver will fare better.
2019-12-16 18:43:10 -05:00
X512
bb501d4c74 BTextView and BListView: fix scripting
fix #15539

Change-Id: I5139b91214e19b35af1ead203c070837b7a15bd9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2017
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2019-12-16 09:51:16 +00:00
Autocomitter
2b2bfa3f27 Update translations from Pootle 2019-12-14 08:42:48 +00:00
Alexander von Gluck IV
ed7204fad2 gpt: Correct naming. efi_* also conflicts with some efi headers
Change-Id: I19b5b2c4609da8474b26588ae8d7d4caf72a826b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2018
Reviewed-by: Fredrik Holmqvist <fredrik.holmqvist@gmail.com>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
2019-12-13 23:53:07 +00:00
Jérôme Duval
418e068de3 Terminal: fix TermView scripting
fix #15532.

Change-Id: I342d72c8de7a4e352329adb0510e3c7341702ef7
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2016
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2019-12-13 13:12:36 +00:00
bitigchi
07161b817b Fix qt mark/Add TR Lira Symbol/Add non-break space
On Turkish F layout Shift+2 produces single quote, although it
should return double quotation mark. Probably this is a result
of an error whilst copying from Turkish Q layout.

Turkish Lira Symbol has been added to the both layouts,
produceable with ALT GR+T, as this is the standard combination
on Turkish layouts.

I've also noticed that most of the keys produce a whitespace with
the ALT+GR modifier, fixed that one as well.

This commit also adds non-breaking space to ALT GR+Space modifier

Change-Id: I9eb47ae70449c75b15b551f081f8767b1ab03cc5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2004
Reviewed-by: John Scipione <jscipione@gmail.com>
2019-12-12 07:57:40 +00:00
Adrien Destugues
baa739985b FileGameSound: remove superfluous parentheses.
Pointed out by Axel on haiku-commits.
2019-12-11 13:24:39 +01:00
Alexander von Gluck IV
f2ad50f6a2 repo/ppc: Sync up repo to fix build.
* This doesn't make sense.. I know. See #15498

Change-Id: I280224ec9b7a4f8d91c9031f51073af8112f2d67
2019-12-10 13:43:34 -06:00
Alexander von Gluck IV
6f9861ccf7 docker/bootstrap: Add missing autopoint tools
Change-Id: I3dd3de1611f55d92b1f3c1edde28d4807a5aec8a
2019-12-09 13:45:14 -06:00
Alexander von Gluck IV
5c9ee5d028 docker/bootstrap: rename init to prep to be consistent
Change-Id: Ie6dc9061b13b23997f84a1ffe886d7e09c242cf0
2019-12-09 13:45:14 -06:00
Naba7
a8edaa2b21 Add some documentation for BUrl.
Change-Id: I9db68f77d80c246fce5011247471972c3f1bf68a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1419
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2019-12-09 19:00:20 +00:00
Alexander von Gluck IV
b84574958d 3rdparty/docker/bootstrap: Fix a few potential mis-steps during the bootstrap init
Change-Id: I381fd7c00957e9d6797b0a79beacdef981593d3f
2019-12-09 10:28:45 -06:00
Kacper Kasper
c67dde0f2c app_server: Add tiled bitmap drawing routines
Change-Id: I9a7bd967f2cc95d815a66707b764cf5e33b3f8ed
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1962
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-09 12:22:28 +00:00
John Scipione
4dcc9761a7 Screen prefs: Center Workspaces Columns and Rows
... limiting spinner textbox width instead of growing arbitrarily.

Change-Id: I8eaff4e8c43116a7fff51f21e4713b9b71efefb9
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1982
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-09 12:21:48 +00:00
Adrien Destugues
69f814cded BFileGameSound: allow initializing from a BDataIO
There is no reason to not allow this, and it makes it possible to load
data from eg. a BResource instead of a file, which is very useful.

Remove some unused members in the class and dead code, and fix style
issues.

Change-Id: I94cbd0c13c469ea80f55028cf33dfde2de4365ef
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2001
Reviewed-by: Stephan Aßmus <superstippi@gmx.de>
2019-12-09 12:00:17 +00:00
Andrew Lindesay
041bbff9b0 HaikuDepot: Better Logging of Cache File Creation
A user has reported having some problems around
initial use of HaikuDepot and this seems to be
related to setup of the directories etc... at
start time.  This change should improve the
logging so that it is easier to identify the
cause.  Also some additional locking has been
introduced as there might be a problem where two
threads are creating the same directory at the
same time.

Relates to #15493

Change-Id: I4cbfda7c2ce87b8509ceb78788b7995ee3185050
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1980
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-08 09:43:20 +00:00
Murai Takashi
4de612c9b5 bin/debug/profile: Fix -Wformat=
Change-Id: I94f9e4e68b75a7b84883d1bb7fe3f4e0aa7c6b8a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1563
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-07 16:06:50 +00:00
Murai Takashi
7f58661749 userlandfs/server/beos : Fix -Wformat=
Change-Id: Ic39bf1cc28a94ef8d338c90ea357091e63e7c6e4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1561
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-12-07 16:06:33 +00:00