[Tracking] import_expression doesn't function correctly in 3.12

import_expression does spooky AST magic to get imports to be inlined through a specialized syntax: module!.
This doesn't work anymore in 3.12 due to parser changes within Python, need to think if there is a sensible solution.

Would you prefer fixing the upstream package or redoing the logic internally? I ask because I’ve written a proof of concept that isn’t as rigorously tested as import_expression currently but seemingly works on 3.10-3.12 and isn’t as complex. It’s few enough lines of code that you could probably maintain your own version of the same code transformers within jishaku. I’d be willing to contribute that as well.

Jishaku was originally going to have this feature be internal anyway. The main reason why it's in another package is because at some point I rambled about what my requirements and vision for the feature was publicly, and the maintainer took it as a challenge and built it as a standalone package so that it could be reused.
Unfortunately, I don't have a good conventional means of communication with the maintainer anymore, and even back when I did they were increasingly inactive as time went on. While fixing it upstream would probably be for the best (because it would retroactively fix old jishaku versions), it's coming up on 4 years since the last import_expression update, so a PR to it might not even be acknowledged and I think it's safe to consider the package unmaintained.
I'd gladly merge any PRs that can handle the behavior on 3.12 as long as it passes the litmus test on 3.8-3.12 and doesn't break tracebacks or submodule resolution (e.g. discord.utils!.snowflake_time should work)

Hi, I'm active again and am working on fixing this upstream.


Remember Last Rolls

Would it be possible for the player to go through their older chat logs in the chat entry to their older rolls? It was something that was really good in Roll20 that I thought would be a great QoL change. This helps to reduce the "GM, what do I need to roll again? I fudged up the dice"

Wow, great idea.   It isn't complete yet, but I am working towards making the targeted rolls (with modifiers) clickable, so a user can just scroll back in the chat log and try again (they would have to re-apply all of the modifiers, of course... but they will be listed, so it wouldn't be too much work).


Support AWS Aurora Severless v2

Hi guys,
The current Aurora module in terraform-aws-service-catalog does not support serverless v2.
I created this PR to update the upstream module and add relevant variables to support Aurora serverless v2.
The PR is ready for review.

Hi,
PR seems relevant to a different repository


Task 1

Who is assigned task 1, can we discuss? I have some issues in it.

@poojashresthacode I am doing task 1 for this homework. Are you doing the same?

Who is assigned task 1, can we discuss? I have some issues in it.

@pratibha77118 Is doing this part.


Interfacing BBD302 controller

When I use the python code "bbd_pythonnet.py" to interface the BBD302 controller, I get the following error message:
C:\Users\massi_1xn8v1g\PycharmProjects\pythonProject\venv9\Scripts\python.exe C:\Users\massi_1xn8v1g\PycharmProjects\pythonProject\main_xy_stage_thorlabsLib.py
BBD30X Motor Channel
Device settings not initialized
à Thorlabs.MotionControl.GenericMotorCLI.AdvancedMotor.GenericAdvancedMotorCLI.VerifyMotorSettings(Int32 functionDepth)
à Thorlabs.MotionControl.GenericMotorCLI.AdvancedMotor.GenericAdvancedMotorCLI.GetHomingParams()
Process finished with exit code 0
What could this be due to?
Thank you very much for the help

There are a few potential causes of this both hardware and software. The first thing I would try is opening it in Kinesis to confirm it will connect and initialise in that and possibly lengthening the time in the channel.WaitForSettingsInitialized command. If this does not work please do not hesitate to reach out to your local tech support team.


Add headers to exercises

we noticed that if there is no header ## Ecercise or similar in front (does within exercise box work as well?) of exercise boxes , they cannot be linked.
For linking the exercises on the hackmd having links directly to exercises will help, so we should probably add headers to every exercise to make this possible.
Is there maybe also another way to do this?

Also make sure all exercises show up in the exercise overview, correctly formatted.


Test-TargetResource: All resources fails

Details of the scenario you tried and the problem that is occurring
After upgrading from 4.4.0 to 4.5.0 and installing ReverseDSC all SharePointDSC resources fails on the Test-TargetResource with the following error:
An item with the same key has already been added.
Verbose logs showing the problem
VERBOSE: [--server--]: LCM:  [ Start  Resource ]  [[SPFarm]SharePointFarm]
VERBOSE: [--server--]: LCM:  [ Start  Test     ]  [[SPFarm]SharePointFarm]
PowerShell DSC resource MSFT_SPFarm  failed to execute Test-TargetResource functionality with error
message: An item with the same key has already been added.
+ CategoryInfo          : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName        : --server--
VERBOSE: [--server--]:                            [] Consistency check completed.
VERBOSE: [--server--]:                            [[SPFarm]SharePointFarm] Testing local SP Farm
settings
VERBOSE: [--server--]:                            [[SPFarm]SharePointFarm] Getting the settings of the
current local SharePoint Farm (if any)
VERBOSE: [--server--]:                            [[SPFarm]SharePointFarm] Detected installation of
SharePoint 2019
VERBOSE: [--server--]:                            [[SPFarm]SharePointFarm] This node has already been
connected to a farm
VERBOSE: [--server--]:                            [[SPFarm]SharePointFarm] Executing as the local run
as user AD\SetupAccount
VERBOSE: [--server--]: LCM:  [ End    Test     ]  [[SPFarm]SharePointFarm]  in 0.5780 seconds.
The SendConfigurationApply function did not succeed. LCM failed to start desired state configuration
manually.
+ CategoryInfo          : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimExceptio
n
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName        : --server--
VERBOSE: Operation 'Invoke CimMethod' complete.
PowerShell DSC resource MSFT_SPFarm  failed to execute Test-TargetResource functionality with error
message: An item with the same key has already been added.
+ CategoryInfo          : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : ProviderOperationExecutionFailure
+ PSComputerName        : --server--
Suggested solution to the issue
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
OsName               : Microsoft Windows Server 2019 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}
Version and build of PowerShell the target node is running
5.1
Version of the DSC module that was used
Name          Version Path

SharePointDSC 4.5.0   C:\Program Files\WindowsPowerShell\Modules\SharePointDSC\4.5.0\SharePointDSC.psd1

Commenting out the following line seems to remove the error message (but of course is not a viable option). I don't understand why that line is problematic, and there has been no changes to that in ages. It runs just fine if executed directly in a PowerShell session on the same server. I've tried to restart the server too. https://github.com/dsccommunity/SharePointDsc/blob/68297c97fc2ea10e12a5536c390ebcb2a0be2d20/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1#L621 removes the error,

Just to be clear, I also tried to remove $ScriptBlock.ToString() so that there are no side effects of removing line 621
https://github.com/dsccommunity/SharePointDsc/blob/68297c97fc2ea10e12a5536c390ebcb2a0be2d20/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1#L627

Also, it's this line that generates the exception: https://github.com/dsccommunity/SharePointDsc/blob/68297c97fc2ea10e12a5536c390ebcb2a0be2d20/SharePointDsc/Modules/SharePointDsc.Util/SharePointDsc.Util.psm1#L650

I managed to get this stack trace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary2.Insert(TKey key, TValue value, Boolean add)    at Microsoft.PowerShell.Commands.AddPSSnapinCommand.AddPSSnapIns(Collection1 snapInList)
at Microsoft.PowerShell.Commands.AddPSSnapinCommand.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
+ CategoryInfo          : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-SPDscCommand
+ PSComputerName        : localhost
It doens't look like it's related to SharePointDSC, but if I revert to v 4.4.0 everything works just fine.

I have tried to use both sharepointdsc.4.5.0-preview0001 and sharepointdsc.4.5.0-preview0002. Both works just fine. There must have been something introduced after sharepointdsc.4.5.0-preview0002.

I've found that removing this fixes the issue
https://github.com/dsccommunity/SharePointDsc/blob/68297c97fc2ea10e12a5536c390ebcb2a0be2d20/SharePointDsc/Modules/SharePointDsc.Reverse/Import-SPPowerShellSnapIn.ps1#L3
It will probably break some functionality of SharePointDSC. Do you have any solution @ykuijs ?

Hi @jensotto,
Hmm, I did several tests before releasing v4.5, but didn't run into this issue 😢 Thanks for reporting it!
This issue is caused by the fact that SharePoint is still using snap-ins instead of modules. Snapins can only be loaded once, but can't be dectected properly across scopes. If you try to load the snapin twice you get the error you encountered here: "An item with the same key has already been added" But if you do a Get-PSSnapin at the same location, the SharePoint snapin would be returned 😠
This is the exact issue that prevented us from integrating ReverseDsc into SharePointDsc earlier. The ScriptsToProcess parameter solved this issue for us, but as it appears not entirely. Let me troubleshoot/test this some more!

