Commit Graph

7758 Commits

Author SHA1 Message Date
David Anderson d1a3243f57 - client: fix small bug that could interfere with work fetch
on hosts with both NVIDIA and ATI GPU

svn path=/trunk/boinc/; revision=20283
2010-01-27 19:06:40 +00:00
Charlie Fenton 0402d3a93a GR: Fix minor bugs in Mac accessibility reporting kAXWindowAttribute and kAXTopLevelUIElementAttribute
svn path=/trunk/boinc/; revision=20276
2010-01-27 11:00:32 +00:00
Charlie Fenton 8d597082c3 Update sandbox documentation
svn path=/trunk/boinc/; revision=20275
2010-01-27 08:57:37 +00:00
Charlie Fenton a34e16f3a9 Mac Sandbox: To protect authenticators in init_data.xml files, make slots directory group boinc_project and not world-executable,
svn path=/trunk/boinc/; revision=20272
2010-01-27 07:50:07 +00:00
Charlie Fenton e236d3dc22 Mac Sandbox: To protect authenticators in init_data.xml files, make slots directory group boinc_project and not world-executable,
svn path=/trunk/boinc/; revision=20271
2010-01-27 07:38:29 +00:00
David Anderson 04b8cf965f - web: assume all translation files are UTF-8
svn path=/trunk/boinc/; revision=20270
2010-01-27 04:04:17 +00:00
David Anderson 42683a8a31 svn path=/trunk/boinc/; revision=20269 2010-01-27 03:55:46 +00:00
David Anderson b7a07f87a7 - client: when launching app, delete init_data.xml using switcher
prior to trying to write it,
    in case it's owned by another user (e.g., boinc_project)

svn path=/trunk/boinc/; revision=20267
2010-01-26 00:21:57 +00:00
David Anderson 67e438bc6b - transitioner: fix bug where WUs with error_mask <> 0 keep
transitioning every 10 days, hence never become eligible for purging.
    The problem: the transitioner has a "safety net" where,
    if the WU doesn't have a canonical result,
    it arranges for another transition in 10 days.
    Skip this if error_mask<>0.

svn path=/trunk/boinc/; revision=20265
2010-01-25 23:35:16 +00:00
David Anderson 6b3ea3d339 - user web: don't show "database error" if result refers
to deleted app version

svn path=/trunk/boinc/; revision=20251
2010-01-23 00:36:12 +00:00
David Anderson 974ea0469c - DB purge: allow fractional min_age_days (from Travis Desell)
svn path=/trunk/boinc/; revision=20250
2010-01-22 23:55:50 +00:00
David Anderson 03be4edeab - user web: clean up LANG_NAME_* mess
svn path=/trunk/boinc/; revision=20248
2010-01-22 18:09:05 +00:00
Bernd Machenschalk 994950d83d lib: add cal.h to install headers
svn path=/trunk/boinc/; revision=20245
2010-01-22 13:48:40 +00:00
Charlie Fenton bf2e31b6e9 Mac Sandbox: to hide authenticators, make most *.xml files not world-readable
svn path=/trunk/boinc/; revision=20242
2010-01-22 12:34:04 +00:00
Bernd Machenschalk b254fae6a6 lib: Updated Makefile.mingw to include coproc.cpp/h
svn path=/trunk/boinc/; revision=20228
2010-01-21 14:33:43 +00:00
Charlie Fenton ebf83cdd54 MGR: Implement Mac accessibility for Event Log
svn path=/trunk/boinc/; revision=20227
2010-01-21 12:47:09 +00:00
David Anderson b5124fe729 - client: brute-force attempt at eliminating domino-effect preemption:
if job A is unstarted and EDF,
    and there's a job B that is later in the list,
    is started, has the same app version,
    and has the same arrival time,
    move A after B.
- client: remove the "temp_dcf" mechanism,
    which had the same goal but didn't work.
- client: in computing overall debt for a project,
    subtract a term that reflects pending work.
    This should reduce repeated fetches from the same project.
- client simulator: tweaks

svn path=/trunk/boinc/; revision=20223
2010-01-21 00:14:56 +00:00
David Anderson fe7d8b34f3 - client simulator: done for now
svn path=/trunk/boinc/; revision=20204
2010-01-20 06:35:57 +00:00
David Anderson eeffc6de96 - web: translation fix from Nicolas:
"There is a bug in tra() that causes problems if one of the arguments
    contains a replacement marker itself. For example, if the first
    argument contains an encoded URL, which contains '%2', the second
    argument may appear in the middle of the URL."
