X11 error BadRequest when running OpenGL applications - qt

I compiled Xorg for a custom Linux I'm building for an ARM device. I'm trying to run OpenGL applications using EGL with the Qt framework but I get these errors:
X Error: BadRequest (invalid request code or no such operation) 1
Extension: 198 (Uknown extension)
Minor opcode: 0 (Unknown request)
Resource id: 0x600082
and this:
X Error: BadRequest (invalid request code or no such operation) 1
Extension: 160 (Uknown extension)
Minor opcode: 0 (Unknown request)
Resource id: 0x600082
repeated many times. What does this mean? How can I investigate on what is wrong? Something is drawn on the screen correctly with OpenGL, but after that everything is screwed up.
It seems like something is missing in my Xorg, but I can't find anything about these extensions 198 and 160. How does one figure out what is missing or anyway what is wrong? Do I have to compile anything specific to be able to run OpenGL applications for X11?
Thanks!

The extension numbers are dynamically assigned by the X server based on the extensions supported in a particular codebase and enabled in a particular configuration. To get a list of the extension name to number mappings on the current display, you can run xdpyinfo -queryExtensions | grep opcode — the opcode value listed for each one should match the extension number in Xlib error reports. If none of the extensions match, then it seems likely you've got memory corruption or are calling an extension without first verifying it's currently available in the X server.

Related

Are firebase messaging errors localized?

I am using firebase v4 to push notifications to android devices. When the Send method of the instance of messaging.Client fails, I only get a string error value and I wonder if this error string is localized. If not, I could compare it against e.g. "Requested entity was not found." to detect devices that have uninstalled my app. Is this string always plain english or does this depend on the locale the app is running under? Or does this error string come from the server, so I can never be sure if it stays the same?
What other options do I have to properly detect such an error, even if my golang binary runs on computer systems with any locale or language? I am running my golang binary on windows.
Any help or insights appreciated,
--
Stefan
In general, all error messages from Firebase SDKs are in English only. They are generally not suitable for display or comparison in an app. You should instead use the provided error codes (which will not vary) in the error or exception object to determine what exactly went wrong.

NServiceBus MessageDeserializationException on DataBusProperty<byte[]>

We have an NServiceBus 6 environment with a number of services that send files between each other using DataBusProperty over a custom SqlDataBus : IDataBus.
This works fine on NSB6 using the built in JSON serializer, but is now broken after we moved to NSB7 and the NewtonsoftSerializer.
Removing DataBusProperty from our classes and just using byte[] works fine. We also tried changing the DataBus to FileShareDataBus but got the same exception:
NServiceBus.MessageDeserializationException: An error occurred while attempting to extract logical messages from incoming physical message c7b5cd47-c1b7-4610-9f6c-aa7800cc9b64 --->
Newtonsoft.Json.JsonReaderException: Error reading bytes. Unexpected token: StartObject. Path 'Data.Key', line 1, position 68.
This fails even if a service is sending messages to itself. Also we can see the files written to the file store, whether on Sql or File Share, so they're serializing fine.
An example payload from the error queue is
{"ExecutionId":"1db85105-a71c-4b29-87da-9b7ae6518c1c","Data":{"Key":"2019-06-26_13\\6a2b63c7-12b0-46dd-8b92-f1fc743d27c1","HasValue":true}}
How can we get this to deserialize in NSB7+NewtonsoftSerializer when it works fine in NSB6+JsonSerializer?
Thanks
I just spent about 8 hours trying to figure out what was going on, and realized, that for whatever reason, NSB7 wants a paramaterless constructor and settable properties. I am going back to Particular to see if this change is expected, but I expect we will have to adjust all of our message classes to fit that paradigm.
Although data bus properties should work there is also an alternative to data bus properties which is using stream attachments via send options:
https://docs.particular.net/nservicebus/messaging/attachments-sql
Depending on the use case using Streams might be a more efficient approach.

Tosca - Java Exception while running Swing Application (JTree)