Just tested a resource and am able to reproduce the issue. Am 100% this worked during testing, so not sure what has happened here. Now checking where this is coming from and looking for a solution!

@jensotto Could you please test the following solution:
Add the following two lines to the SPFarm resource at the top of the file (just before the Get-TargetResource method) and let me know if this works or not?
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util\SharePointDsc.Util.psm1'
Import-Module -Name $script:SPDscUtilModulePath

If this works for the SPFarm resource, it should also work for other resources.

No, sorry I still get the same error.

Did you by any chance run the test shortly after a regular run? The LCM caches the code files so changes are only picked up after a while. Either reboot the machine or change the ForceModuleImport parameter of the LCM.

I'm not sure if it has anything to do with this directly, but at the same time when this error started we also saw that we got a lot of access denied errors in the event log and database server logs about a machine account for the server that ran the DSC script that tried to log into the SharePoint databases. I guess this is due to the ScriptsToProcess is run under the machine account.
Also this dependency on ReverseDSC creates an extra challenge when using Pull Server (Azure Automation Account). The modules in the Automation Account is automatically downloaded as part of executing the DSC script, but when an dependency exists on ReverseDSC which is not a DSC resource this module needs to be installed and in the future updated manually instead of relying on the automation provided in the Pull Server.

I added a Write-Warning statement just before the lines I added, and I saw that the text was written during DSC configureation. Should that be sufficient?

I tried a reboot too, and it still failed

After thinking more about the issue regarding access denied when the computer account tries to log on to the database server, I realise that it will not be possible to have the ScriptsToProcess as it currently is implemented. It will then litter the logs with access denied errors. Maybe it's possible to detect if the script is run by the local configuration manager and skip loading the SP SnapIn. But that would still not fix the issue wit the Pull Server as I described earlier.

Can you try the lines with another resource, for example SPFarmAdministrators? On my end, this works perfectly with that resource. Will test with the SPFarm on my end as well.
Can you explain the other issues a little more? Not sure what you mean there.

When the ScripsToProcess is executed during a configuration it's my understanding that this runs under the machine account. Because ScriptsToProcess includes a script that loads the SP SnapIn it will try to contact the SP database (configuration database) using the machine account. If this is true it will create unnecessary errors in logs as the machine account does not have access to do so. This is what we observed. I therefore believe that we can't ScriptsToProcess loading the SP SnapIn during DSC configuration.

Adding those lines to the SPFarm resource seem to work for me. CreateSPFarm now works and it stops at the next in line (SPManagedAccount).

The Pull Server can be configured to host modules required by the DSC configurations. These can automatically be downloaded when LCM pulls a new configuration from the Pull Server. This only covers DSC resources used in a configuration. Since ReversedDSC is not a DSC resource and thus not used/referenced in the configuration it will never be downloaded automatically by the LCM. This means that ReverseDSC needs to be installed manually prior to execution of the configuration. This also is true when ReverseDSC is updated in the future and SharePointDSC takes a dependency on a newer version of ReverseDSC.
It just makes everything a bit more convoluted and not as elegant as it was prior to the ReverseDSC dependency.

I've tested it in two different farms now, and I get the same error in both farms on multiple servers. I can't understand why it would work in some cases and not in others.

Exactly what are you doing? Have you added the lines at the top (on line 1) of the following file:
C:\Program Files\WindowsPowerShell\Modules\SharePointDSC\4.5.0\DSCResources\MSFT_SPFarm\MSFT_SPFarm.psm1

I get what you mean with the Pull Server issue. That is an interesting scenario. Will look for a solution!

I've modified the first few lines of MSFT_SPFarm.psm1:
$script:SPDscUtilModulePath = Join-Path -Path $PSScriptRoot -ChildPath '..\..\Modules\SharePointDsc.Util\SharePointDsc.Util.psm1'
Import-Module -Name $script:SPDscUtilModulePath

$script:resourceModulePath = Split-Path -Path (Split-Path -Path $PSScriptRoot -Parent) -Parent
$script:modulesFolderPath = Join-Path -Path $script:resourceModulePath -ChildPath 'Modules'

$script:resourceFarmHelperModulePath = Join-Path -Path $script:modulesFolderPath -ChildPath 'SharePointDsc.Farm'
Import-Module -Name (Join-Path -Path $script:resourceFarmHelperModulePath -ChildPath 'SPFarm.psm1')