- client simulator: further fiddling around.  Not done.

svn path=/trunk/boinc/; revision=20201
2010-01-19 23:01:09 +00:00
David Anderson e8f230b4a3 - API: fix crashing bug. There was a leftover memset(aid, 0)
in boinc_parse_init_data_file()
- client sim: make it work again

svn path=/trunk/boinc/; revision=20199
2010-01-19 18:43:17 +00:00
Rom Walton ad60b45f72 - lib: Don't allow the diagnostics threads to be suspended, if a crash happens within
the remaining thread the process will deadlock.

    lib/
        diagnostics.h
        diagnostics_win.cpp
        win_util.cpp

svn path=/trunk/boinc/; revision=20198
2010-01-19 17:22:46 +00:00
David Anderson e2d3f75eef - client and user web: finish the above.
Should add the Adv Prefs dialog as well.

svn path=/trunk/boinc/; revision=20193
2010-01-19 00:38:31 +00:00
David Anderson 20d6b06f5f - client: initial checkin for "don't compute if CPU usage above X"
svn path=/trunk/boinc/; revision=20192
2010-01-19 00:03:38 +00:00
David Anderson 3db80eb5c1 - API: fix crashing bug. Don't memset(0) APP_INIT_DATA;
it contains HOST_INFO, which now contains COPROCS,
    which has a vector.
    Define a clear() for APP_INIT_DATA.

svn path=/trunk/boinc/; revision=20191
2010-01-18 23:01:43 +00:00
David Anderson 956c955639 - scheduler: use COPROC_REQ instead of COPROC when parsing
anonymous-platform app versions.
    Otherwise fractional GPU requirements get truncated to zero.
    Thanks to Crunch3r for identifying the problem.
    

svn path=/trunk/boinc/; revision=20189
2010-01-18 19:22:03 +00:00
Rytis Slatkevičius d6d8037f5d user web: do SQL escaping before storing prefs in the database as some projects store user-editable strings in the preferences.
svn path=/trunk/boinc/; revision=20188
2010-01-18 15:19:23 +00:00
David Anderson 0c1a1421f8 - scheduler/feeder: if any client version number field
(min_core_version etc.) is < 10000,
    multiply it by 100 and print a warning.

svn path=/trunk/boinc/; revision=20187
2010-01-18 04:52:58 +00:00
Charlie Fenton c19625db3a Mac Installer: fix bug launching client when configured as a service
svn path=/trunk/boinc/; revision=20185
2010-01-17 00:44:01 +00:00
David Anderson 4ab335eb49 - user web: make a bunch of strings translatable (from Nicolas)
svn path=/trunk/boinc/; revision=20180
2010-01-16 06:19:19 +00:00
David Anderson e7dcff182f - web DB code: fix PHP warning when enumeration returns nothing.
From Nicolas. fixes #974
- client: tiny code shuffle

svn path=/trunk/boinc/; revision=20178
2010-01-15 23:08:55 +00:00
Rom Walton efd60237f4 - MGR: Use an event handler, the function overload is deprecated.
clientgui/
        ViewNotices.cpp,h

svn path=/trunk/boinc/; revision=20152
2010-01-14 17:48:39 +00:00
David Anderson dba395d5ce - manager: in Notices tab, direct links to default web browser
svn path=/trunk/boinc/; revision=20151
2010-01-13 19:03:54 +00:00
David Anderson bbe7c2ea08 - scheduler: close DB connection on SIGTERM (from Bernd M.)
svn path=/trunk/boinc/; revision=20150
2010-01-13 18:40:43 +00:00
David Anderson 737952dbb5 - server: client version numbers are represented as
10000*major + 100*minor + release,
    rather than 100*major + minor.
    Sometimes you need release-level resolution.
    This affects:
    - app_version.min_core_version
    - config: min_core_client_version_announced
    - config: min_core_client_version
    Projects using these must multiply them by 100.

