Azure Kinect Viewer cannot start device on HP Elitedesk 800 OS:Win10 - azurekinect

I installed Azure Kinect SDK successfully and it looks normal in Device Manager. But the Kinect Viewer cannot start the device. My machine is HP Elitedesk. OS version is Windows 10 (build version:18363). I tried on a Lenovo laptop and the Kinect Viewer works fine. So the device is not damaged. Anyone has pointer on what I can do to fix?
Device Manager view
Azure Kinect Viewer error
Log:
[ trace ] : k4a_device_start_cameras(). k4a_device_start_cameras starting
[ info ] : k4a_device_start_cameras(). Starting camera's with the following config.
[ info ] : k4a_device_start_cameras(). color_format:3
[ info ] : k4a_device_start_cameras(). color_resolution:1
[ info ] : k4a_device_start_cameras(). depth_mode:2
[ info ] : k4a_device_start_cameras(). camera_fps:2
[ info ] : k4a_device_start_cameras(). synchronized_images_only:1
[ info ] : k4a_device_start_cameras(). depth_delay_off_color_usec:0
[ info ] : k4a_device_start_cameras(). wired_sync_mode:0
[ info ] : k4a_device_start_cameras(). subordinate_delay_off_master_usec:0
[ info ] : k4a_device_start_cameras(). disable_streaming_indicator:0
[ trace ] : usb_cmd_io(). XFR: Cmd=80000001, CmdLength=13, PayloadSize=0, CmdData=00000000 00000000...
[ trace ] : usb_cmd_io(). XFR: Cmd=000000e1, CmdLength=4, PayloadSize=0, CmdData=00000004 000001ec...
[ error ] : depth_engine_start_helper(). Depth engine create and initialize failed with error code: 204.
[ error ] : deresult == K4A_DEPTH_ENGINE_RESULT_SUCCEEDED returned failure in depth_engine_start_helper()
[ error ] : depth_engine_start_helper(dewrapper, dewrapper->fps, dewrapper->depth_mode, &depth_engine_max_compute_time_ms, &depth_engine_output_buffer_size) returned failure in depth_engine_thread()
[ warning ] : capturesync_add_capture(). Capture Error Detected, Depth
[ info ] : queue_stop(). Queue "Queue_capture" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_depth" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_color" stopped, shutting down and notifying consumers.
[ error ] : dewrapper_start(). Depth Engine thread failed to start
[ error ] : dewrapper_start(depth->dewrapper, config, depth->calibration_memory, depth->calibration_memory_size) returned failure in depth_start()
[ trace ] : usb_cmd_io(). XFR: Cmd=000000f2, PayloadSize=0
[ error ] : cmd_status == CMD_STATUS_PASS returned failure in depthmcu_depth_stop_streaming()
[ error ] : depthmcu_depth_stop_streaming(). ERROR: cmd_status=0x00000063
[ trace ] : usb_cmd_io(). XFR: Cmd=0000000a, PayloadSize=0
[ error ] : depth_start(device->depth, config) returned failure in k4a_device_start_cameras()
[ info ] : k4a_device_start_cameras(). k4a_device_start_cameras started
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopping
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopped
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A23E0
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2660
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2860
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC4821BE40
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC4821A0C0
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC4821B4C0
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC481A2660
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC481A23E0
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC4821BE40
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC481A2860
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC4821B4C0
[ trace ] : k4a_image_t_destroy(). Destroyed k4a_image_t 000001EC4821A0C0
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A8A0B80
[ trace ] : imu_t_destroy(). Destroyed imu_t 000001EC4820E470
[ trace ] : color_t_destroy(). Destroyed color_t 000001EC48226D80
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A8A0860
[ trace ] : dewrapper_t_destroy(). Destroyed dewrapper_t 000001EC481A19E0
[ trace ] : depth_t_destroy(). Destroyed depth_t 000001EC481A5E00
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A8A0400
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A89FFA0
[ trace ] : queue_t_destroy(). Destroyed queue_t 000001EC4A89FC30
[ trace ] : capturesync_t_destroy(). Destroyed capturesync_t 000001EC481739D0
[ trace ] : calibration_t_destroy(). Destroyed calibration_t 000001EC4519EBE0
[ trace ] : usbcmd_t_destroy(). Destroyed usbcmd_t 000001EC4813C930
[ trace ] : depthmcu_t_destroy(). Destroyed depthmcu_t 000001EC4A760320
[ trace ] : usbcmd_t_destroy(). Destroyed usbcmd_t 000001EC4813CA10
[ trace ] : colormcu_t_destroy(). Destroyed colormcu_t 000001EC481EE3B0
[ trace ] : k4a_device_t_destroy(). Destroyed k4a_device_t 000001EC45109B40
[ trace ] : k4a_device_t_create(). Created k4a_device_t 000001EC4A7A7F60
[ trace ] : depthmcu_t_create(). Created depthmcu_t 000001EC4A7603A0
[ trace ] : usbcmd_t_create(). Created usbcmd_t 000001EC4813C930
[ info ] : find_libusb_device(). Container ID found: {ccc11f1c-eddb-48c8-da9d-6c737eda8c49}
[ info ] : populate_serialnumber(). Serial Number found 000603501312
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ trace ] : colormcu_t_create(). Created colormcu_t 000001EC481F36B0
[ trace ] : usbcmd_t_create(). Created usbcmd_t 000001EC4813D2D0
[ info ] : find_libusb_device(). Container ID found: {ccc11f1c-eddb-48c8-da9d-6c737eda8c49}
[ info ] : populate_serialnumber(). Serial Number found 000603501312
[ trace ] : calibration_t_create(). Created calibration_t 000001EC479BB3D0
[ trace ] : usb_cmd_io(). XFR: Cmd=00000111, PayloadSize=10240
[ trace ] : capturesync_t_create(). Created capturesync_t 000001EC481739D0
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89EC90
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89ECE0
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89EB00
[ trace ] : depth_t_create(). Created depth_t 000001EC481A4A00
[ trace ] : usb_cmd_io(). XFR: Cmd=00000201, PayloadSize=18
[ trace ] : usb_cmd_io(). XFR: Cmd=00000201, PayloadSize=18
[ critical ] : ******************** Device Info ********************
[ critical ] : K4A SDK version: 1.4.1
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ critical ] : Serial Number: 000603501312
[ critical ] : RGB Sensor Version: 1.6.110
[ critical ] : Depth Sensor Version:1.6.79
[ critical ] : Mic Array Version: 1.6.14
[ critical ] : Sensor Config: 6109.7
[ critical ] : Build type: Release
[ critical ] : Signature type: MSFT
[ critical ] : ****************************************************
[ trace ] : dewrapper_t_create(). Created dewrapper_t 000001EC481A1E60
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89EB50
[ trace ] : usb_cmd_io(). XFR: Cmd=000000f2, PayloadSize=0
[ trace ] : usb_cmd_io(). XFR: Cmd=0000000a, PayloadSize=0
[ trace ] : color_t_create(). Created color_t 000001EC4A88F6E0
[ trace ] : imu_t_create(). Created imu_t 000001EC4820E470
[ trace ] : queue_t_create(). Created queue_t 000001EC4A89F5A0
[ trace ] : usb_cmd_io(). XFR: Cmd=80000004, PayloadSize=0
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ trace ] : usb_cmd_io(). XFR: Cmd=00000115, PayloadSize=255
[ trace ] : usb_cmd_io(). XFR: Cmd=80000006, PayloadSize=1
[ trace ] : usb_cmd_io(). XFR: Cmd=80000006, PayloadSize=1
[ trace ] : k4a_device_start_cameras(). k4a_device_start_cameras starting
[ info ] : k4a_device_start_cameras(). Starting camera's with the following config.
[ info ] : k4a_device_start_cameras(). color_format:3
[ info ] : k4a_device_start_cameras(). color_resolution:1
[ info ] : k4a_device_start_cameras(). depth_mode:2
[ info ] : k4a_device_start_cameras(). camera_fps:2
[ info ] : k4a_device_start_cameras(). synchronized_images_only:1
[ info ] : k4a_device_start_cameras(). depth_delay_off_color_usec:0
[ info ] : k4a_device_start_cameras(). wired_sync_mode:0
[ info ] : k4a_device_start_cameras(). subordinate_delay_off_master_usec:0
[ info ] : k4a_device_start_cameras(). disable_streaming_indicator:0
[ trace ] : usb_cmd_io(). XFR: Cmd=80000001, CmdLength=13, PayloadSize=0, CmdData=00000000 00000000...
[ trace ] : usb_cmd_io(). XFR: Cmd=000000e1, CmdLength=4, PayloadSize=0, CmdData=00000004 000001ec...
[ trace ] : usb_cmd_io(). XFR: Cmd=00000022, CmdLength=4, PayloadSize=2000000, CmdData=00000002 000001ec...
[ error ] : depth_engine_start_helper(). Depth engine create and initialize failed with error code: 204.
[ error ] : deresult == K4A_DEPTH_ENGINE_RESULT_SUCCEEDED returned failure in depth_engine_start_helper()
[ error ] : depth_engine_start_helper(dewrapper, dewrapper->fps, dewrapper->depth_mode, &depth_engine_max_compute_time_ms, &depth_engine_output_buffer_size) returned failure in depth_engine_thread()
[ warning ] : capturesync_add_capture(). Capture Error Detected, Depth
[ error ] : dewrapper_start(). Depth Engine thread failed to start
[ info ] : queue_stop(). Queue "Queue_capture" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_depth" stopped, shutting down and notifying consumers.
[ info ] : queue_stop(). Queue "Queue_color" stopped, shutting down and notifying consumers.
[ error ] : dewrapper_start(depth->dewrapper, config, depth->calibration_memory, depth->calibration_memory_size) returned failure in depth_start()
[ trace ] : usb_cmd_io(). XFR: Cmd=000000f2, PayloadSize=0
[ error ] : cmd_status == CMD_STATUS_PASS returned failure in depthmcu_depth_stop_streaming()
[ error ] : depthmcu_depth_stop_streaming(). ERROR: cmd_status=0x00000063
[ trace ] : usb_cmd_io(). XFR: Cmd=0000000a, PayloadSize=0
[ error ] : depth_start(device->depth, config) returned failure in k4a_device_start_cameras()
[ info ] : k4a_device_start_cameras(). k4a_device_start_cameras started
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopping
[ info ] : k4a_device_stop_cameras(). k4a_device_stop_cameras stopped
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A23E0
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2660
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC481A2860
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC48218230
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC48219C30
[ trace ] : k4a_image_t_create(). Created k4a_image_t 000001EC48219DB0