function Get-TargetResource
{

The rest is unmodified from the released version of SharePointDSC v4.5.0

Just to be sure: You updated the file on the SharePoint server where you push the MOF file to, not on the server you generate the MOF file on (if this is a different server). Is this correct?

Yes, I edit the module file on the SharePoint server that runs the configuration (MOF file). MOF files are generated using Azure Pipelines using an isolated build server. I have not made any modification to the module on that build server.

@jensotto and I found a solution and I am now creating a PR to resolve this solution.

PR merged, release process is running. v4.5.1 will be released tonight or tomorrow


Fatal Server Error: NO Screens Found

HI, I am trying to get Linux (Crouton) to get onto my Hisense Chromebook laptop. It worked once but I had to reset it due to some errors, and now everytime I try to: sudo startxfce4      it will do this:
chronos@localhost / $ sudo startxfce4
Entering /mnt/stateful_partition/crouton/chroots/precise...
/usr/bin/startxfce4: Starting X server
X.Org X Server 1.13.0
Release Date: 2012-09-05
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.42-54-highbank armv7l Ubuntu
Current Operating System: Linux localhost 3.14.0 #1 SMP Tue Jul 14 22:43:27 PDT 2015 armv7l
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=8ff9b3c8-a71a-7646-b9e3-4ba23a365503/PARTNROFF=1 hashtree=PARTUUID=8ff9b3c8-a71a-7646-b9e3-4ba23a365503/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=9719acbaea1575882157ee330a52665bdaed9ccf salt=d51eb1f6f9b40a6401c78da015055fc4bff6cee1be0bb89397dcd790cc6fa276" noinitrd vt.global_cursor_default=0 kern_guid=8ff9b3c8-a71a-7646-b9e3-4ba23a365503
Build Date: 05 November 2013  03:23:26PM
xorg-server 2:1.13.0-0ubuntu6.5~precise1 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Wed Jul 29 12:29:03 2015
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
Fatal server error:
no screens found
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: No such file or directory
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/precise..
So I honestly have looked everywhere and it completely is mind blowing that I cannot get around to find out what to honestly do. It is all written but not in the best of understanding language. If someone could help that would be amazing, Please Help. Thank You
P.S. I have the Latest Jerry Chromebook update installed.

I have the same issue--even tried powerwashing and clean reinstall.
Was working fine until the last chromeos update.
Now trying a chromeos downgrade--I'll post if it works.

thanks, I was thinking of doing that myself

Downgrading chromeos and then re-installing worked.
Here's a link:
http://www.chromestory.com/2014/11/chromebooks-get-options-downgrade-operating-system/
Also, you can prevent chromeos auto updates as described here:
https://productforums.google.com/forum/#!topic/chromebook-central/KZoIpuuYHeo
(see last comment)

thanks so much man! super big help :+1: :smile:

Good info. @thecroutonman, thanx. ( Is that kind'a like 'The Shell Answer Man' ? ;)

No--like "the muffin man"!

After downgrade of ChromeOS and complete re-install, unity on crouton is working again.
I've had one occurrence of the same error (no screens) which suggests it may involve a timing issue.  I got that error every time before the downgrade, but only once so far after it.  I just tried again and it worked the second time.

Signed up just to say thanks for this solution. Was driving me crazy.

I'm still having this exact issue even after downgrading. Tried updating crouton. Any ideas on what I could try next? This is what the error log says:
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.

[  2141.379] Initializing built-in extension MIT-SCREEN-SAVER
[  2141.405] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  2141.409] (EE) Failed to load module "fbdev" (module does not exist, 0)
[  2141.423] (EE) No devices detected.
[  2141.423] (EE)
[  2141.423] (EE) no screens found(EE)
[  2141.423] (EE)
[  2141.423] (EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
[  2141.423] (EE)
[  2141.439] (EE) Server terminated with error (1). Closing log file.
crouton: version 1-20150730171703~master:f8fdfb0c
release: trusty
architecture: armhf
xmethod: xorg
targets: xfce
host: version 7077.111.0 (Official Build) stable-channel veyron_jerry
kernel: Linux localhost 3.14.0 #1 SMP Tue Jul 28 16:27:00 PDT 2015 armv7l armv7l armv7l GNU/Linux
freon: yes

Here is corresponding output from my (downgraded, update disabled) version:
...
crouton: version 1-20150716185530~master:aba2c948
release: precise
architecture: armhf
xmethod: xorg
targets: unity
host: version 6946.86.0 (Official Build) stable-channel veyron_jerry
kernel: Linux localhost 3.14.0 #1 SMP Tue Jul 14 00:19:13 PDT 2015 armv7l armv7l armv7l GNU/Linux
freon: yes
No Chromium OS X server is available.
So, it looks like I am using an earlier version than you got to by downgrading.
(Not sure if you can do a double downgrade)
As far as the instructions from #1938 you reference, here's what I see for video devices:
crosh> shell
chronos@localhost / $ sudo enter-chroot
Entering /mnt/stateful_partition/crouton/chroots/precise...
(precise)dain@localhost:~$ ls -l /dev/dri
total 0
crw-rw---- 1 root video 226,  0 Aug  1 09:36 card0
crw-rw---- 1 root video 226, 64 Jul 31 22:27 controlD64
Is that what you saw?
I don't think the command
sudo mv /dev/dri/card1 /dev/dri/card0
referenced in #1938 will work for me unless card1 is created when card0 is rm'd.

No, this is what it shows me:
$ ls -l /dev/dri
total 0
crw-rw---- 1 root video 226,   0 Aug  3 22:24 card0
crw-rw---- 1 root video 226,   1 Aug  3 22:24 card1
crw-rw---- 1 root video 226,  64 Aug  3 22:24 controlD64
crw-rw---- 1 root video 226, 128 Aug  3 22:24 renderD128
crw-rw---- 1 root video 226, 129 Aug  3 22:24 renderD129
Although every time I restart the computer I have to rerun the two commands from #1938 for xfce to start again.

Get the newest crouton install and Run.
ls
cd
ls
cd Downloads
ls
./crouton
bash crouton -n precise -u
ls -l
sudo chown chronos:chronos crouton
bash crouton -n precise -u
sudo bash crouton -n precise -u

After the update finishes you should be able to run
sudo startxfce4
Once you've booted into Ubuntu open a terminal  and run the following:
sudo apt-get install update-manger && update-manager
It will open a program, possibly give some errors, but allow you to upgrade Ubuntu to the latest LTS, after which I've never had any problems with anything!

@DoomGekicher -
All those commands aren't really necessary to update your chroot.
Also, you need to preface the crouton update with 'sudo' like so:
sudo sh ~/Downloads/crouton -n precise -u (use 'sh' not 'bash')
or, if you're already in your ~/Downloads folder like in your example:
sudo sh ./crouton -n precise -u (use 'sh' not 'bash')

All these doesn't work for me .
I haven't tried to downgrade yet , should I?

precise + veyron + xorg is not a working combo at the moment.
Could you please update with the latest crouton, try launching, and post /tmp/Xorg.crouton.1.log when it fails?
In the meantime, use trusty or xiwi.

I came through the same error and I cannot recall myself doing any upgrade of chromeOS caused this problem. Before I had the problem, I seamless used the startxfce4 and do some stuff in my precise. After a log out from precise I cannot startxfce4 anymore. I try to upgrade crouton by running crouton -n precise -u and also log into CLI and apt-get upgrade certain stuffs. I also try to re-install the xorg in my precise but still not work.
I put my recent failure log(Xorg.crouton.1.log) in this gist page. Hope I can help to dig into this problem. I'll try to re-install my precise if I cannot come across any other solution.

I had this same issue, ASUS C100, used the hack here. It would work for a session or two but then my cursor would disappear and my desktop wouldn't work correctly. I uninstalled it, reinstalled with xiwi and tried it. Only done it for a day, but it seems to work.

I am haveing the same issue. I installed the latest version of cruton and can not start a X session.
I would upload the log file, however it does not exist!
I have attached the only Xorg log file there is,
I have installed ChromeOS on a Surface Pro 3 using neverware, the last things in the console during failing is this:
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...
Xorg.0.txt

I am still repeatedly encountering this problem on my Asus Chromebook Flip 100.

#2599
Guys, there's an easy solution to this problem.
No downgrade needed.
Open crosh, start the shell, and enter the chroot (sudo enter-chroot).
Now type: _sudo rm /dev/dri/card0
.. And press enter.
Type: _sudo mv /dev/dri/card1 /dev/dri/card0
.. Press enter once again.
Now exit (exit), and do the sudo startunity or sudo startxfce4 command.
It should work now. Let me know if it didn't.
NOTE: Once you finish typing all of the commands, you don't need to type them in every time you want to start a chroot session. However, from a fresh boot-up, you DO need to do this same procedure.

It would be fantastic if there were a permanent fix for this, as it is obviously impacting other users
https://github.com/dnschneid/crouton/issues/1938
https://github.com/dnschneid/crouton/issues/2426
Same error message for the last two years...
Also, thanks @danielpyon for the fix, that also worked for me (Asus C201 arm/rockchip RK3288C chromebook)

Hi guys... New to the board.
Here's what I keep getting, and have tried all different versions of Ubuntu
Any Help would be appreciated!
Fatal server error:
no screens found
(EE)
Please  consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at  "/tmp/Xorg.crouton.1.log" for additional information
Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: No such file or directory
/usr/bin/xinit: server error
Unmounting /mnt/stateful partition/crouton/chroots/precise...

@StinkyDub - Did you try the above procedure - https://github.com/dnschneid/crouton/issues/1978#issuecomment-228258065 ???

Yeah, I tried a few things that are mentioned in this article, and none seem to work.
I have an Asus Chromebook C100P.  I just got it.  Hopefully, someone has something super simple to fix this.  I tried downgrading, I tried danielpyon's commands.  Everytime, an no matter what type of Ubunto, Unity, fcxe, kde, etc.  does not work.

@StinkyDub - Have you tried using the 'trusty' release, it has worked for others.
See https://github.com/dnschneid/crouton/issues/2686
And https://github.com/dnschneid/crouton/issues/2599

I have been having the same issues and will be tryint to use Trusty,will update.It's installing right now

Annnnd nope.Got this the first attempt to  boot using "sudo startxfce4"
Entering /mnt/stateful_partition/crouton/chroots/trusty...
/usr/bin/startxfce4: Starting X server
_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.18.0-12320-gbb6b499 #1 SMP PREEMPT Tue Aug 2 21:10:11 PDT 2016 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 2506752 verity payload=PARTUUID=15f77060-5f09-8a44-ab58-5b11af26fc82/PARTNROFF=1 hashtree=PARTUUID=15f77060-5f09-8a44-ab58-5b11af26fc82/PARTNROFF=1 hashstart=2506752 alg=sha1 root_hexdigest=c4881dcb04911e8abee3f41dc53772575351d211 salt=d491b53a01cfc204568c9ed84a7fc64a5d69407b27dffbbea58ab6d955c697a1" noinitrd vt.global_cursor_default=0 kern_guid=15f77060-5f09-8a44-ab58-5b11af26fc82 add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic
Build Date: 12 February 2015  02:49:29PM
xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Mon Aug 29 00:57:06 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...

Tried using trusty and all of it.  Is it because I have a new chromebook?  Perhaps, the old ways have been thwarted by the new...

Same,i have the Samsung Chromebook 3. Possible the issue is native on it?

I was having the same exact problem. danielpyon's post fixed it for me. Thank you so much.

danielpyon's post worked for me too AND I made it permanent by adding the lines to /etc/rc.local :cake:

@dhjw Thanks man for this fix.

@danielpyon I don't have either of those files in /dev/dri. Here's what I do have:
(trusty)tim@localhost:/dev/dri$ ls
controlD64  renderD128  renderD129  vgem
This is from a fresh install of trusty with xfce and touch on a Pixel 2, with a freshly-downloaded version of crouton.

@tdingman,
This issue hasn't popped up on the Pixel from what I've seen so far, are you getting the message -

'Fatal Server Error: NO Screens Found'

-DennisL

Here's what I get after sudo startxfce4:
Entering /mnt/stateful_partition/crouton/chroots/trusty...
/usr/bin/startxfce4: Starting X server

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashtree=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=b9e5519e94ee26f04e3d00330bf2413996d94ff1 salt=235613e6c9f26a174c543fe7c567073ce54d7bb21f5d830a184765770d1e2987" noinitrd vt.global_cursor_default=0 kern_guid=bc752e51-a424-e847-b311-c5ba5a02cbcf add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic i915.enable_psr=1
Build Date: 12 February 2015  02:49:29PM
xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Fri Oct  7 11:09:55 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...

@tdingman,

(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)

Have you rebooted?
Could you post the output of /tmp/Xorg.crouton.1.log please?
-DennisL

Contents of /tmp/Xorg.crouton.1.log:
[ 41240.281] _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
[ 41240.281]
X.Org X Server 1.15.1
Release Date: 2014-04-13
[ 41240.281] X Protocol Version 11, Revision 0
[ 41240.281] Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
[ 41240.281] Current Operating System: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64
[ 41240.281] Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashtree=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=b9e5519e94ee26f04e3d00330bf2413996d94ff1 salt=235613e6c9f26a174c543fe7c567073ce54d7bb21f5d830a184765770d1e2987" noinitrd vt.global_cursor_default=0 kern_guid=bc752e51-a424-e847-b311-c5ba5a02cbcf add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic i915.enable_psr=1
[ 41240.281] Build Date: 12 February 2015  02:49:29PM
[ 41240.281] xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
[ 41240.281] Current version of pixman: 0.30.2
[ 41240.281]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 41240.281] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 41240.281] (++) Log file: "/tmp/Xorg.crouton.1.log", Time: Fri Oct  7 11:09:55 2016
[ 41240.282] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 41240.282] (==) No Layout section.  Using the first Screen section.
[ 41240.282] (==) No screen section available. Using defaults.
[ 41240.282] (**) |-->Screen "Default Screen Section" (0)
[ 41240.282] (**) |   |-->Monitor "<default monitor>"
[ 41240.282] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[ 41240.282] (**) |   |-->Device "Intel Graphics SNA+TearFree"
[ 41240.282] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[ 41240.282] (==) Automatically adding devices
[ 41240.282] (==) Automatically enabling devices
[ 41240.282] (==) Automatically adding GPU devices
[ 41240.282] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 41240.282]    Entry deleted from font path.
[ 41240.282] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 41240.282]    Entry deleted from font path.
[ 41240.282] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 41240.282]    Entry deleted from font path.
[ 41240.283] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 41240.283]    Entry deleted from font path.
[ 41240.283] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 41240.283]    Entry deleted from font path.
[ 41240.283] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[ 41240.283] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 41240.283] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 41240.283] (II) Loader magic: 0x7ff387b14d40
[ 41240.283] (II) Module ABI versions:
[ 41240.283]    X.Org ANSI C Emulation: 0.4
[ 41240.283]    X.Org Video Driver: 15.0
[ 41240.283]    X.Org XInput driver : 20.0
[ 41240.283]    X.Org Server Extension : 8.0
[ 41240.283] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 41240.284] (--) PCI:*(0:0:2:0) 8086:1616:8086:1616 rev 9, Mem @ 0xe0000000/16777216, 0xd0000000/268435456, I/O @ 0x00001800/64
[ 41240.284] Initializing built-in extension Generic Event Extension
[ 41240.284] Initializing built-in extension SHAPE
[ 41240.284] Initializing built-in extension MIT-SHM
[ 41240.284] Initializing built-in extension XInputExtension
[ 41240.284] Initializing built-in extension XTEST
[ 41240.284] Initializing built-in extension BIG-REQUESTS
[ 41240.284] Initializing built-in extension SYNC
[ 41240.284] Initializing built-in extension XKEYBOARD
[ 41240.284] Initializing built-in extension XC-MISC
[ 41240.284] Initializing built-in extension SECURITY
[ 41240.284] Initializing built-in extension XINERAMA
[ 41240.284] Initializing built-in extension XFIXES
[ 41240.284] Initializing built-in extension RENDER
[ 41240.284] Initializing built-in extension RANDR
[ 41240.284] Initializing built-in extension COMPOSITE
[ 41240.284] Initializing built-in extension DAMAGE
[ 41240.284] Initializing built-in extension MIT-SCREEN-SAVER
[ 41240.284] Initializing built-in extension DOUBLE-BUFFER
[ 41240.284] Initializing built-in extension RECORD
[ 41240.284] Initializing built-in extension DPMS
[ 41240.284] Initializing built-in extension Present
[ 41240.284] Initializing built-in extension DRI3
[ 41240.284] Initializing built-in extension X-Resource
[ 41240.284] Initializing built-in extension XVideo
[ 41240.284] Initializing built-in extension XVideo-MotionCompensation
[ 41240.284] Initializing built-in extension SELinux
[ 41240.284] Initializing built-in extension XFree86-VidModeExtension
[ 41240.284] Initializing built-in extension XFree86-DGA
[ 41240.284] Initializing built-in extension XFree86-DRI
[ 41240.284] Initializing built-in extension DRI2
[ 41240.284] (II) LoadModule: "glx"
[ 41240.284] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 41240.285] (II) Module glx: vendor="X.Org Foundation"
[ 41240.285]    compiled for 1.15.1, module version = 1.0.0
[ 41240.285]    ABI class: X.Org Server Extension, version 8.0
[ 41240.285] (==) AIGLX enabled
[ 41240.285] Loading extension GLX
[ 41240.285] (II) LoadModule: "intel"
[ 41240.286] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 41240.286] (II) Module intel: vendor="X.Org Foundation"
[ 41240.286]    compiled for 1.15.1, module version = 2.99.910
[ 41240.286]    Module class: X.Org Video Driver
[ 41240.286]    ABI class: X.Org Video Driver, version 15.0
[ 41240.286] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 41240.287] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 41240.287] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 41240.287] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 41240.287] (--) using VT number 7

