java – Some lines of code crash my game

It's been about a month since I learned to java and the game dev and I stop. For some reason, having this line of code in my character class causes the game to crash almost immediately after it's launched, though eclipse does not show any errors and I do not see what's wrong not.

        public class Character {

floating public TDRFire;

Character (string name, int level, clipboard statistics, equipment, animations, Gridset gref) {

// total resists
TDRFire = gear.Shield.resists.fireRes * gear.Helm.resists.fireRes * gear.Torso.resists.fireRes *
gear.Gloves.resists.fireRes * gear.Shoes.resists.fireRes * gear.Ring1.resists.fireRes * gear.Ring2.resists.fireRes;
}
}

What he is supposed to do is take the DMG resistance modifier for each gear slot and multiply it to get the character's total damage resistance. I can not see what's wrong with that.

I've cut all the stuff that is obviously irrelevant.

Mysql 5.7.25 crash during the first query on the corrupted innodb table

Install:

Ubuntu 18.04.1 LTS
4.15.0-34-generic # 37-Ubuntu
Docker: 18.06.1-this build e68fc7a
mysql: 5 @ sha256: e47e309f72c831cf880cc0e1990b9c5ac427016acdc71346a36c83806ca79bb4

mysql --version = Ver 14.14 Distrib 5.7.25, for Linux (x86_64) using the EditLine wrapper

Log:

07:17:39 UTC - mysqld has signal 11;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries to which it was linked is corrupt, poorly constructed,
or wrongly configured. This error can also be caused by hardware malfunction.
Attempt to collect information that can help diagnose the problem.
Since this is a crash and something is really wrong, the information
collection process may fail.

key_buffer_size = 8388608
read_buffer_size = 131072
max_used_connections = 6
max_threads = 151
thread_count = 5
number_connection = 5
It is possible that mysqld uses up to
key_buffer_size + (read_buffer_size + sort_buffer_size) * max_threads = 68196 KB of memory
I hope it goes otherwise, decrease some variables of the equation.

Thread Pointer: 0x7f9814012240
Trace attempt. You can use the following information to discover
where mysqld is dead. If you do not see any message after that, something has happened
terribly wrong ...
stack_bottom = 7f98580a4e80 thread_stack 0x40000
mysqld (my_print_stacktrace + 0x2c)[0x560da4deb81c]
mysqld (handle_fatal_signal + 0x479)[0x560da4716879]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x110c0)[0x7f987679b0c0]
mysqld (_Z32page_cur_search_with_match_bytesPK11buf_block_tPK12dict_index_tPK8dtuple_t15page_cur_mode_tPmS9_S9_S9_P9page_cur_t + 0x167)[0x560da4eb2be7]
mysqld (_Z27btr_cur_search_to_nth_levelP12dict_index_tmPK8dtuple_t15page_cur_mode_tmP9btr_cur_tmPKcmP5mtr_t + 0x989)[0x560da4fd81a9]
mysqld (+ 0xe682d9)[0x560da4f2c2d9]
mysqld (_Z15row_search_mvccPh15page_cur_mode_tP14row_prebuilt_tmm + 0x1b9e)[0x560da4f3307e]
mysqld (_ZN11ha_innobase10index_readEPhPKhj16ha_rkey_function + 0x244)[0x560da4e2ee24]
mysqld (_ZN7handler17ha_index_read_mapEPhPKhm16ha_rkey_function + 0x30f)[0x560da476830f]
mysqld (+ 0xac68f4)[0x560da4b8a8f4]
mysqld (_Z10sub_selectP4JOINP7QEP_TABb + 0x105)[0x560da4b8dbb5]
mysqld (_ZN4JOIN4execEv + 0x370)[0x560da4b86a30]
mysqld (_Z12handle_queryP3THDP3LEXP12Query_resultyy + 0x233)[0x560da4bf5eb3]
mysqld (+ 0x61cf32)[0x560da46e0f32]
mysqld (_Z21mysql_execute_commandP3THDb + 0x460d)[0x560da4bb972d]
mysqld (_Z11mysql_parseP3THDP12Parser_state + 0x395)[0x560da4bbbff5]
mysqld (_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command + 0xfc4)[0x560da4bbd0b4]
mysqld (_Z10do_commandP3THD + 0x197)[0x560da4bbe487]
mysqld (handle_connection + 0x278)[0x560da4c7af38]
mysqld (pfs_spawn_thread + 0x1b4)[0x560da5153164]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7494)[0x7f9876791494]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f9874fddacf]