This looks like the remote access issue on Linux. See https://github.com/microsoft/Azure-Kinect-Sensor-SDK/issues/810.

Related

chart js error in next js site hosted on netlify [duplicate]

This question already has answers here:
Error "RangeError: minimumFractionDigits value is out of range" with ChartJS in Next.js app
(3 answers)
Closed 4 months ago.
everthing is working fine in development on my local machine,
but when I deploy my site to netlify, I get this wierd error in console.
the page data is gotten using getStaticProps function and then passed to the page as props.
here is how the data looks like
[
[ 17671, 19856, 37527 ], [ 4887, 5418, 10305 ],
[ 2803, 2303, 5106 ], [ 8617, 9403, 18020 ],
[ 12664, 15722, 28386 ], [ 4227, 3359, 7586 ],
[ 1371, 1545, 2916 ], [ 17526, 14297, 31823 ],
[ 6883, 4781, 11664 ], [ 9805, 10000, 19805 ],
[ 11068, 12888, 23956 ], [ 4570, 4722, 9292 ],
[ 15428, 17309, 32737 ], [ 3565, 3656, 7221 ],
[ 8750, 10443, 19193 ], [ 1771, 1432, 3203 ],
[ 8495, 9979, 18474 ], [ 288, 265, 553 ],
[ 21130, 19321, 40451 ], [ 6867, 6556, 13423 ],
[ 2656, 2092, 4748 ], [ 967, 656, 1623 ],
[ 4540, 4505, 9045 ], [ 7025, 7108, 14133 ],
[ 53134, 59829, 112963 ], [ 8640, 9028, 17668 ],
[ 6759, 7119, 13878 ], [ 28803, 31362, 60165 ],
[ 7346, 7630, 14976 ], [ 9771, 10963, 20734 ],
[ 15783, 17397, 33180 ], [ 9847, 9706, 19553 ],
[ 15154, 17577, 32731 ], [ 1056, 874, 1930 ],
[ 3260, 2476, 5736 ], [ 1488, 1424, 2912 ],
[ 1656, 1154, 2810 ]
]
it is an array of arrays of 3 numbers.
please how do I solve this?
You need to set swcMinify: false false in your next.confug.js. This is currently a bug in the swcMinifier and you will need to wait until they have fixed it before you can enable it again.