[ 41240.299] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 41240.373] (EE) No devices detected.
[ 41240.373] (==) Matched intel as autoconfigured driver 0
[ 41240.373] (==) Matched intel as autoconfigured driver 1
[ 41240.373] (==) Matched modesetting as autoconfigured driver 2
[ 41240.373] (==) Matched fbdev as autoconfigured driver 3
[ 41240.373] (==) Matched vesa as autoconfigured driver 4
[ 41240.373] (==) Assigned the driver to the xf86ConfigLayout
[ 41240.373] (II) LoadModule: "intel"
[ 41240.373] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 41240.373] (II) Module intel: vendor="X.Org Foundation"
[ 41240.373]    compiled for 1.15.1, module version = 2.99.910
[ 41240.373]    Module class: X.Org Video Driver
[ 41240.373]    ABI class: X.Org Video Driver, version 15.0
[ 41240.373] (II) UnloadModule: "intel"
[ 41240.373] (II) Unloading intel
[ 41240.373] (II) Failed to load module "intel" (already loaded, 32755)
[ 41240.373] (II) LoadModule: "modesetting"
[ 41240.374] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 41240.374] (II) Module modesetting: vendor="X.Org Foundation"
[ 41240.374]    compiled for 1.15.0, module version = 0.8.1
[ 41240.374]    Module class: X.Org Video Driver
[ 41240.374]    ABI class: X.Org Video Driver, version 15.0
[ 41240.374] (II) LoadModule: "fbdev"
[ 41240.375] (WW) Warning, couldn't open module fbdev
[ 41240.375] (II) UnloadModule: "fbdev"
[ 41240.375] (II) Unloading fbdev
[ 41240.375] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 41240.375] (II) LoadModule: "vesa"
[ 41240.375] (WW) Warning, couldn't open module vesa
[ 41240.375] (II) UnloadModule: "vesa"
[ 41240.375] (II) Unloading vesa
[ 41240.375] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 41240.375] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 41240.376] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 41240.376] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 41240.376] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 41240.376] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 41240.376] (++) using VT number 7