svn path=/trunk/boinc/; revision=20149
2010-01-13 17:28:59 +00:00
Charlie Fenton 505d099812 MGR: Fix tools menu when using account manager and switching Simple to Advanced View; update XCode project for ViewNotifications* -> ViewNotices*
svn path=/trunk/boinc/; revision=20147
2010-01-13 09:30:21 +00:00
David Anderson 564cd7cece - Notices: put message bodies inside CDATA
- XML_PARSER: handle CDATA

svn path=/trunk/boinc/; revision=20146
2010-01-13 05:32:11 +00:00
David Anderson ee343cea02 - client: small tweak to work fetch:
if project has crazy DCF, don't automatically request 1 sec;
    only request work if there's a shortfall.
- intermediate checkin for notices stuff

svn path=/trunk/boinc/; revision=20145
2010-01-12 21:53:40 +00:00
David Anderson 92fe442f51 - manager: "Notifications" => "Notices". Consistent terminology.
svn path=/trunk/boinc/; revision=20142
2010-01-12 18:57:38 +00:00
David Anderson f10384af43 - client: add <stderr_head> config option;
sends the first rather than last 64KB of stderr to server.
    This doesn't belong here; this choice should come from the server.
    I may take this out later.
- user web: when add a private message, always add a notification

svn path=/trunk/boinc/; revision=20141
2010-01-12 18:39:59 +00:00
Bernd Machenschalk b207fe88fc - Limit the number of files to be deleted in one 'antique
deletion' pass to 50000 (can be changed with -delete_antiques_limit).
  Previously large number of antiques led to not deleting any at all.
- Allow to change the interval between passes with -delete_antiques_interval.

svn path=/trunk/boinc/; revision=20138
2010-01-12 12:31:23 +00:00
Charlie Fenton 28c3b28fd8 Fix typo in checkin notes
svn path=/trunk/boinc/; revision=20133
2010-01-12 11:37:58 +00:00
Charlie Fenton fcf85c9c83 client sandbox: set LD_LIBRARY_PATH and DYLD_LIBRARY_PATH in switcher
svn path=/trunk/boinc/; revision=20131
2010-01-12 11:34:15 +00:00
David Anderson 0255297345 - API: if app can't acquire lock file, tell the client not
to restart app for 10 minutes.
    Hopefully what will happen is:
    - another instance of app is running in slot dir
        (shouldn't happen, but sometimes does)
    - that app will eventually finish, and will write
        a checkpoint file saying so.
        It will call boinc_finish(0), but the client won't notice
        that it has exited.
    - the next time the client starts the app,
        it will acquire lock, see that it's done,
        and call boinc_finish(0).
        This time the client will notice,
        and the job will be reported as correct.
    The downside to all this is that the client won't know
    that the CPU is in use, and will schedule NCPUS jobs.

svn path=/trunk/boinc/; revision=20128
2010-01-11 20:52:55 +00:00
David Anderson c27f2486e7 - fix python deprecation warning (from Jeremy Cowles)
svn path=/trunk/boinc/; revision=20122
2010-01-11 06:10:17 +00:00
David Anderson da6b6b33fe - client: fix notification display logic
svn path=/trunk/boinc/; revision=20119
2010-01-10 21:57:15 +00:00
David Anderson 335f5506a9 - user web: make user search translatable
svn path=/trunk/boinc/; revision=20118
2010-01-10 04:28:54 +00:00
David Anderson d6b6f8d5db - client (Mac): append /usr/local/cuda/lib to LD_LIBRARY_PATH
and DYLD_LIBRARY_PATH
- client simulator: compile fixes

svn path=/trunk/boinc/; revision=20117
2010-01-09 16:41:17 +00:00
Charlie Fenton 8b3e60d8e6 MGR: When Event Log is open, do get_messages RPC once per second but do view-specific periodic RPCs at their normal View refresh rate
svn path=/trunk/boinc/; revision=20111
2010-01-09 02:52:48 +00:00
Charlie Fenton f8e7683427 MGR: Separate refresh of Event Log from refresh of tabs; Update Notices tab only when data changed; Clean up some async RPC logic
svn path=/trunk/boinc/; revision=20110
2010-01-09 01:42:46 +00:00
Charlie Fenton 10a8041371 client: Fix another crash bug due to calling memset(this, 0, sizeof(*this)) when the data contains a std::string
svn path=/trunk/boinc/; revision=20109
2010-01-09 00:13:12 +00:00