Deciphering traceback from ARM CPU on Evaluation Board

I am using a petalinux / yocto on a evaluation board with a MpSoc and a FPGA. I am new to this whole Embedded Linux and gereeted with this error message when I try to run a precompiled example. Any pointers on what's going wrong is appreciated.
[ 91.171070] rcu: INFO: rcu_sched self-detected stall on CPU
[ 91.176642] rcu: 0-....: (5249 ticks this GP) idle=66a/1/0x4000000000000002 softirq=1286/1286 fqs=2625
[ 91.186107] (t=5252 jiffies g=1737 q=5)
[ 91.190013] Task dump for CPU 0:
[ 91.193225] resnet50 R running task 0 740 608 0x00000002
[ 91.200265] Call trace:
[ 91.202701] dump_backtrace+0x0/0x140
[ 91.206352] show_stack+0x14/0x20
[ 91.209652] sched_show_task+0xf4/0x120
[ 91.213479] dump_cpu_task+0x40/0x50
[ 91.217038] rcu_dump_cpu_stacks+0xa0/0xe0
[ 91.221118] rcu_sched_clock_irq+0x52c/0x780
[ 91.225372] update_process_times+0x2c/0x68
[ 91.229539] tick_sched_handle.isra.0+0x30/0x50
[ 91.234052] tick_sched_timer+0x48/0x98
[ 91.237872] __hrtimer_run_queues+0xec/0x1e8
[ 91.242125] hrtimer_interrupt+0x110/0x2c0
[ 91.246207] arch_timer_handler_phys+0x30/0x40
[ 91.250633] handle_percpu_devid_irq+0x80/0x140
[ 91.255147] generic_handle_irq+0x24/0x38
[ 91.259140] __handle_domain_irq+0x60/0xb8
[ 91.263220] gic_handle_irq+0x5c/0xb8
[ 91.266866] el1_irq+0xb8/0x140
[ 91.269992] misc_open+0x50/0x1a0
[ 91.273291] chrdev_open+0xc4/0x200
[ 91.276763] do_dentry_open+0x104/0x398
[ 91.280581] vfs_open+0x28/0x30
[ 91.283708] path_openat+0x4a0/0x1248
[ 91.287353] do_filp_open+0x74/0xf8
[ 91.290825] do_sys_open+0x168/0x218
[ 91.294384] __arm64_sys_openat+0x20/0x28
[ 91.298381] el0_svc_common.constprop.0+0x68/0x160
[ 91.303161] el0_svc_handler+0x6c/0x88
[ 91.306893] el0_svc+0x8/0xc