[ 41240.376] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 41240.376] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 41240.386] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 41240.545] (EE) open /dev/dri/card0: No such file or directory
[ 41240.545] (EE) open /dev/dri/card0: No such file or directory
[ 41240.545] (EE) open /dev/dri/card0: No such file or directory
[ 41240.545] (WW) Falling back to old probe method for modesetting
[ 41240.545] (EE) open /dev/dri/card0: No such file or directory
[ 41240.545] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 41240.545] (EE) Screen 0 deleted because of no matching config section.
[ 41240.545] (II) UnloadModule: "modesetting"
[ 41240.545] (EE) Device(s) detected, but none match those in the config file.
[ 41240.545] (EE)
Fatal server error:
[ 41240.545] (EE) no screens found(EE)
[ 41240.545] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[ 41240.545] (EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
[ 41240.545] (EE)
[ 41240.558] (EE) Server terminated with error (1). Closing log file.

I'll reboot now. What should I look for?

@tdingman,

(EE) open /dev/dri/card0: No such file or directory

After a reboot, list the contents of /dev/dri again: ls -l /dev/dri
-DennisL

@DennisLfromGA there they are! I was able to launch sudo startxfce4 but got the same errors as the initial bug report. Performed the tip about moving card1 to card0. Tried sudo startxfce4 again, but X wouldn't launch and I got the following error:
Entering /mnt/stateful_partition/crouton/chroots/trusty...
/usr/bin/startxfce4: Starting X server

_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashtree=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=b9e5519e94ee26f04e3d00330bf2413996d94ff1 salt=235613e6c9f26a174c543fe7c567073ce54d7bb21f5d830a184765770d1e2987" noinitrd vt.global_cursor_default=0 kern_guid=bc752e51-a424-e847-b311-c5ba5a02cbcf add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic i915.enable_psr=1
Build Date: 12 February 2015  02:49:29PM
xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Fri Oct  7 12:20:25 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...

Here's what's in /dev/dri now: card0  controlD64  renderD128  renderD129  vgem

If I reboot again, I see card0  card1  controlD64  renderD128  renderD129  vgem

@tdingman,

(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.

Again, the above log might be helpful - after you perform the card1 --> card0 move operation and attempt to launch your desktop.
-DennisL

Alright @DennisLfromGA , here's what that log says after I replace card0 with card1:
[ 10533.263] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[ 10533.264]
X.Org X Server 1.15.1
Release Date: 2014-04-13
[ 10533.264] X Protocol Version 11, Revision 0
[ 10533.264] Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
[ 10533.264] Current Operating System: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64
[ 10533.264] Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashtree=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=b9e5519e94ee26f04e3d00330bf2413996d94ff1 salt=235613e6c9f26a174c543fe7c567073ce54d7bb21f5d830a184765770d1e2987" noinitrd vt.global_cursor_default=0 kern_guid=bc752e51-a424-e847-b311-c5ba5a02cbcf add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic i915.enable_psr=1
[ 10533.265] Build Date: 12 February 2015  02:49:29PM
[ 10533.265] xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
[ 10533.265] Current version of pixman: 0.30.2
[ 10533.265]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 10533.265] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 10533.265] (++) Log file: "/tmp/Xorg.crouton.1.log", Time: Fri Oct  7 15:21:25 2016
[ 10533.269] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 10533.272] (==) No Layout section.  Using the first Screen section.
[ 10533.272] (==) No screen section available. Using defaults.
[ 10533.272] (**) |-->Screen "Default Screen Section" (0)
[ 10533.272] (**) |   |-->Monitor "<default monitor>"
[ 10533.273] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[ 10533.273] (**) |   |-->Device "Intel Graphics SNA+TearFree"
[ 10533.273] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[ 10533.273] (==) Automatically adding devices
[ 10533.273] (==) Automatically enabling devices
[ 10533.273] (==) Automatically adding GPU devices
[ 10533.275] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 10533.275]    Entry deleted from font path.
[ 10533.275] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 10533.275]    Entry deleted from font path.
[ 10533.275] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 10533.275]    Entry deleted from font path.
[ 10533.275] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 10533.275]    Entry deleted from font path.
[ 10533.275] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 10533.275]    Entry deleted from font path.
[ 10533.275] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[ 10533.275] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 10533.275] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 10533.275] (II) Loader magic: 0x7f992134fd40
[ 10533.275] (II) Module ABI versions:
[ 10533.275]    X.Org ANSI C Emulation: 0.4
[ 10533.275]    X.Org Video Driver: 15.0
[ 10533.275]    X.Org XInput driver : 20.0
[ 10533.275]    X.Org Server Extension : 8.0
[ 10533.275] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 10533.277] (--) PCI:*(0:0:2:0) 8086:1616:8086:1616 rev 9, Mem @ 0xe0000000/16777216, 0xd0000000/268435456, I/O @ 0x00001800/64
[ 10533.277] Initializing built-in extension Generic Event Extension
[ 10533.277] Initializing built-in extension SHAPE
[ 10533.277] Initializing built-in extension MIT-SHM
[ 10533.277] Initializing built-in extension XInputExtension
[ 10533.277] Initializing built-in extension XTEST
[ 10533.277] Initializing built-in extension BIG-REQUESTS
[ 10533.277] Initializing built-in extension SYNC
[ 10533.277] Initializing built-in extension XKEYBOARD
[ 10533.277] Initializing built-in extension XC-MISC
[ 10533.277] Initializing built-in extension SECURITY
[ 10533.277] Initializing built-in extension XINERAMA
[ 10533.277] Initializing built-in extension XFIXES
[ 10533.277] Initializing built-in extension RENDER
[ 10533.277] Initializing built-in extension RANDR
[ 10533.277] Initializing built-in extension COMPOSITE
[ 10533.277] Initializing built-in extension DAMAGE
[ 10533.277] Initializing built-in extension MIT-SCREEN-SAVER
[ 10533.277] Initializing built-in extension DOUBLE-BUFFER
[ 10533.277] Initializing built-in extension RECORD
[ 10533.277] Initializing built-in extension DPMS
[ 10533.277] Initializing built-in extension Present
[ 10533.277] Initializing built-in extension DRI3
[ 10533.277] Initializing built-in extension X-Resource
[ 10533.277] Initializing built-in extension XVideo
[ 10533.277] Initializing built-in extension XVideo-MotionCompensation
[ 10533.277] Initializing built-in extension SELinux
[ 10533.277] Initializing built-in extension XFree86-VidModeExtension
[ 10533.277] Initializing built-in extension XFree86-DGA
[ 10533.277] Initializing built-in extension XFree86-DRI
[ 10533.277] Initializing built-in extension DRI2
[ 10533.277] (II) LoadModule: "glx"
[ 10533.279] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 10533.288] (II) Module glx: vendor="X.Org Foundation"
[ 10533.288]    compiled for 1.15.1, module version = 1.0.0
[ 10533.288]    ABI class: X.Org Server Extension, version 8.0
[ 10533.288] (==) AIGLX enabled
[ 10533.289] Loading extension GLX
[ 10533.289] (II) LoadModule: "intel"
[ 10533.289] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 10533.293] (II) Module intel: vendor="X.Org Foundation"
[ 10533.293]    compiled for 1.15.1, module version = 2.99.910
[ 10533.293]    Module class: X.Org Video Driver
[ 10533.293]    ABI class: X.Org Video Driver, version 15.0
[ 10533.293] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 10533.294] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 10533.294] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 10533.294] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 10533.294] (--) using VT number 7

[ 10533.300] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 10533.364] (EE) No devices detected.
[ 10533.364] (==) Matched intel as autoconfigured driver 0
[ 10533.364] (==) Matched intel as autoconfigured driver 1
[ 10533.364] (==) Matched modesetting as autoconfigured driver 2
[ 10533.364] (==) Matched fbdev as autoconfigured driver 3
[ 10533.364] (==) Matched vesa as autoconfigured driver 4
[ 10533.364] (==) Assigned the driver to the xf86ConfigLayout
[ 10533.364] (II) LoadModule: "intel"
[ 10533.365] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 10533.365] (II) Module intel: vendor="X.Org Foundation"
[ 10533.365]    compiled for 1.15.1, module version = 2.99.910
[ 10533.365]    Module class: X.Org Video Driver
[ 10533.365]    ABI class: X.Org Video Driver, version 15.0
[ 10533.365] (II) UnloadModule: "intel"
[ 10533.365] (II) Unloading intel
[ 10533.365] (II) Failed to load module "intel" (already loaded, 32665)
[ 10533.365] (II) LoadModule: "modesetting"
[ 10533.365] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 10533.366] (II) Module modesetting: vendor="X.Org Foundation"
[ 10533.366]    compiled for 1.15.0, module version = 0.8.1
[ 10533.366]    Module class: X.Org Video Driver
[ 10533.366]    ABI class: X.Org Video Driver, version 15.0
[ 10533.366] (II) LoadModule: "fbdev"
[ 10533.367] (WW) Warning, couldn't open module fbdev
[ 10533.367] (II) UnloadModule: "fbdev"
[ 10533.367] (II) Unloading fbdev
[ 10533.367] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 10533.367] (II) LoadModule: "vesa"
[ 10533.368] (WW) Warning, couldn't open module vesa
[ 10533.368] (II) UnloadModule: "vesa"
[ 10533.368] (II) Unloading vesa
[ 10533.368] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 10533.368] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 10533.368] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 10533.368] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 10533.368] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 10533.368] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 10533.368] (++) using VT number 7