I am learning tosca and currently we are trying to run a regression test suite for a legacy Java Swing application.
My Test suite contains 4 modules (in JTree) and it is getting failed while clicking a node.
The Error I received on the module is,
at.tosca.javaengine.common.exceptions.ControlException: node or
node-path not found! Detailed information contained in
'JavaEngineException.txt above message is displayed in Executionlist
JavaEngineException.txt
22-11-2017 - 17:56:37: IExecWrapperInterface_connectToControl
at.tosca.javaengine.common.exceptions.ControlNotFoundException: Unable
to find control Index=3;ClassName(s)=[javax.swing.JTable];.
at.tosca.javaengine.server.tree.ComponentSearch.getComponent(ComponentSearch.java:218)
->at.tosca.javaengine.server.AbstractJavaEngineCore.findComponent(AbstractJavaEngineCore.java:1129)
->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControlInternal(AbstractJavaEngineCore.java:936)
->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControlInternal(AbstractJavaEngineCore.java:922)
->at.tosca.javaengine.server.AbstractJavaEngineCore.connectToControl(AbstractJavaEngineCore.java:313)
->at.tosca.javaengine.server.JavaEngineCore.access$101(JavaEngineCore.java:25)
->at.tosca.javaengine.server.JavaEngineCore$2.runInternal(JavaEngineCore.java:69)
->at.tosca.javaengine.server.control.WorkerThread.run(WorkerThread.java:69)
->java.lang.Thread.run(Unknown Source)
->JNIServer::CallVoidMethod
->CJNIServer::CallVoidMethod
22-11-2017 - 17:58:58: IExecWrapperInterface_setValue
at.tosca.javaengine.common.exceptions.ControlException: node or
node-path not found!
at.tosca.javaengine.server.control.swing.GenericTreeControl.setValueLegacy(GenericTreeControl.java:339)
->at.tosca.javaengine.server.control.swing.GenericTreeControl.setValue(GenericTreeControl.java:88)
->at.tosca.javaengine.server.AbstractJavaEngineCore.setValueInternal(AbstractJavaEngineCore.java:1195)
->at.tosca.javaengine.server.AbstractJavaEngineCore.setValue(AbstractJavaEngineCore.java:686)
->at.tosca.javaengine.server.JavaEngineCore.access$401(JavaEngineCore.java:25)
->at.tosca.javaengine.server.JavaEngineCore$5.runInternal(JavaEngineCore.java:114)
->at.tosca.javaengine.server.control.WorkerThread.run(WorkerThread.java:69)
->java.lang.Thread.run(Unknown Source)
->JNIServer::CallVoidMethod
->CJNIServer::CallVoidMethod
NOTE : The same Test suite is working in some other machine and not here. Both are same operating System.
This is a bit confusing.
Looks like you are connecting to a JTable and then trying to select a node? Are you sure Tosca is finding the correct control on both machines? (Index=3 does not sound like a stable identification.
The problem was TOSCA is faster than our application :)
Meaning: The frame was not loaded at the time when TOSCA was trying to scan the next page causing the error, the specific node was
not found.
Solution: I added a TBoxWait with extra seconds, after that this is working fine.

Biztalk EDIFACT processing

I'm trying to process an edifact file using Biztalk. I have setup a very simple map which is applied to send port. However, Biztalk complains about the message. I tried searching the net, but without any result. You can see the edi file here. I have setup parties and agreement using EDIFACT protocol, though I'm not sure how correctly I did. Whenever I try to provide biztalk with that message, I can see in event log the following message:
A message received by adapter "FILE" on receive location "Receive
Location1" with URI "C:\Temp*.edi" is suspended. Error details: An
output message of the component "Unknown " in receive pipeline
"Microsoft.BizTalk.Edi.DefaultPipelines.EdiReceive,
Microsoft.BizTalk.Edi.EdiPipelines, Version=3.0.1.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" is suspended due to the following
error:
Error: 1 (Field level error) SegmentID: UNB Position in TS: 1 Data Element ID: UNB5 Position in Segment: 5 Data Value: 37:
Invalid character(s) found in data element. The sequence number of
the suspended message is 1. MessageId:
{DDE54B67-8907-49A2-BDE9-4763495B9B87} InstanceID:
{892EC28B-AC4C-4EA4-8DCC-C49D5FC2869C}
I'm not sure what it means. Any help, indication would be greatly appreciated.
Thanks.
The message you provide looks like a properly formatted EDIFACT message for syntax version 1 (Syntax version 4 is current). I don't know Biztalk, but you probably have to set something to make sure it is expecting syntax version 1. The UNA segment is different for syntax version 1 (it expects 5 delimiters) compared to the more recent syntax versions (where it expects 6 delimiters), so if Biztalk is expecting a UNA segment for a higher syntax version, then it won't be able to properly deal with the message.
You are missing your UNA5 (Repetition seperator) in your UNA specification line.
Without this, the BizTalk EDI disassembling pipeline is unable to correctly parse the content of your EDI file.
You will most likely need to coordinate with your trading partner(s) to ensure the UNA line (first line of the file) looks something like the following:
UNA:+,?*'

How to solve 488 error with mjsip codec mismatch?

I am using Mjsip to build a softphone. I have integrated multiple codecs with it. For test purpose when I make call to another client which is a Portsip 2.0 (G729, ULAW, ALAW, GSM, ILBC) I get an 488 error (Not accepted here). I have integrated G729, ULAW, ALAW, ILBC with my project and codec precedence is g729:ulaw:alaw:ilbc. But after compiling the project if i initiate a call from portsip to my phone. It rings. Then If I call back from my phone it doesn't show any error. It always show error if I tried to call from my softphone after compiling.

Resources