Apache Camel JUnit to test messages sent to redirected route

I am trying to test route app.cash.source-endpoint-quartz from my junit which internally redirect the flow to another route app.accrual.source-endpoint-direct.
In my case the scenario is like app.cash.source-endpoint-quartz sends few messages to MQ, after that the processing continues and based on certain condition it will redirect to route app.accrual.source-endpoint-direct and which eventually sends few more messages to same MQ.
How do I test this?
Cash Route
from("{{app.cash.source-endpoint-quartz}}")
.routeId("cash-route")
.log(LoggingLevel.INFO, logger,"***** CASH ROUTE STARTED *****")
.doTry()
...
....
.to("direct:cashTransactionRoute") //Sub Route
.process(c -> {
TransactionMaster transactionMaster = (TransactionMaster) c.getIn().getHeader(Constants.HEADER_TRANSACTION_MASTER_CASH);
transactionMasterService.updateMsgStatus(transactionMaster, Status.SUCCESS);
})
.bean(transactionManager, "markSuccess")
...
...
Cash Sub Route
from("direct:cashTransactionRoute")
.routeId("cash-transaction-route")
...
.split(simple("${body}"))
.parallelProcessing()
...
.end()// End of split() and parallelProcessing()
.end()
.process(e -> {
...
})
.choice()
.when(simple("${body.size} != 0"))
.process(e -> {
e.getIn().getBody();
})
.to("{{app.accrual.source-endpoint-direct}}") //Redirect to accrual route
.end() //End of choice
.end();
Accrual Route
from("{{app.accrual.source-endpoint-direct}}") //Accrual Route
.routeId("accrual-route")
.log(LoggingLevel.INFO, logger,"***** ACCRUAL ROUTE STARTED *****")
...
...
application-test.yaml
app:
cash:
source-endpoint-quartz: direct-vm:cash
txn-type: CASH
accrual:
source-endpoint-direct: direct-vm:accrual
source-endpoint-quartz-1: direct-vm:accrual-quartz-1
source-endpoint-quartz-2: direct-vm:accrual-quartz-2
Below is my JUnit which I tried but getting error.
#RunWith(CamelSpringBootRunner.class)
#SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {"camel.springboot.java-routes-include-pattern=**/Cash*, **/Accrual*"})
#EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class, DataSourceTransactionManagerAutoConfiguration.class, SecurityAutoConfiguration.class})
#DirtiesContext(classMode = ClassMode.AFTER_EACH_TEST_METHOD)
#ActiveProfiles(profiles = {"test"})
public class CashRouteTest {
#EndpointInject(value = "{{app.cash.source-endpoint-quartz}}")
private ProducerTemplate producerTemplate;
#EndpointInject(value = "{{app.accrual.source-endpoint-direct}}")
private ProducerTemplate producerTemplateAccrual;
#EndpointInject(value = "{{app.mqservice}}")
private MockEndpoint mock;
#Test
public void cashRouteTest_PaymentWithAccrual() throws Exception {
Mockito.when(...).thenReturn(.....);
Mockito.when(...).thenReturn(.....);
...
producerTemplateAccrual.start();
producerTemplate.start();
producerTemplate.sendBody(null);
//producerTemplateAccrual.sendBody(null);
mock.expectedMessageCount(4);
mock.expectedBodiesReceived();
Assert.assertEquals(4, mock.getExchanges().size());
String xml = String.valueOf(mock.getExchanges().get(0).getIn().getBody());
MessageEnvelope messageEnvelope = (MessageEnvelope) XmlUtil.toObject(xml);
String actualPayload = XmlUtil.toXml(messageEnvelope.getPayload());
String expectedPayload = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>....";
Collection<TransactionMaster> txnMasters = (Collection<TransactionMaster>) txnMasterRepo.findAll();
Collection<Transaction> txns = (Collection<Transaction>) txnRepo.findAll();
logger.info("actualPayload : {} ", actualPayload);
Assert.assertEquals(expectedPayload, actualPayload);
Assert.assertEquals(2, txnMasters.size());
Assert.assertEquals(4, txns.size());
Assert.assertEquals(Status.SUCCESS, Status.forValue(txnMasters.iterator().next().getRefStatusId()));
Assert.assertEquals(Status.SUCCESS, Status.forValue(txns.iterator().next().getRefStatusId()));
mock.assertIsSatisfied(5000);
}
}
When I run this JUnit I get below error.
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-route started and consuming from: direct-vm://cash
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-enrich-route started and consuming from: direct://cashEnrichRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-transaction-route started and consuming from: direct://cashTransactionRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Total 3 routes, of which 3 are started
Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[cash-route ] [cash-route ] [direct-vm://cash ] [ 32018]
[cash-route ] [log1 ] [log ] [ 9]
[cash-route ] [doTry1 ] [doTry ] [ 0]
[cash-route ] [bean1 ] [bean[com.app.service.DbTransactionManager] ] [ 500]
[cash-route ] [bean2 ] [bean[com.app.service.CashTransactionSearch] ] [ 15]
[cash-route ] [choice1 ] [when[simple{Simple: ${body.size} == 0}]choice[] ] [ 204]
[cash-route ] [process1 ] [Processor#0x20bc4c09 ] [ 15]
[cash-route ] [process2 ] [Processor#0x1ca6323c ] [ 16]
[cash-route ] [to1 ] [direct:cashEnrichRoute ] [ 130]
[cash-enrich-route ] [split1 ] [split[Simple: ${body}] ] [ 130]
[cash-route ] [process3 ] [Processor#0x5aac9d67 ] [ 235]
[cash-route ] [process4 ] [Processor#0x753cc26d ] [ 75]
[cash-route ] [to2 ] [direct:cashTransactionRoute ] [ 0]
[cash-transaction-r] [split2 ] [split[Simple: ${body}] ] [ 385]
[cash-transaction-r] [process16 ] [Processor#0x20b3bbe7 ] [ 0]
[cash-transaction-r] [choice3 ] [when[simple{Simple: ${body.size} != 0}]choice[] ] [ 0]
[cash-transaction-r] [process17 ] [Processor#0x5190ae57 ] [ 0]
[cash-transaction-r] [to5 ] [{{app.accrual.source-endpoint-direct}} ] [ 0]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.component.directvm.DirectVmConsumerNotAvailableException: No consumers available on endpoint: direct-vm://accrual. Exchange[ID-SPLS1800411-10N-1564022207351-0-3]
I see that when it loads the context it does not start the accrual route. Even though I have specified producerTemplateAccrual.start(); in my junit.
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-route started and consuming from: direct-vm://cash
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-enrich-route started and consuming from: direct://cashEnrichRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Route: cash-transaction-route started and consuming from: direct://cashTransactionRoute
2019-07-25 10:36:47,179 [main] INFO o.a.camel.spring.SpringCamelContext - Total 3 routes, of which 3 are started
#SpringBootTest(webEnvironment = WebEnvironment.RANDOM_PORT, properties = {"camel.springboot.java-routes-include-pattern=**/Cash*, **/Accrual*"})
Cash*, **
Because of the space after , the AccrualRoute was getting ignored.
After removing the space both the routes are getting loaded.

Count the occurrence of different numbers in file with awk (or grep)

I have file that contains different values in each line and I would like to count the occurrence of numbers that occurs after a specific keyword. For example;
"fields" : {
"referer" : [ "-" ],
"#timestamp" : [ "2017-01-08T19:50:19.000Z" ],
"uri_path" : [ "test" ],
"method" : [ "GET" ],
"servername" : [ "INMESPWEB03" ],
"useragent" : [ "Mediapartners-Google" ],
"querystring" : [ "test" ],
"bytes-sent" : [ "227905" ],
"cshost" : [ "www.test.com" ],
"scstatus" : [ "200" ],
"time-taken" : [ "15468" ]
}
"fields" : {
"referer" : [ "-" ],
"#timestamp" : [ "2017-01-08T19:50:19.000Z" ],
"uri_path" : [ "test" ],
"method" : [ "GET" ],
"servername" : [ "INMESPWEB03" ],
"useragent" : [ "Mediapartners-Google" ],
"querystring" : [ "test" ],
"bytes-sent" : [ "227905" ],
"cshost" : [ "www.test.com" ],
"scstatus" : [ "300" ],
"time-taken" : [ "15468" ]
}
"fields" : {
"referer" : [ "-" ],
"#timestamp" : [ "2017-01-08T19:50:19.000Z" ],
"uri_path" : [ "test" ],
"method" : [ "GET" ],
"servername" : [ "INMESPWEB03" ],
"useragent" : [ "Mediapartners-Google" ],
"querystring" : [ "test" ],
"bytes-sent" : [ "227905" ],
"cshost" : [ "www.test.com" ],
"scstatus" : [ "200" ],
"time-taken" : [ "15468" ]
}
So the result should be like
200 : 2
300 : 1
... : .
and goes like this
I would like to check every number after "scstatus" and count them and print in ascending or descending order. Here is the code I wrote so far, this script gives me the data above
curl -XPOST 'webpage.name.abc' -d { "query": { "filtered": { "query": { "query_string": {
"analyze_wildcard": true,
"query": "useragent: \"googlebot\"|\"mediapartners-google\"|\"adsbot-google\""}
}}},"size": 4000000, "fields": ["#timestamp","servername","uri_path","scstatus","method","cshost","useragent","time-taken","referer","bytes-sent","querystring"]}
If your file format is fixed, this awk one-liner may help:
awk -F'"' '$2=="scstatus"{a[$4]++}END{for(x in a)print x,a[x]}' file
200 2
300 1

Vmwrite error when updating vmcs from kvm_vm_ioctl

i'm implementing an application on top of KVM in which I need to trap writes to CR3.
When I do this when handling a VM EXIT using: vmcs_set_bits(CPU_BASED_VM_EXEC_CONTROL, CPU_BASED_CR3_LOAD_EXITING), it works correctly and I can see the traps in my log file.
Now when I do the same thing after receiving a command from Qemu (command is handled in kvm_vm_ioctl by calling a function I added to kvm_x86_ops vmx_x86_ops) I get a vmwrite error.
Here after the error log:
[ 290.559474] start_vmi
[ 290.559477] vmi: vmx.c: vmx_vmi_start_cr3_store_trapping: vmcs_read32(CPU_BASED_VM_EXEC_CONTROL) & CPU_BASED_CR3_LOAD_EXITING = 0
[ 290.559480] vmwrite error: reg 4002 value c002 (err 16386)
[ 290.559485] CPU: 0 PID: 3376 Comm: qemu-system-i38 Tainted: GF O 3.13.0-32-generic #57~precise1-Ubuntu
[ 290.559513] Call Trace:
[ 290.559525] [<c1680147>] dump_stack+0x41/0x52
[ 290.559533] [<f89f289a>] vmwrite_error+0x35/0x3b [kvm_intel]
[ 290.559538] [<f89e6b95>] vmcs_writel+0x25/0x30 [kvm_intel]
[ 290.559542] [<f89e6c27>] vmcs_set_bits+0x27/0x40 [kvm_intel]
[ 290.559547] [<f89e6c83>] vmx_vmi_start_cr3_store_trapping+0x43/0x50 [kvm_intel]
[ 290.559564] [<fbf861a5>] kvm_vm_ioctl+0x3b5/0x740 [kvm]
[ 290.559570] [<c1150747>] ? __handle_mm_fault+0x127/0x280
[ 290.559574] [<c115093a>] ? handle_mm_fault+0x9a/0x150
[ 290.559580] [<c168ec77>] ? __do_page_fault+0x287/0x520
[ 290.559593] [<fbf85df0>] ? kvm_vm_release+0x20/0x20 [kvm]
[ 290.559600] [<c1194ae2>] do_vfs_ioctl+0x72/0x2e0
[ 290.559604] [<c1194de7>] SyS_ioctl+0x97/0xa0
[ 290.559609] [<c1692b4d>] sysenter_do_call+0x12/0x28
[ 290.559614] [<c1680000>] ? cfq_arm_slice_timer+0x14e/0x254
Does anyone has an idea why what's the problem ? I would be very grateful if there is any answer

Resources