[ 10533.368] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 10533.368] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 10533.376] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 10533.508] (WW) Falling back to old probe method for modesetting
[ 10533.508] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 10533.508] (EE) Screen 0 deleted because of no matching config section.
[ 10533.508] (II) UnloadModule: "modesetting"
[ 10533.508] (EE) Device(s) detected, but none match those in the config file.
[ 10533.508] (EE)
Fatal server error:
[ 10533.508] (EE) no screens found(EE)
[ 10533.508] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[ 10533.508] (EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
[ 10533.508] (EE)
[ 10533.521] (EE) Server terminated with error (1). Closing log file.

@tdingman,
Thanx, I seem to remember a modified xorg.conf file or something but I can't find it right now.
I'll keep looking but maybe someone else will pop in here and give us an answer.
-DennisL

Trusty xorg on jerry should work just fine out of box without messing with /dev/dri/card* (I just tried it).
Do you get failures on trusty if you don't make any modifications to /dev/dri?  If so, could you please post the output and the xorg log in that situation?

I do see the error on precise without the /dev/dri hacking.

Okay, pushed out a fix.  The latest crouton should fix all of the /dev/dri/card* issues, so please delete any hacks you have in your rc.local or wherever else you put them.

Just deleted my old chroot and crouton, downloaded the latest version of crouton, and installed a fresh version of trusty with xfce and touch flags. (I'm on a Pixel 2, stable channel.)
After trying to sudo startxfce4:
Entering /mnt/stateful_partition/crouton/chroots/trusty...
/usr/bin/startxfce4: Starting X server

_XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

X.Org X Server 1.15.1
Release Date: 2014-04-13
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
Current Operating System: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64
Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashtree=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=b9e5519e94ee26f04e3d00330bf2413996d94ff1 salt=235613e6c9f26a174c543fe7c567073ce54d7bb21f5d830a184765770d1e2987" noinitrd vt.global_cursor_default=0 kern_guid=bc752e51-a424-e847-b311-c5ba5a02cbcf add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic i915.enable_psr=1
Build Date: 12 February 2015  02:49:29PM
xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.30.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(++) Log file: "/tmp/Xorg.crouton.1.log", Time: Wed Oct 12 18:11:12 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension Present
Initializing built-in extension DRI3
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension SELinux
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
/usr/bin/xinit: giving up
/usr/bin/xinit: unable to connect to X server: Connection refused
/usr/bin/xinit: server error
Unmounting /mnt/stateful_partition/crouton/chroots/trusty...

The Xorg log:
[ 76038.404] _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
[ 76038.405]
X.Org X Server 1.15.1
Release Date: 2014-04-13
[ 76038.405] X Protocol Version 11, Revision 0
[ 76038.405] Build Operating System: Linux 3.2.0-76-generic x86_64 Ubuntu
[ 76038.405] Current Operating System: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64
[ 76038.405] Kernel command line: cros_secure console= loglevel=7 init=/sbin/init cros_secure oops=panic panic=-1 root=/dev/dm-0 rootwait ro dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 dm="1 vroot none ro 1,0 3584000 verity payload=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashtree=PARTUUID=bc752e51-a424-e847-b311-c5ba5a02cbcf/PARTNROFF=1 hashstart=3584000 alg=sha1 root_hexdigest=b9e5519e94ee26f04e3d00330bf2413996d94ff1 salt=235613e6c9f26a174c543fe7c567073ce54d7bb21f5d830a184765770d1e2987" noinitrd vt.global_cursor_default=0 kern_guid=bc752e51-a424-e847-b311-c5ba5a02cbcf add_efi_memmap boot=local noresume noswap i915.modeset=1 tpm_tis.force=1 tpm_tis.interrupts=0 nmi_watchdog=panic,lapic i915.enable_psr=1
[ 76038.405] Build Date: 12 February 2015  02:49:29PM
[ 76038.405] xorg-server 2:1.15.1-0ubuntu2.7 (For technical support please see http://www.ubuntu.com/support)
[ 76038.405] Current version of pixman: 0.30.2
[ 76038.405]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 76038.405] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 76038.405] (++) Log file: "/tmp/Xorg.crouton.1.log", Time: Wed Oct 12 18:11:12 2016
[ 76038.405] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 76038.407] (==) No Layout section.  Using the first Screen section.
[ 76038.407] (==) No screen section available. Using defaults.
[ 76038.407] (**) |-->Screen "Default Screen Section" (0)
[ 76038.407] (**) |   |-->Monitor "<default monitor>"
[ 76038.407] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[ 76038.407] (**) |   |-->Device "Intel Graphics SNA+TearFree"
[ 76038.407] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[ 76038.407] (==) Automatically adding devices
[ 76038.407] (==) Automatically enabling devices
[ 76038.407] (==) Automatically adding GPU devices
[ 76038.407] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 76038.407]    Entry deleted from font path.
[ 76038.407] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[ 76038.407]    Entry deleted from font path.
[ 76038.407] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[ 76038.407]    Entry deleted from font path.
[ 76038.407] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[ 76038.407]    Entry deleted from font path.
[ 76038.407] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[ 76038.407]    Entry deleted from font path.
[ 76038.408] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[ 76038.408] (==) ModulePath set to "/usr/lib/x86_64-linux-gnu/xorg/extra-modules,/usr/lib/xorg/extra-modules,/usr/lib/xorg/modules"
[ 76038.408] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 76038.408] (II) Loader magic: 0x7fd226d8dd40
[ 76038.408] (II) Module ABI versions:
[ 76038.408]    X.Org ANSI C Emulation: 0.4
[ 76038.408]    X.Org Video Driver: 15.0
[ 76038.408]    X.Org XInput driver : 20.0
[ 76038.408]    X.Org Server Extension : 8.0
[ 76038.408] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 76038.409] (--) PCI:*(0:0:2:0) 8086:1616:8086:1616 rev 9, Mem @ 0xe0000000/16777216, 0xd0000000/268435456, I/O @ 0x00001800/64
[ 76038.409] Initializing built-in extension Generic Event Extension
[ 76038.409] Initializing built-in extension SHAPE
[ 76038.409] Initializing built-in extension MIT-SHM
[ 76038.409] Initializing built-in extension XInputExtension
[ 76038.409] Initializing built-in extension XTEST
[ 76038.409] Initializing built-in extension BIG-REQUESTS
[ 76038.409] Initializing built-in extension SYNC
[ 76038.409] Initializing built-in extension XKEYBOARD
[ 76038.409] Initializing built-in extension XC-MISC
[ 76038.409] Initializing built-in extension SECURITY
[ 76038.409] Initializing built-in extension XINERAMA
[ 76038.409] Initializing built-in extension XFIXES
[ 76038.409] Initializing built-in extension RENDER
[ 76038.409] Initializing built-in extension RANDR
[ 76038.409] Initializing built-in extension COMPOSITE
[ 76038.409] Initializing built-in extension DAMAGE
[ 76038.409] Initializing built-in extension MIT-SCREEN-SAVER
[ 76038.409] Initializing built-in extension DOUBLE-BUFFER
[ 76038.409] Initializing built-in extension RECORD
[ 76038.409] Initializing built-in extension DPMS
[ 76038.409] Initializing built-in extension Present
[ 76038.409] Initializing built-in extension DRI3
[ 76038.409] Initializing built-in extension X-Resource
[ 76038.409] Initializing built-in extension XVideo
[ 76038.410] Initializing built-in extension XVideo-MotionCompensation
[ 76038.410] Initializing built-in extension SELinux
[ 76038.410] Initializing built-in extension XFree86-VidModeExtension
[ 76038.410] Initializing built-in extension XFree86-DGA
[ 76038.410] Initializing built-in extension XFree86-DRI
[ 76038.410] Initializing built-in extension DRI2
[ 76038.410] (II) LoadModule: "glx"
[ 76038.410] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 76038.417] (II) Module glx: vendor="X.Org Foundation"
[ 76038.417]    compiled for 1.15.1, module version = 1.0.0
[ 76038.417]    ABI class: X.Org Server Extension, version 8.0
[ 76038.417] (==) AIGLX enabled
[ 76038.417] Loading extension GLX
[ 76038.417] (II) LoadModule: "intel"
[ 76038.417] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 76038.418] (II) Module intel: vendor="X.Org Foundation"
[ 76038.418]    compiled for 1.15.1, module version = 2.99.910
[ 76038.418]    Module class: X.Org Video Driver
[ 76038.418]    ABI class: X.Org Video Driver, version 15.0
[ 76038.418] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 76038.418] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 76038.418] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 76038.418] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 76038.418] (--) using VT number 7

[ 76038.430] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 76038.493] (EE) No devices detected.
[ 76038.493] (==) Matched intel as autoconfigured driver 0
[ 76038.493] (==) Matched intel as autoconfigured driver 1
[ 76038.493] (==) Matched modesetting as autoconfigured driver 2
[ 76038.493] (==) Matched fbdev as autoconfigured driver 3
[ 76038.493] (==) Matched vesa as autoconfigured driver 4
[ 76038.493] (==) Assigned the driver to the xf86ConfigLayout
[ 76038.493] (II) LoadModule: "intel"
[ 76038.494] (II) Loading /usr/lib/xorg/modules/drivers/intel_drv.so
[ 76038.494] (II) Module intel: vendor="X.Org Foundation"
[ 76038.494]    compiled for 1.15.1, module version = 2.99.910
[ 76038.494]    Module class: X.Org Video Driver
[ 76038.494]    ABI class: X.Org Video Driver, version 15.0
[ 76038.494] (II) UnloadModule: "intel"
[ 76038.494] (II) Unloading intel
[ 76038.494] (II) Failed to load module "intel" (already loaded, 32722)
[ 76038.494] (II) LoadModule: "modesetting"
[ 76038.494] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 76038.495] (II) Module modesetting: vendor="X.Org Foundation"
[ 76038.495]    compiled for 1.15.0, module version = 0.8.1
[ 76038.495]    Module class: X.Org Video Driver
[ 76038.495]    ABI class: X.Org Video Driver, version 15.0
[ 76038.495] (II) LoadModule: "fbdev"
[ 76038.496] (WW) Warning, couldn't open module fbdev
[ 76038.496] (II) UnloadModule: "fbdev"
[ 76038.496] (II) Unloading fbdev
[ 76038.496] (EE) Failed to load module "fbdev" (module does not exist, 0)
[ 76038.496] (II) LoadModule: "vesa"
[ 76038.497] (WW) Warning, couldn't open module vesa
[ 76038.497] (II) UnloadModule: "vesa"
[ 76038.497] (II) Unloading vesa
[ 76038.497] (EE) Failed to load module "vesa" (module does not exist, 0)
[ 76038.497] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[ 76038.497] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[ 76038.497] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[ 76038.497] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[ 76038.497] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 76038.497] (++) using VT number 7