Try to get variables.
Some pointers may be invalid and cause the dump to abort.
Query (7f98141c3520): SELECT `id`,` state`, `param`,` cursor_row`, `cursor_column`,` can_send`, `createdAt`,` updatedAt`, `userId`,` botId` FROM & # 39; states` AS `state` WHERE` state`.`userId` = 131913 AND` state`.`botId` = 3202 LIMIT 1
Connection ID (thread ID): 863486
Status: NOT_KILLED

The man page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you discover the cause of the crash.

Probably unrelated, but repeated a lot:

2019-06-12T14: 52: 32.090130Z 0 [Note] InnoDB: page_cleaner: the expected loop of 1000 ms took 10295ms. The settings may not be optimal. (rinsed = 9 and expelled = 0, during the time.)
2019-06-12T14: 53: 56.177026Z 0 [Note] InnoDB: page_cleaner: the expected loop of 1000 ms took 8427ms. The settings may not be optimal. (rinsed = 200 and expelled = 0, during the time.)
2019-06-12T15: 03: 05.055209Z 0 [Note] InnoDB: page_cleaner: The expected loop of 1000 ms took 6080ms. The settings may not be optimal. (rinsed = 3 and expelled = 0, during the time.)
2019-06-12T15: 03: 52.398646Z 0 [Note] InnoDB: page_cleaner: the expected loop of 1000 ms took 5042ms. The settings may not be optimal. (rinsed = 168 and expelled = 0, during the time.)

more logs and settings


The default settings of the fixed menu have not been changed. It works well and queries on all unassigned tables work well, but all queries, even CHECK TABLE on the affected table has crashed the server instantly.

I did not attempt to recover data, just deleted and restored the table from backups. However, it's the second time in 2 months that this has happened (at different tables, but both were tables with more writes than others).

How can I diagnose the cause of corruption or make it less likely?

What I've checked so far:

  • The included newspaper is the first sign of a problem, the previous entry of the newspaper dates from 30 minutes before and is independent. And although the crash with a corrupted table is reproducible, I have no way of reproducing the corruption and a superior log verbosity is unideal on the production server under load.
  • dmesg | egrep -i & # 39; process killed & # 39; is empty, the box has 4 GB of ram and swap enabled. I do not think tables have been corrupted because of a deadly error in the middle of a writing.

Kernel crash when saving / recovering large files

I've encountered crashes in Mathematica 11.0.1 on a machine at work. I've spotted the problem when Mathematica uses save[fileName] or Get[fileName], but sometimes the crash occurs a few minutes after loading a file. The files I use are quite large (350 to 650 MB) and contain earlier recorded variables. Crashes seem to happen randomly, that is, sometimes the file is loaded correctly and the script ends, but sometimes it hangs with the same thing. I've checked the logs and whenever there was a crash, I was the only one on the machine to run mathematica or something else.

What is strange is that on my laptop (Mathematica v.12), I encountered no problem, and my officemate either (same version of Mathematica than the server).

Is there an option that could have been modified on the server and that could explain these problems? I do not have root access on the server.

innodb high i / o, some settings make mysql crash

I have a windows server 2012 with 16 cpu and 64 GB of RAM and 3 * 146gig sas 15k which were used as database server and which just installed mysql as part of xampp.

the version of mysql is 5.7.x

I've tried different configurations but when some parameters change, mysql does not start anyway!

1) when i put innodb_dedicated_server mysql does not start

innodb_dedicated_server = true

2) when i put innodb_buffer_pool_size, innodb_buffer_pool_instances, innodb_buffer_pool_chunk_size together mysql does not work too much

innodb_buffer_pool_size = 40G
innodb_buffer_pool_instances = 40
innodb_buffer_pool_chunk_size = 1G

but when I configure these configurations, mysql starts to work correctly (innodb_buffer_pool_instances, innodb_buffer_pool_chunk_size are commented)

port = 3306
socket = /tmp/mysql.sock
external jump-lock
key_buffer_size = 384M
max_connection = 5000
max_allowed_packet = 1M
table_open_cache = 512
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 8M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
# Try the number of CPU * 2 for thread_concurrency
thread_concurrency = 8

max_allowed_packet = 1048576


innodb_io_capacity = 2000
innodb_read_io_threads = 64
innodb_thread_concurrency = 0
innodb_write_io_threads = 64


# innodb_buffer_pool_size = 40G
# innodb_log_file_size = 2G

#innodb_dedicated_server = true

innodb_buffer_pool_size = 20G
#innodb_buffer_pool_instances = 20
#innodb_buffer_pool_chunk_size = 1G

How can I get a better performance ?!

crash – Report MacBook Pro error

I have received the following error report from my MacBook Pro:

UUID: 334D8DD6-1F4F-4E65-8D2A-D8EC96CE2E52
Reason Stackshot: The sleep transition expired after 180 seconds when you entered Darkwake before going to bed. Suspected lot: com.apple.iokit.IOGraphicsFamily. Wire 0x74.
Code of failure :: 0x9e233908 00000031

=============================================== === ===========
Date / Time: 2019-06-04 07:34:17 +0200
Operating system version: ??? ??? (To build ???)
Architecture: x86_64
Report Version: 28

Data Source: Stackshots
Shared cache: 0x104ef000 0790ECA1-FEA2-34B5-977F-9114E6FBC1CC

Event: Failed sleep wake up
Duration: 0.00s
Steps: 1

Awake time since startup: 360000s



Process: kernel_task [0]
UUID: 4170BF94-38B6-364F-A1B0-2F7C2C30F9A9
Architecture: x86_64
Version: Darwin Kernel Version 18.5.0: Monday, March 11th 20:40:32 PDT 2019; root: xnu-4903.251.3 ~ 3 / RELEASE_X86_64
Overall size: 459.76 MB
Start time: 2019-06-04 07:34:17 +0200
End time: 2019-06-04 07:34:17 +0200
Number of samples: 1 (1)

What happened? How can I prevent this in the future?

crash – My Ubuntu18.04 freezes around 10:41:13 (time) and without indication, the keyboard and mouse are also blocked

i've tried ctrl alt + f1, ctrl + alt + f2, no answer, and have to use the reset button to reset the system
here are some syslogs, I can not understand, I did not restart immediately
but after the freeze, the CPU usage at about 12% and the memory available at about 69%, no indication, has occurred 3 times in a day.

syslog:

May 21 10:38:07 xps-ubuntu dbus-daemon[1037]: [system] Activation via systemd: service name = org.freedesktop.nm_dispatcher & # 39; unit = & # 39; dbus-org.freedesktop.nm-dispatcher.service & # 39; requested by: 1.11 & # 39; (uid = 0 pid = 1062 comm = "/ usr / sbin / NetworkManager --no-daemon" label = "unconfined")
May 21 10:38:07 xps-ubuntu systemd[1]: Starting the Network Manager Script Dispatcher Service ...
May 21 10:38:07 xps-ubuntu dbus-daemon[1037]: [system] Service & # 39; org.freedesktop.nm_dispatcher & # 39; successfully activated
May 21 10:38:07 xps-ubuntu systemd[1]: Starting the Network Manager Script Dispatcher Service.
May 21 10:38:07 xps-ubuntu nm-dispatcher: req: 1 & # 39; connectivity-change & # 39 ;: new request (1 scripts)
May 21 10:38:07 xps-ubuntu nm-dispatcher: req: 1 & # 39; connectivity-change: starts running scripts ordered ...
May 21 10:38:08 xps-ubuntu whoopsie[1667]: [10:38:08] offline
May 21 10:40:20 xps-ubuntu gnome-shell[1373]: Some codes have accessed the property 'WindowPreviewMenuItem & # 39; on the module & # 39; windowPreview & # 39 ;. This property has been set with "let" or 'const & # 39; in the module. This was previously supported, but is not correct according to the ES6 standard. All symbols to be exported from a module must be defined with & var; Access to the property will work as before, but please correct your code.
May 21 10:52:21 xps-ubuntu systemd-modules-load[292]: Inserted module & # 39; lp & # 39;
May 21 10:52:21 xps-ubuntu systemd-modules-load[292]: Inserted module & # 39; ppdev & # 39;
May 21 10:52:21 xps-ubuntu systemd-modules-load[292]: Inserted module & # 39; parport_pc & # 39;
May 21 10:52:21 xps-ubuntu systemd-modules-load[292]: Inserted module & coretemp & # 39;
May 21 10:52:21 xps-ubuntu systemd[1]: Starting the Dump Log on Persistent Storage ...

kern.log:

May 21 10:26:30 kernel xps-ubuntu: [  237.968095] dell_wmi: unknown key with type 0x0010 and code 0x0041 depressed
May 21 10:26:31 kernel xps-ubuntu: [  238.998171] dell_wmi: unknown key with type 0x0010 and code 0x0041 depressed
May 21 10:52:21 Core xps-ubuntu: [    0.000000] microcode: firmware updated early to revision 0xb4, date = 2019-04-01
May 21 10:52:21 Core xps-ubuntu: [    0.000000] Linux version 4.18.0-20-generic (buildd @ lcy01-amd64-020) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) # 21 ~ 18.04.1-Ubuntu SMP Wed 8 May 08:43:37 UTC 2019 (Ubuntu 4.18.0-20.21 ~ 18.04.1-generic 4.18.20)
May 21 10:52:21 Core xps-ubuntu: [    0.000000] Command line: BOOT_IMAGE = / boot / vmlinuz-4.18.0-20-root = UUID = 0286d0a5-46b7-455f-a5ce-8d6e5ed2aa6d ro quiet splash vt.handoff = 1
May 21 10:52:21 Core xps-ubuntu: [    0.000000] KERNEL supported the processors:
May 21 10:52:21 Core xps-ubuntu: [    0.000000]   Intel GenuineIntel