[ 76038.497] (WW) xf86OpenConsole: setpgid failed: Operation not permitted
[ 76038.497] (WW) xf86OpenConsole: setsid failed: Operation not permitted
[ 76038.505] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
[ 76038.638] (WW) Falling back to old probe method for modesetting
[ 76038.638] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 76038.638] (EE) Screen 0 deleted because of no matching config section.
[ 76038.638] (II) UnloadModule: "modesetting"
[ 76038.638] (EE) Device(s) detected, but none match those in the config file.
[ 76038.638] (EE)
Fatal server error:
[ 76038.638] (EE) no screens found(EE)
[ 76038.639] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[ 76038.639] (EE) Please also check the log file at "/tmp/Xorg.crouton.1.log" for additional information.
[ 76038.639] (EE)
[ 76038.651] (EE) Server terminated with error (1). Closing log file.

I need to restart to restore /dev/dri to its normal state, though. Results to come.

Why were you modifying /dev/dri on a Pixel 2?  Definitely reboot and try again.

Beats me! I just do what the people in the comments tell me 😆

Same kernel panic stuff all the way to DRI2 from my last attempt. Here's what it says after that (which includes a switch from crouton to ChromeOS using Crtl + Alt + Shift + <--, switching back to crouton, and logging out):
Loading extension GLX
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
crouton: version 1-20161012155921~master:68e8a354
release: trusty
architecture: amd64
xmethod: xorg
targets: xfce,touch
host: version 8530.93.0 (Official Build) stable-channel samus
kernel: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
_IceTransmkdir: ERROR: euid != 0,directory /tmp/.ICE-unix will not be created.
xfce4-session: No gpg or ssh authentication agent found
/usr/bin/xbindkeys_autostart: line 24: CONF: unbound variable

(xfwm4:18503): GLib-CRITICAL **: g_str_has_prefix: assertion 'prefix != NULL' failed

(xfwm4:18503): xfwm4-WARNING **: The property '/general/double_click_distance' of type int is not supported

(polkit-gnome-authentication-agent-1:18519): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed

(polkit-gnome-authentication-agent-1:18519): polkit-gnome-1-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(xfsettingsd:18550): GLib-CRITICAL **: g_str_has_prefix: assertion 'prefix != NULL' failed

(xfce4-panel:18509): Gtk-CRITICAL **: IA__gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed

(xfce4-panel:18509): Gtk-CRITICAL **: IA__gtk_widget_show: assertion 'GTK_IS_WIDGET (widget)' failed
(II) AIGLX: Suspending AIGLX clients for VT switch

(xfce4-session:18477): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Running exit commands...
/usr/bin/xinit: connection to X server lost

waiting for X server to shut down xscreensaver: 18:29:29: SIGHUP received: restarting...
xscreensaver: 18:29:29: running as tim/tim (1000/1000)

Hangup
xfce4-volumed: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
xscreensaver: 18:29:29: Can't open display: :1.0
xscreensaver: 18:29:29: running as tim/tim (1000/1000)

xscreensaver: 18:29:29: Errors at startup are usually authorization problems.
              But you're not logging in as root (good!) so something
              else must be wrong.  Did you read the manual and the FAQ?

              http://www.jwz.org/xscreensaver/faq.html
              http://www.jwz.org/xscreensaver/man.html

(EE) Server terminated successfully (0). Closing log file.

Unmounting /mnt/stateful_partition/crouton/chroots/trusty...
Sending SIGTERM to processes under /mnt/stateful_partition/crouton/chroots/trusty...

@tdingman you seem to be referring to a totally different issue involving switching and stuff.  Could you please find and post your tests to the relevant issue (or create one of one doesn't exist)?

@dnschneid the switching is incidental, I just included it for completeness. Here's the bottom of the log if I just sudo startxfce4 and then log out:
Loading extension GLX
xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)
crouton: version 1-20161012155921~master:68e8a354
release: trusty
architecture: amd64
xmethod: xorg
targets: xfce,touch
host: version 8530.93.0 (Official Build) stable-channel samus
kernel: Linux localhost 3.14.0 #1 SMP PREEMPT Mon Sep 26 14:47:33 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
_IceTransmkdir: Owner of /tmp/.ICE-unix should be set to root
xfce4-session: No gpg or ssh authentication agent found
/usr/bin/xbindkeys_autostart: line 24: CONF: unbound variable

(polkit-gnome-authentication-agent-1:29906): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed

(polkit-gnome-authentication-agent-1:29906): polkit-gnome-1-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files

(xfce4-session:29830): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
Running exit commands...
/usr/bin/xinit: connection to X server lost

waiting for X server to shut down xscreensaver: 18:46:10: SIGHUP received: restarting...
xfsettingsd: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
xscreensaver: 18:46:10: running as tim/tim (1000/1000)

Hangup
xfce4-volumed: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
xscreensaver: 18:46:11: Can't open display: :1.0
xscreensaver: 18:46:11: running as tim/tim (1000/1000)

xscreensaver: 18:46:11: Errors at startup are usually authorization problems.
              But you're not logging in as root (good!) so something
              else must be wrong.  Did you read the manual and the FAQ?

              http://www.jwz.org/xscreensaver/faq.html
              http://www.jwz.org/xscreensaver/man.html

(EE) Server terminated successfully (0). Closing log file.

Unmounting /mnt/stateful_partition/crouton/chroots/trusty...
Sending SIGTERM to processes under /mnt/stateful_partition/crouton/chroots/trusty...

Except this issue is about having trouble starting X11.  If you can switch, you've already gotten it to the point where it's working, so this is not the right bug.

Following OS has been installed as a VM on Citrix Cloud Platform (Xen Hyper-visor)
Red Hat Enterprise Linux Server release 6.4 (Santiago)
Kernel \r on an  #\m
Log at "/var/log/Xorg.0.log"
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
[    29.026]
X.Org X Server 1.17.4
Release Date: 2015-10-28
[    29.026] X Protocol Version 11, Revision 0
[    29.026] Build Operating System: x86-032 2.6.18-412.el5
[    29.026] Current Operating System: Linux rhel-server-6-4-i386-dvd 2.6.32-358.el6.i686 #1 SMP Tue Jan 29 11:48:01 EST 2013 i686
[    29.027] Kernel command line: ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD console=hvc0  KEYTABLE=us rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=129M@0M rd_LVM_LV=VolGroup/lv_root rd_NO_DM rhgb quiet graphical utf8
[    29.027] Build Date: 02 November 2016  01:02:08PM
[    29.028] Build ID: xorg-x11-server 1.17.4-16.el6
[    29.028] Current version of pixman: 0.32.8
[    29.028]    Before reporting problems, check https://www.redhat.com/apps/support/
to make sure that you have the latest version.
[    29.028] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    29.029] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Mar 30 13:16:21 2017
[    29.030] (==) Using config file: "/etc/X11/xorg.conf"
[    29.030] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    29.030] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    29.031] Parse error on line 5 of section Device in file /etc/X11/xorg.conf
"SubSection" is not a valid keyword in this section.
[    29.031] (EE) Problem parsing the config file
[    29.031] (EE) Error parsing the config file
[    29.031] (EE)
Fatal server error:
[    29.031] (EE) no screens found(EE)
[    29.031] (EE)
Please consult the Red Hat, Inc. support
at https://www.redhat.com/apps/support/
for help.
[    29.031] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    29.031] (EE)
[    29.032] (EE) Server terminated with error (1). Closing log file.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''


Fixing bugs in DSDL compiler

Found a couple of bugs in the template used by the DSDL compiler:

All elements in static arrays were decoded as primitive types even if they were compound types.
Signedness of return code was not checked before incrementing offset value for decode_internal of compound types.
Offset were not incremented for compound types during encoding.

Edit: Found out I had made a mistake and the last point actually were correct. Reverted those changes now, so only the first two remains.

Due to #137 being merged on master, I am closing this hoping to rewrite the compiler from scratch using Nunavut.