I use dell xps 13 9370 with Windows pre-installed
and dual boot with Ubuntu, I also use a USB-C to USB hub and is connected to a Bluetooth mouse, by the time the screen freezes, it is also connected to an iPhone.

Is it a frontal crash or something else is wrong?

I daily evaluate several notebooks (4) simultaneously in order to perform a number of related calculations. I have been doing this for some time and have never met what I have experienced today.

I'm using v.12 recently and it's the first time I meet all kind of problem with the front-end (or any kind of problem whatsoever – I even remember thinking to myself a few days ago that this iteration is really robust and feels more stable than previous versions).

Today, I returned to my station to find that Mathematica had crashed (the application was closed) and Windows was warned of an OpenGL error.

I think the calculations were finished because before evaluating the latest notebooks in the evaluation queue, the expected output files were already stored on my local drive. I have not checked their integrity yet.

I suspect that the crash, if it is related to Mathematica, must have something to do with the display of Dataset because the last couple of Notebook evaluates and displays datasets.

So, basically, my question is

Has Mathematica v.12 encountered a crash problem under Windows 8?

"OpenGL" too many errors ""

during the simultaneous evaluation of several laptops or did any one encounter similar problems when evaluating cells containing moderate datasets?

Any help is appreciated.

PS. I've redid the calculations without adding the last two
notebooks in the evaluation queue and everything went well this time around.

Rman archive backups are suspended due to a datadomain-related problem, which causes the Linux system to crash

Dears,

We see that our Linux system has become insensitive. Meanwhile, we see since the server crash that there were 23k oracle zombie processes and lots of uninterruptible oracle processes. During further analysis, we found that more than 12 Rman archive backups were suspended for more than 3-4 hours on this, because of a hardware problem on the device of underlying backup domain and that all were killed and that someone restarted everything at the same time. Could someone tell me if you would encounter a similar problem? The backups should have been stopped during such problems, but can we be sure that the suspension of the backups caused conflicts … please note that the hardware problem on the datadomain caused the restart of datadomain device and the problems of intermittent connectivity .

widgets – an eventON plugin An AJAX call causes the crash of a website

The eventON event listing plugin causes the closure of our website when the month changes. The browser indicates that it is trying to load the site, but nothing ever shows up. The plugin is inserted using this shortcode: [add_eventon_list show_limit="yes" event_count="10" hide_past="yes" event_type="1082" accord="yes" ]. The AJAX request via WordPress returns a 200 response; the script seems to have worked. The URL of the AJAX function seems to be the cause of the problem. I have reviewed the plugin registry and located the script code, but nothing stands out for me. No other JavaScript error is displayed in the console.

Website: https://www.todayville.com

wp_register_script ('evcal_ajax_handle', $ eventon-> assets_path. 'js / eventon_script.js', array ('jquery'), $ eventon-> version, true) ;
wp_localize_script (
& # 39; & # 39 ;, evcal_ajax_handle
& # 39; & # 39 ;, the_ajax_script
board (
& # 39; ajaxurl & # 39; => admin_url ('admin-ajax.php'),
& # 39; postnonce & # 39; => wp_create_nonce (& # 39; eventon_nonce & # 39;)
)
)

Firefox console:

I understand that this may be a mixed content issue because our website is HTTPS, but other child sites using the same code via WP Network on the same domain will work without errors. I do not know why browsers use an IP address to load jQuery via a PHP script.

Chrome console:

  • Uncaught SyntaxError: Invalid or unexpected token

crash – Frozen (then crashed) Sublime Text 3 running two heavy python scripts simultaneously

I have a pretty powerful computer. For 2 years, I've been able to run several (3+) python scripts, each dealing with large amounts of data (hundreds of thousands of lines) simultaneously without any problems, using Sublime Text 3 .

But I do not know what happened and I do not remember making any changes to the installation of Sublime Text or Python. When I try to run 2 very robust python scripts, the second screen is blurred and frozen. it's finally crushed.

I've also checked in my task manager that CPU and memory usage during this run period was between 10 and 25%, with nothing being exceeded.

How to check and solve this problem? How to run multiple heavy python scripts on Sublime Text 3 without problems as before?