MultiSearchParameters missing vector_query field

With the explosion of GPT related apps I was looking to see if this library could support vector searches and for the most part it looked good with just a small omission.
For vector searches the MultiSearchParameters class is missing a vector_query field.  The vector query is a list of floats along with a k value denoting the number of documents to return.  There can also be an "id" portion of the vector query if you want to find documents that are similar to an existing document.  Furthermore, there can also be a "flat_search_cutoff" parameter for brute-force searching purposes.
See Nearest Neighbor Vector Search
Here is a javascript sample query:
let searchRequests = {
  'searches': [
    {
      'collection': 'docs',
      'q': '*',
      'vector_query' : 'vec:([0.96826, 0.94, 0.39557, 0.306488], k:100)'
    }
  ]
}
let commonSearchParams = {}
client.multiSearch.perform(searchRequests, commonSearchParams)

Here is a sample response:
{
  "facet_counts": [],
  "found": 1,
  "hits": [
    {
      "document": {
        "id": "0",
        "vec": [
          0.04, 0.234, 0.113, 0.001
        ]
      },
      "highlight": {
        "full": {},
        "snippet": {}
      },
      "highlights": [],
      "vector_distance": 0.19744956493377686
    }
  ],
  "out_of": 1,
  "page": 1,
  "request_params": {
    "collection_name": "docs",
    "per_page": 10,
    "q": "*"
  },
  "search_cutoff": false,
  "search_time_ms": 0
}

Hi @tanczosm,
Thanks for creating the issue. I'll take a look when I get the time.
// Rune

Hi @tanczosm,
Is it fine if I just make the vector_query a string? I might implement a helper function in the future, that can convert a typed C# object into a string query.

That is totally fine with me.
On Sat, Apr 29, 2023, 10:21 AM Rune Nielsen @.***>
wrote:

Hi @tanczosm https://github.com/tanczosm,
Is it fine if I just make the vector_query a string? I might implement a
helper function in the future, that can convert a typed C# object into a
string query.
—
Reply to this email directly, view it on GitHub
https://github.com/DAXGRID/typesense-dotnet/issues/145#issuecomment-1528800029,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAUHLRDDDDOAL5EAEDQFVM3XDUPYFANCNFSM6AAAAAAXI6SAPE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @tanczosm,
I've created a pull request with support for vector search. The pull-request contains an example showcasing how the API works, do you mind taking a look and check if it supports all the requirements you have, before I merge it in?

I updated PR #146 with some additional code for VectorQuery objects.  After giving it some more thought, given how common it will be to work with embeddings as arrays of floats there definitely is going to be a need for something that can encode the search query.
I included code to make all that possible.

@tanczosm I can see in your example that you've implemented it using a float do you know what level of precision is needed, the reason I am asking is if we would ever be in a situation where double precision is needed?

The Typesense implementation is an array of float values, which is probably
all that matters.  I haven't seen anything but floats and all the
embeddings I pulled from OpenAI are also floats.
On Mon, May 1, 2023, 3:47 PM Rune Nielsen @.***> wrote:

@tanczosm https://github.com/tanczosm I can see in your example that
you've implemented it using a float do you know what level of precision
is needed, the reason I am asking is if we would ever be in a situation
where double precision is needed?
—
Reply to this email directly, view it on GitHub
https://github.com/DAXGRID/typesense-dotnet/issues/145#issuecomment-1530126238,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAUHLREOYZTSXVN2MGPHBCDXEAHNTANCNFSM6AAAAAAXI6SAPE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Ok, I'll switch to floats then :+1:

Resolved in #146

Hi @tanczosm, thanks for the contributions, I've released a new version 6.4.0 that contains the changes. :)


NPM Contributor

Hey,
Would you mind adding me as an NPM contributor? I can push the RN0.25+ fixes as a new version.

+1

+1

@dancormier is there a reason you haven't responded to this?

Hey all!
With a little nudging, I've finally added @tomauty as a maintainer to react-native-swipeout! Sorry for the delay! I've been devoted to a personal project and have been neglecting my swipeout responsibilities.
I'd also encourage everyone interested in this component to checkout React Native's own experimental work for a swipable row
Thanks for the help and your patience everyone!


where autoformatting occasionally produces incorrect code

This example code should be valid:
import IO from "IO"
import List from "List"

export type Example = Input(String) | Garbage

noGarbo :: List Example -> List Example
noGarbo = List.reject(where {
  Garbage => true
  _ => false
})

main = () => {
  noGarbo([Garbage, Garbage, Input("shit"), Garbage]) |> IO.trace("hey!")
}

However, it auto-formats noGarbo to a form which is syntactically invalid:
noGarbo :: List Example -> List Example
noGarbo = List.reject(where { Garbage => true_ => false })

This is true for these alternative forms as well:
Expand for more

noGarbo :: List Example -> List Example
noGarbo = List.reject((x) => where (x) {
  Garbage => true
  (_) => false
})

noGarbo :: List Example -> List Example
noGarbo = List.reject(where {
  Garbage => true
  (_) => false
})

// this one isn't correct / the same, but results in the same error on format:
noGarbo :: List Example -> List Example
noGarbo = List.reject(where {
  (_) => false
  Garbage => true
})

Closed by #111


Adds auxcov Code Coverage library

Splits the debug_server crate into a new instruction_hooking crate.
Adds auxcov crate which uses instruction_hooking to provide line by line code coverage. (GPL)
Adds setting for rust-anaylzer which properly sets the target to i

Working concept can be viewed here: https://app.codecov.io/gh/tgstation/tgstation

Please see #66 for the build fixes


How to get the Coral Dev Board to auto run a detection inference on power-up

Hello,
I have an object detection model that I am able to run using the CLI. It takes the video feed from a USB camera plugged in and displays to the connected screen via HDMI.
I am unable to get this script to auto run on power-up.
When I convert this to s systemd / systemctl service I get the following error:
`mendel@red-finch:~$ sudo systemctl status detect.service
● detect.service - IFP Detector
Loaded: loaded (/lib/systemd/system/detect.service; static; vendor preset: enabled)
Active: active (running) since Tue 2020-05-19 11:09:08 UTC; 12s ago
Main PID: 4004 (python3)
Tasks: 14 (limit: 797)
Memory: 157.5M
CGroup: /system.slice/detect.service
└─4004 /usr/bin/python3 -W ignore -u detect.py
May 19 11:09:08 red-finch systemd[1]: Started IFP Detector.
May 19 11:09:12 red-finch python3[4004]: Unable to init server: Could not connect: Connection refused
May 19 11:09:12 red-finch python3[4004]: Traceback (most recent call last):
May 19 11:09:12 red-finch python3[4004]:   File "detect.py", line 174, in
May 19 11:09:12 red-finch python3[4004]:     main()
May 19 11:09:12 red-finch python3[4004]:   File "detect.py", line 128, in main
May 19 11:09:12 red-finch python3[4004]:     geo = screen.get_monitor_geometry(screen.get_primary_monitor())
May 19 11:09:12 red-finch python3[4004]: AttributeError: 'NoneType' object has no attribute 'get_monitor_geometry'
`
I am guessing that the script is unable to connect to the wayland display server which is why I am unable to find the resolution of the connected monitor.
Any help on how to get this to auto run would be appreciated!
Thanks.

Hello, could you take a look at my example service file:
[Unit]
Description=systemd auto face detection service
After=weston.target

[Service]
PAMName=login
Type=simple
User=mendel
WorkingDirectory=/home/mendel
Environment=DISPLAY=:0
ExecStart=/bin/bash /usr/bin/detect_service.sh
Restart=always

[Install]
WantedBy=multi-user.target

The detect_service.sh script just runs this:
edgetpu_detect --model fullpath/mobilenet_ssd_v2_coco_quant_postprocess_edgetpu.tflite --label fullpath/coco_labels.txt

I believe what you need is the After=weston.service and the Environment=DISPLAY=:0
I have the whole instruction here.

Thanks! This works.


Support Query input from URL on report collector side + integration test

This builds on top #1509 and #1508 and supports polling for inputs mode on the report collector side and adds an integration test to verify correctness of this setup end-to-end.
Test passes, so it seems we are quite close

I didn't have a chance to review #1508 yet, but the integration test changes look good to me.

#1514 will fix the test failures.

yea we don't get coverage for integration tests :(


The write stream is not closed when executing the command 'tracing off'

Describe the bug
The write stream is not closed when executing the command 'TRACING OFF'
 private void operateTracing(TracingPlan plan) {     IoTDBDescriptor.getInstance().getConfig().setEnablePerformanceTracing(plan.isTracingOn());   }

I’ll fix it ASAP

Fixed in PR #2961


Restart cursor in ubuntu

How can i restart cursor appimage application in ubuntu

you should be fine with just closing and re-opening the app