text:
Feat/quem somos

Fix #34
Qual o propósito dessa pull request?
Desenvolver a pagina do nosso time
O que foi feito?
Incluido um arquivo estativo, e desenvolvimento do componente do time.
Como suas mudanças podem ser testadas?
Screenshots ou exemplos de uso

Tipo de mudanças

[ ] Bug fix (non-breaking change which fixes an issue)
[x] Nova feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Requires change to documentation, which has been updated accordingly.

Obs*: Pensei em redirecionar pra o site da gnt, mas n temos uma pagina /equipe deixo aqui a sugestao

repo: OpenDevUFCG/IssueAi


text:
make: *** [Makefile:17: build] Error 127

Summary
Windows 11 WSL2 Ubuntu 20.04
System:~/OpenDevin$ make build
Building project...
Pulling Docker image...
Using default tag: latest
latest: Pulling from opendevin/sandbox
Digest: sha256:486e3da1d7c8ec54a2e3269071eed9b91bc75b82ca5d1ac1760d33883c39e575
Status: Image is up to date for ghcr.io/opendevin/sandbox:latest
ghcr.io/opendevin/sandbox:latest
What's Next?
View a summary of image vulnerabilities and recommendations → docker scout quickview ghcr.io/opendevin/sandbox
Installing Python dependencies...
make: python: No such file or directory
make: *** [Makefile:17: build] Error 127

Is Python in your PATH? What is the output of python --version?

@dorbanianas Thanks! I have a fresh install and everything is the latest version. I'll keep an eye out for the merge. Really excited to give this a try.

im new using ubuntu how can i use the command make to install OpenDevin? i don't quite understand what to do or how command "make" works

@Jaitwo you can simply follow the steps in the readme and how make works just you define a file named Makefile where you give some shortcuts like build, install... Where the users of the project can run a lot of these commands using just the shortcut that you have defined, this is my definition of course to make it simple for you, Now how you can use it? just you need to go to the linux terminal and type make build to build the venv and install the dependencies, after that use make setup-config to setup your model config and finally make run to run the full project, you may encounter so bugs but we are working to fix them asap.

Just make these changes in your Makefile. this will fix the issue

Replaced python with python3 to specify the Python 3 executable.
Changed pip3 to pip because it's invoked using python3 -m pip.

@python3 -m pip install pipenv
@python3 -m pipenv install -v

edit "makefile" replace all "python" with "python3"

edit "makefile" replace all "python" with "python3"

make build is so far working, thank you.

okay so I also had to install npm in the environment itself

@rbren @neubig what do you think about including the installation of python3.11 and npm in the make build?

installing a full programming language is kind of aggressive for make 😅
IMO make shouldn't have system-wide side-effects, as much as possible

Can we fail the make with a good error message if npm or python isn't installed or on an old version?

Most of the compatibility work is done in the Makefile at https://github.com/OpenDevin/OpenDevin/pull/650
Regarding the node and npm version inspection, I believe it has been implemented in https://github.com/OpenDevin/OpenDevin/pull/659

@rbren we can run the process in the background and show some good looking messages and wait for it until it finishes

But I guess for now maybe it's not necessary because it will add more complexity and edge cases to handle that we are not supposed to think of right now

now we handle check python and npm and docker and for the pnpm if npm is installed the pnpm get enabled also added some styling 😅, more details here #634

source: gharchive/issue

authors: Ido108 Jaitwo abhawan888 dorbanianas dracoix rahulraikwar00 rbren xcodebuild yimothysu

repo: OpenDevin/OpenDevin

license: MIT

license_type: permissive

license_source: github-api


text:
BLIP-2 Baseline

Hi OpenDriveLab
thanks for releasing this project it is very helpful. In the paper you mention BLIP-2 baseline, but code so far only has Llama-Adapter. I saw previously that you were planning to release the BLIP-2 version too, do you have a timeframe for this, it would be immensely useful for our project! Many thanks in advance.
Best regards
Luke

We recommend the new codebase of Llama-Adapter as it's much cleaner and the performance is higher than BLIP-2. Still we may clean up the old BLIP-2 codebase at our spare time but it’s not something we can promise for now.

authors: ChonghaoSima LCTPalmer

repo: OpenDriveLab/DriveLM


text:
include "larger scale usage" of energy models in the oeo

Description of the issue
This comes from the factsheets for energy models.
Include, maybe as annotation property, larger scale usage of models
Ideas of solution
Workflow checklist

[ ] I discussed the issue with someone else than me before working on a solution
[ ] I already read the latest version of the workflow for this repository
[ ] The goal of this ontology is clear to me

I am aware that

[ ] every entry in the ontology should have a definition
[ ] classes should arise from concepts rather than from words

Where does this come from? I did not find this in any of the fact sheets.

maybe it got deleted meanwhile? I'll close this issue then until it is needed

authors: akleinau l-emele

repo: OpenEnergyPlatform/ontology


text:
Feature 1311 update vehicles

Summary of the discussion
Convert existing vehicle classes by propulsion type into equivalent classes to establish an inferred multi-hierarchical structure within vehicles.

Type of change (CHANGELOG.md)
Added

current collector: A current collector is a energy converting component that transfers electrical energy between a stationary conductor and an grid supplied electric vehicle.
gas turbine vehicle: A gas turbine vehicle is a vehicle that uses a gas turbine for propulsion.
jet fuel vehicle: A jet fuel vehicle is a gas turbine vehicle that uses a jet fuel turbine.
jet fuel turbine: A jet fuel turbine is a turbine fueled with jet fuel. (Alternative labels: aviation turbine and jet turbine.)

Updated

Adapt electric vehicle and convert to equivalent class: An electric vehicle (abbreviated as EV) is a vehicle that uses one or more ~electric motors for propulsion~ electric traction motor.
Adapt battery electric vehicle and convert to equivalent class: A battery electric vehicle (BEV) is an electric vehicle that stores energy in ~an on-board battery~ traction battery.
Adapt grid supplied electric vehicle and convert to equivalent class: A grid supplied electric vehicle is an electric vehicle that ~uses~ has a current collector to use electrical energy ~via a conductor~.
Adapt internal combustion vehicle and convert to equivalent class: An internal combustion vehicle is a vehicle ~powered by~ that uses an internal combustion engine for propulsion.
Convert fuel cell vehicle, diesel vehicle, gasoline vehicle, gas vehicle, compressed gas vehicle, liquefied natural gas vehicle, liquefied petroleum gas vehicle and plug-in hybrid electric vehicle to equivalent classes.
Add axiom to e-bike: e-bike 'has part' some 'traction battery'.

Workflow checklist
Automation
Closes #1311
PR-Assignee

[ ] 🐙 Follow the Pull Request Workflow
[ ] 📝 Update the CHANGELOG.md
[ ] 📙 Add #'s to term tracker item

Reviewer

[ ] 🐙 Follow the Reviewer Guide
[ ] 🐙 Provided feedback and show sufficient appreciation for the work done

Thank you very much for thoroughly reviewing this large PR. I accepted all your change proposals.

source: gharchive/pull-request


text:
Remove internal jQuery dependency in F2.js

Remove jQuery dependency in F2.js making library capable of running alongside frameworks such as jQuery, Dojo, ExtJS, PrototypeJS, etc. without any additional overhead. Possibly replace jQuery dependency with Zepto.js to reduce effort.

Could be a candidate to address this: https://github.com/bendc/sprint

license_source: bigquery


text:
5.4.0+1升级到5.5.0后，点击输入框（弹起键盘）报错了

升级5.5.0后，点击输入框，弹起键盘，会出现如下错误：

======== Exception caught by widgets library =======================================================
The following assertion was thrown building _MediaQueryFromWindow(state: _MediaQueryFromWindowState#9c4cc):
'package:flutter/src/widgets/framework.dart': Failed assertion: line 5356 pos 14: '() {
        // check that it really is our descendant
        Element? ancestor = dependent._parent;
        while (ancestor != this && ancestor != null)
          ancestor = ancestor._parent;
        return ancestor == this;
      }()': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was:
  ScreenUtilInit ScreenUtilInit:file:///Users/lfh/Developer/wakeai/yzzw_app/lib/src/app.dart:32:14
When the exception was thrown, this was the stack:
#2      InheritedElement.notifyClients (package:flutter/src/widgets/framework.dart:5356:14)
#3      ProxyElement.updated (package:flutter/src/widgets/framework.dart:5118:5)
#4      InheritedElement.updated (package:flutter/src/widgets/framework.dart:5338:13)
#5      ProxyElement.update (package:flutter/src/widgets/framework.dart:5106:5)
#6      Element.updateChild (package:flutter/src/widgets/framework.dart:3501:15)
#7      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4780:16)
#8      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4928:11)
#9      Element.rebuild (package:flutter/src/widgets/framework.dart:4477:5)
#10     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2659:19)
#11     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
#12     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#13     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#14     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
#15     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#19     _invoke (dart:ui/hooks.dart:151:10)
#20     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#21     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/object.dart': Failed assertion: line 2517 pos 12: 'attached': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:2517:12)
#3      EditableTextState._updateSizeAndTransform (package:flutter/src/widgets/editable_text.dart:2669:48)
#4      EditableTextState._updateSizeAndTransform.<anonymous closure> (package:flutter/src/widgets/editable_text.dart:2672:49)
#5      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#6      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089:9)
#7      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#11     _invoke (dart:ui/hooks.dart:151:10)
#12     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#13     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/object.dart': Failed assertion: line 2517 pos 12: 'attached': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:2517:12)
#3      RenderBox.localToGlobal (package:flutter/src/rendering/box.dart:2603:39)
#4      RenderEditable._snapToPhysicalPixel (package:flutter/src/rendering/editable.dart:2238:33)
#5      RenderEditable.getLocalRectForCaret (package:flutter/src/rendering/editable.dart:1732:23)
#6      EditableTextState._updateComposingRectIfNeeded (package:flutter/src/widgets/editable_text.dart:2690:40)
#7      EditableTextState._updateComposingRectIfNeeded.<anonymous closure> (package:flutter/src/widgets/editable_text.dart:2695:49)
#8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089:9)
#10     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#14     _invoke (dart:ui/hooks.dart:151:10)
#15     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#16     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/object.dart': Failed assertion: line 2517 pos 12: 'attached': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:2517:12)
#3      RenderBox.localToGlobal (package:flutter/src/rendering/box.dart:2603:39)
#4      RenderEditable._snapToPhysicalPixel (package:flutter/src/rendering/editable.dart:2238:33)
#5      RenderEditable.getLocalRectForCaret (package:flutter/src/rendering/editable.dart:1732:23)
#6      EditableTextState._updateCaretRectIfNeeded (package:flutter/src/widgets/editable_text.dart:2704:47)
#7      EditableTextState._updateCaretRectIfNeeded.<anonymous closure> (package:flutter/src/widgets/editable_text.dart:2708:49)
#8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089:9)
#10     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#14     _invoke (dart:ui/hooks.dart:151:10)
#15     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#16     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/object.dart': Failed assertion: line 2517 pos 12: 'attached': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:2517:12)
#3      RenderViewportBase.getOffsetToReveal (package:flutter/src/rendering/viewport.dart:796:52)
#4      RenderViewportBase.showInViewport (package:flutter/src/rendering/viewport.dart:1165:55)
#5      RenderViewportBase.showOnScreen (package:flutter/src/rendering/viewport.dart:1111:46)
#6      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#7      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#8      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#9      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#10     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#11     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#12     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#13     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#14     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#15     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#16     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#17     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#18     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#19     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#20     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#21     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#22     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#23     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#24     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#25     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#26     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#27     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#28     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#29     EditableTextState._scheduleShowCaretOnScreen.<anonymous closure> (package:flutter/src/widgets/editable_text.dart:2454:22)
#30     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#31     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089:9)
#32     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#36     _invoke (dart:ui/hooks.dart:151:10)
#37     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#38     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/object.dart': Failed assertion: line 2517 pos 12: 'attached': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

When the exception was thrown, this was the stack:
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:2517:12)
#3      RenderViewportBase.getOffsetToReveal (package:flutter/src/rendering/viewport.dart:796:52)
#4      RenderViewportBase.showInViewport (package:flutter/src/rendering/viewport.dart:1165:55)
#5      RenderViewportBase.showOnScreen (package:flutter/src/rendering/viewport.dart:1111:46)
#6      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#7      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#8      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#9      RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#10     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#11     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#12     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#13     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#14     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#15     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#16     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#17     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#18     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#19     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#20     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#21     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#22     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#23     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#24     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#25     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#26     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#27     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#28     RenderObject.showOnScreen (package:flutter/src/rendering/object.dart:3066:20)
#29     EditableTextState._scheduleShowCaretOnScreen.<anonymous closure> (package:flutter/src/widgets/editable_text.dart:2454:22)
#30     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#31     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089:9)
#32     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#36     _invoke (dart:ui/hooks.dart:151:10)
#37     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#38     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
Duplicate GlobalKey detected in widget tree.

The following GlobalKey was specified multiple times in the widget tree. This will lead to parts of the widget tree being truncated unexpectedly, because the second time a key is seen, the previous instance is moved to the new location. The key was:
- [LabeledGlobalKey<NavigatorState>#4a1c8]
This was determined by noticing that after the widget with the above global key was moved out of its previous parent, that previous parent never updated during this frame, meaning that it either did not update at all or updated before the widget was moved, in either case implying that it still thinks that it should have a child with that global key.
The specific parent that did not update after having one or more children forcibly removed due to GlobalKey reparenting is:
- Listener(listeners: [down], behavior: deferToChild, renderObject: RenderPointerListener#ca1f4 NEEDS-LAYOUT NEEDS-COMPOSITING-BITS-UPDATE DETACHED)
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0      BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2991:15)
#1      BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:3016:8)
#2      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:19)
#3      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
#6      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#10     _invoke (dart:ui/hooks.dart:151:10)
#11     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#12     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 3 frames from dart:async)
====================================================================================================

同时输入框丢失焦点时也会报错：

======== Exception caught by widgets library =======================================================
The following assertion was thrown building _MediaQueryFromWindow(state: _MediaQueryFromWindowState#9c4cc):
'package:flutter/src/widgets/framework.dart': Failed assertion: line 5356 pos 14: '() {
        // check that it really is our descendant
        Element? ancestor = dependent._parent;
        while (ancestor != this && ancestor != null)
          ancestor = ancestor._parent;
        return ancestor == this;
      }()': is not true.

Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
  https://github.com/flutter/flutter/issues/new?template=2_bug.md

The relevant error-causing widget was:
  ScreenUtilInit ScreenUtilInit:file:///Users/lfh/Developer/wakeai/yzzw_app/lib/src/app.dart:32:14
When the exception was thrown, this was the stack:
#2      InheritedElement.notifyClients (package:flutter/src/widgets/framework.dart:5356:14)
#3      ProxyElement.updated (package:flutter/src/widgets/framework.dart:5118:5)
#4      InheritedElement.updated (package:flutter/src/widgets/framework.dart:5338:13)
#5      ProxyElement.update (package:flutter/src/widgets/framework.dart:5106:5)
#6      Element.updateChild (package:flutter/src/widgets/framework.dart:3501:15)
#7      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4780:16)
#8      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4928:11)
#9      Element.rebuild (package:flutter/src/widgets/framework.dart:4477:5)
#10     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2659:19)
#11     WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:882:21)
#12     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#13     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#14     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
#15     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#19     _invoke (dart:ui/hooks.dart:151:10)
#20     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#21     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)
====================================================================================================

======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
Duplicate GlobalKey detected in widget tree.

The following GlobalKey was specified multiple times in the widget tree. This will lead to parts of the widget tree being truncated unexpectedly, because the second time a key is seen, the previous instance is moved to the new location. The key was:
- [LabeledGlobalKey<NavigatorState>#4a1c8]
This was determined by noticing that after the widget with the above global key was moved out of its previous parent, that previous parent never updated during this frame, meaning that it either did not update at all or updated before the widget was moved, in either case implying that it still thinks that it should have a child with that global key.
The specific parent that did not update after having one or more children forcibly removed due to GlobalKey reparenting is:
- Listener(listeners: [down], behavior: deferToChild, renderObject: RenderPointerListener#ca1f4 NEEDS-LAYOUT NEEDS-COMPOSITING-BITS-UPDATE DETACHED)
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0      BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2991:15)
#1      BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:3016:8)
#2      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:19)
#3      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
#6      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#10     _invoke (dart:ui/hooks.dart:151:10)
#11     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#12     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 3 frames from dart:async)
====================================================================================================

======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
Duplicate GlobalKey detected in widget tree.

The following GlobalKey was specified multiple times in the widget tree. This will lead to parts of the widget tree being truncated unexpectedly, because the second time a key is seen, the previous instance is moved to the new location. The key was:
- [LabeledGlobalKey<NavigatorState>#4a1c8]
This was determined by noticing that after the widget with the above global key was moved out of its previous parent, that previous parent never updated during this frame, meaning that it either did not update at all or updated before the widget was moved, in either case implying that it still thinks that it should have a child with that global key.
The specific parent that did not update after having one or more children forcibly removed due to GlobalKey reparenting is:
- Listener(listeners: [down], behavior: deferToChild, renderObject: RenderPointerListener#ca1f4 NEEDS-LAYOUT NEEDS-COMPOSITING-BITS-UPDATE DETACHED)
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0      BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2991:15)
#1      BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:3016:8)
#2      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:19)
#3      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
#6      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#10     _invoke (dart:ui/hooks.dart:151:10)
#11     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#12     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 3 frames from dart:async)
====================================================================================================

======== Exception caught by widgets library =======================================================
The following assertion was thrown while finalizing the widget tree:
Duplicate GlobalKey detected in widget tree.

The following GlobalKey was specified multiple times in the widget tree. This will lead to parts of the widget tree being truncated unexpectedly, because the second time a key is seen, the previous instance is moved to the new location. The key was:
- [LabeledGlobalKey<NavigatorState>#4a1c8]
This was determined by noticing that after the widget with the above global key was moved out of its previous parent, that previous parent never updated during this frame, meaning that it either did not update at all or updated before the widget was moved, in either case implying that it still thinks that it should have a child with that global key.
The specific parent that did not update after having one or more children forcibly removed due to GlobalKey reparenting is:
- Listener(listeners: [down], behavior: deferToChild, renderObject: RenderPointerListener#9e300 NEEDS-LAYOUT NEEDS-COMPOSITING-BITS-UPDATE DETACHED)
A GlobalKey can only be specified on one widget at a time in the widget tree.
When the exception was thrown, this was the stack:
#0      BuildOwner.finalizeTree.<anonymous closure> (package:flutter/src/widgets/framework.dart:2991:15)
#1      BuildOwner.finalizeTree (package:flutter/src/widgets/framework.dart:3016:8)
#2      WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:884:19)
#3      RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:363:5)
#4      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#5      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1081:9)
#6      SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#10     _invoke (dart:ui/hooks.dart:151:10)
#11     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#12     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 3 frames from dart:async)
====================================================================================================

退回5.4.0+1，除了触发多次rebuild外，一切正常。

[✓] Flutter (Channel stable, 2.10.3, on macOS 11.6.5 20G527 darwin-x64, locale zh-Hans-CN)
• Flutter version 2.10.3 at /Users/lfh/.fvm/versions/2.10.3
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 7e9793dee1 (8 weeks ago), 2022-03-02 11:23:12 -0600
• Engine revision bd539267b4
• Dart version 2.16.1
• DevTools version 2.9.2
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/lfh/Library/Android/sdk
• Platform android-31, build-tools 30.0.3
• ANDROID_HOME = /Users/lfh/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
[✓] IntelliJ IDEA Ultimate Edition (version 2020.2.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] Connected device (3 available)
• MI 6 (mobile)                       • 98f5b511                             • android-arm64  • Android 9 (API 28)
• iPad mini (6th generation) (mobile) • B9C08480-8B05-46E4-9298-0D4FF0CE04BF • ios            • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
• Chrome (web)                        • chrome                               • web-javascript • Google Chrome 100.0.4896.127

遇到了同样的问题，所有输入框，只要键盘弹出就会报错
Can't find keyplane that supports type 5 for keyboard iPhone-PortraitTruffle-PhonePad; using 26000_PortraitTruffle_iPhone-Complex-Pad_Default
======== Exception caught by scheduler library =====================================================
The following assertion was thrown during a scheduler callback:
'package:flutter/src/rendering/object.dart': Failed assertion: line 2517 pos 12: 'attached': is not true.
Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause.
In either case, please report this assertion by filing a bug on GitHub:
https://github.com/flutter/flutter/issues/new?template=2_bug.md
When the exception was thrown, this was the stack:
#2      RenderObject.getTransformTo (package:flutter/src/rendering/object.dart:2517:12)
#3      RenderBox.localToGlobal (package:flutter/src/rendering/box.dart:2603:39)
#4      RenderEditable._snapToPhysicalPixel (package:flutter/src/rendering/editable.dart:2238:33)
#5      RenderEditable.getLocalRectForCaret (package:flutter/src/rendering/editable.dart:1732:23)
#6      EditableTextState._updateCaretRectIfNeeded (package:flutter/src/widgets/editable_text.dart:2704:47)
#7      EditableTextState._updateCaretRectIfNeeded. (package:flutter/src/widgets/editable_text.dart:2708:49)
#8      SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1144:15)
#9      SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1089:9)
#10     SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:995:5)
#14     _invoke (dart:ui/hooks.dart:151:10)
#15     PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:308:5)
#16     _drawFrame (dart:ui/hooks.dart:115:31)
(elided 5 frames from class _AssertionError and dart:async)

刚刚又测试了下，不弹出键盘也会报错（用iPad mini模拟器）

刚刚又测试了下，不弹出键盘也会报错（用iPad mini模拟器）

已经强制使用     5.4.0+1

5.4.0+1虽然会触发rebuild，但是在真机上性能还是可以接受的，但是在模拟器上就惨不忍睹了

Sorry, version 5.5.0 is under development and is not stable yet.

同样的问题 所有的输入框在弹起键盘时都会报错 收起键盘时也会报错

请先退回5.4

I am downgraded to 5.4.0+1  and still had the same issue when opening the keyboard
with this error
 The following assertion was thrown building MediaQueryFromWindow (state: _MediaQueryFromWindowState#0539d): 'package:flutter/src/widgets/framework.dart': Failed assertion: line 5356 pos 14: '() { // check that it really is our descendar dant Element? ancestor = dependent._parent; while (ancestor != this && ancestor != null) ancestor ancestor._parent; return ancestor == this; }()': is not true.

I am downgraded to 5.4.0+1 and still had the same issue when opening the keyboard with this error
The following assertion was thrown building MediaQueryFromWindow (state: _MediaQueryFromWindowState#0539d):
'package:flutter/src/widgets/framework.dart': Failed assertion: line 5356 pos 14: '() {
// check that it really is our descendar
dant
Element? ancestor = dependent._parent;
while (ancestor != this && ancestor != null)
ancestor ancestor._parent;
return ancestor == this;
}()': is not true.

Please confirm that the version of 5.4.0 + 1 is used, and then describe the problem

I fixed it temporarily by using 5.0.0+2 version and set MaterialApp builder context to ScreenUtil, something like this:
ScreenUtilInit(
          builder: (_)=>MaterialApp(
            builder: (context, widget) {
              ScreenUtil.setContext(context);
              return widget!;
            },
            title: appName,
          )
      ),

Hope to fix the issue in the latest version

@ElshiatyTube  thanks for your help
ScreenUtil.setContext(context); solve the error when keyboard opened
but i had the same issue when i used .sp in textStyle in ThemeData which throw the same error here and i solve it by remove this .sp from TextStyle

@ahmednasser74 @ElshiatyTube @lizhuoyuan @meng-fucius @shichunlei @lianfanghua , Please try with master branch and tell us if it works with you so we can ship a stable version in pub.dev.
dependencies:

  flutter_screenutil:
    git:
      url: https://github.com/OpenFlutter/flutter_screenutil
      branch: master

setContext被删除了吗？
error: The method 'setContext' isn't defined for the type 'ScreenUtil'.

另外在init中，context也直接穿null，也就是说完全放弃和上下文的关系？
ScreenUtil.init(
          null,
          deviceSize: constraints.biggest,
          designSize: designSize,
          splitScreenMode: splitScreenMode,
          minTextAdapt: minTextAdapt,
        );

由于context为null，因此statusBarHeight和bottomBarHeight永远为0，这是对的吗？
而之前的异常已经不会出现了。键盘弹起缩回也不会导致rebuild了。
如果这个版本是稳定版，请同时更新使用方法，谢谢。

@lianfanghua 嗨，我的朋友，我们仍然支持上下文，在保存文件之前推送更改只是一个错误。 现在尝试使用 master 分支。

@lia是的，当我们确保一切都按预期工作时，我们将更新 README。
非常感谢您的帮助和反馈。

Hi @lianfanghua , I have recently publish the new version of the library. Go check it out and if it works fine for you please close this issue, or else drop error log here. Thank you.

@Mounir-Bouaiche 问题已经修复了，非常感谢。

authors: ElshiatyTube Mounir-Bouaiche ahmednasser74 lianfanghua lizhuoyuan meng-fucius shichunlei


text:
[Bug] 在复现MPO实验代码时总是遇到程序突然终止，通过日志无法追溯bug到底发生在哪。

Checklist

[X] 1. I have searched related issues but cannot get the expected help.
[X] 2. The bug has not been fixed in the latest version.
[x] 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug
感谢作者提供非常棒的高质量开源工作！！！
但是我在复现MPO的实验时突然遇到了一个问题，当我在单机八卡h100服务器上复现MPO的实验时会经常遇到模型训练到一半时突然发生如下bug导致程序突然终止，通过log无法判断是什么问题（有一次出现数据集缺少一张RLAIF-V的图像导致在load图像时发现加载失败导致程序终止时的log与下面相同，但是会多一行failed to load image 。。。后来我补上图像后这个问题就没再出现了，但是训练了15小时后程序又出现这样的问题，但是没有其它额外的信息提示问题所在）：
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.
petrel_client is not installed. Using PIL to load images.
Traceback (most recent call last):
  File "/root/paddlejob/workspace/output/zzf/codes/InternVL/internvl_chat/internvl/train/internvl_chat_dpo.py", line 1141, in <module>
    main()
  File "/root/paddlejob/workspace/output/zzf/codes/InternVL/internvl_chat/internvl/train/internvl_chat_dpo.py", line 1126, in main
    train_result = trainer.train(resume_from_checkpoint=checkpoint)
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/transformers/trainer.py", line 1859, in train
    return inner_training_loop(
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/transformers/trainer.py", line 2203, in _inner_training_loop
    tr_loss_step = self.training_step(model, inputs)
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/transformers/trainer.py", line 3147, in training_step
    self.accelerator.backward(loss)
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/accelerate/accelerator.py", line 2240, in backward
    self.deepspeed_engine_wrapped.backward(loss, **kwargs)
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/accelerate/utils/deepspeed.py", line 255, in backward
    self.engine.step()
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/deepspeed/runtime/engine.py", line 2169, in step
    self._take_model_step(lr_kwargs)
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/deepspeed/runtime/engine.py", line 2075, in _take_model_step
    self.optimizer.step()
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 1842, in step
    scaled_global_grad_norm = self.scaled_global_norm()
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/deepspeed/runtime/zero/stage_1_and_2.py", line 1789, in scaled_global_norm
    return torch.norm(torch.stack(norm_groups), p=norm_type)
  File "/root/miniconda3/envs/internvl/lib/python3.9/site-packages/torch/functional.py", line 1611, in norm
    return torch.linalg.vector_norm(input, _p, _dim, keepdim, dtype=dtype)
RuntimeError: linalg.vector_norm: Expected a floating point or complex tensor as input. Got Long

Reproduction
set -x

PARTITION=${PARTITION:-"Intern5"}
GPUS=${GPUS:-8}
GPUS_PER_NODE=${GPUS_PER_NODE:-8}
QUOTA_TYPE=${QUOTA_TYPE:-"reserved"}
NODES=$((GPUS / GPUS_PER_NODE))
CPUS_PER_TASK=${CPUS_PER_TASK:-10}
SRUN_ARGS=${SRUN_ARGS:-""}
BATCH_SIZE=${BATCH_SIZE:-256}
PER_DEVICE_BATCH_SIZE=${PER_DEVICE_BATCH_SIZE:-1}
GRADIENT_ACC=$((BATCH_SIZE / PER_DEVICE_BATCH_SIZE / GPUS))

# export PYTHONPATH="/mnt/petrelfs/wangweiyun/workspace_cz/InternVL/internvl_chat_dev/petrel-oss-python-sdk"
# export PYTHONPATH="${PYTHONPATH}:$(pwd)"
export MASTER_PORT=34229
export TF_CPP_MIN_LOG_LEVEL=3

OUTPUT_DIR='work_dirs/internvl_chat_v2_0/internvl2_8b_internlm2_7b_dynamic_res_mpo_full'

if [ ! -d "$OUTPUT_DIR" ]; then
  mkdir -p "$OUTPUT_DIR"
fi

deepspeed \
  --num_gpus=${GPUS_PER_NODE} \
  internvl/train/internvl_chat_dpo.py \
  --model_name_or_path "../pretrained/InternVL2-8B" \
  --conv_style "internlm2-chat" \
  --output_dir ${OUTPUT_DIR} \
  --meta_path "../data/MMPR/meta.json" \
  --overwrite_output_dir True \
  --force_image_size 448 \
  --down_sample_ratio 0.5 \
  --drop_path_rate 0.1 \
  --pad2square False \
  --freeze_llm False \
  --freeze_mlp False \
  --freeze_backbone False \
  --vision_select_layer -1 \
  --use_data_resampling False \
  --dataloader_num_workers 8 \
  --bf16 True \
  --num_train_epochs 1 \
  --per_device_train_batch_size ${PER_DEVICE_BATCH_SIZE} \
  --gradient_accumulation_steps ${GRADIENT_ACC} \
  --evaluation_strategy "no" \
  --save_strategy "epoch" \
  --save_steps 100 \
  --save_total_limit 100 \
  --learning_rate 5e-6 \
  --weight_decay 0.05 \
  --warmup_ratio 0.03 \
  --lr_scheduler_type "cosine" \
  --logging_steps 1 \
  --max_seq_length 6144 \
  --do_train True \
  --grad_checkpoint True \
  --group_by_length False \
  --dynamic_image_size True \
  --use_thumbnail True \
  --ps_version 'v2' \
  --deepspeed "zero_stage2_offload_config.json" \
  --report_to "tensorboard" \
  --loss_type sigmoid,bco_pair \
  --sigmoid_loss_weight 0.8 \
  --bco_pair_loss_weight 0.2 \
  --rpo_alpha 1 \
  2>&1 | tee -a "${OUTPUT_DIR}/training_log.txt"

Environment
accelerate                1.2.1                    pypi_0    pypi
datasets                  3.2.0                    pypi_0    pypi
deepspeed                 0.13.5                   pypi_0    pypi
flash-attn                2.6.3                    pypi_0    pypi
huggingface-hub           0.27.0                   pypi_0    pypi
python                    3.9.21               he870216_1
tensorboard               2.18.0                   pypi_0    pypi
tokenizers                0.19.1                   pypi_0    pypi
torch                     2.1.0+cu121              pypi_0    pypi
torchaudio                2.1.0+cu121              pypi_0    pypi
torchvision               0.16.0+cu121             pypi_0    pypi
transformers              4.40.0                   pypi_0    pypi
trl                       0.10.1                   pypi_0    pypi

Error traceback
No response

并且我发现下面两行警告只有在程序被突然终止时会出现大量提示（如我在issue中的log），在正常训练过程中不会出现
petrel_client is not installed. Using PIL to load images.
petrel_client is not installed. If you read data locally instead of from ceph, ignore it.

看看内存的变化 有可能是内存满了

看看内存的变化 有可能是内存满了

你遇到同样的问题了吗，目前这个bug的复现成本有些高，在八卡服务器上需要训练到16小时左右才会出现这个bug

repo: OpenGVLab/InternVL


text:
Поддержка UBIFS для процессора Hi3516av100

Запуск OpenIPC на камере Hikvision DS-2CD2345F-IS осуществлён, но, как выяснилось, из-за памяти NAND и файловой системы JFFS периодически происходят сбои. Хотелось бы реализации поддержки UBIFS и для сборки системы под  процессор Hi3516AV100.

Done in the pull #234

authors: cronyx mixatronik

repo: OpenIPC/firmware


text:
oiio: fixed move constructor of ParamValue class.

Description
ParamValue move constructor was not copying the internal ParamValue type.
Checklist:

[x] I have read the contribution guidelines.
[x] If this is more extensive than a small change to existing code, I
have previously submitted a Contributor License Agreement
(individual, and if there is any way my
employers might think my programming belongs to them, then also
corporate).
[x] I have updated the documentation, if applicable.
[x] I have ensured that the change is tested somewhere in the testsuite
(adding new test cases if necessary).
[x] My code follows the prevailing code style of this project.

Please note that this bugfix is an important one. I don't know how ParamValue could have worked before.

LGTM. Good catch!
I suspect that it went unnoticed because it's the "move" constructor, and the reliance on this C++11 feature is relatively new for us? But yeah, surprised it hasn't made noticeable bugs before.

authors: edubois lgritz

repo: OpenImageIO/oiio


text:
Color space adjustment for PPM and PNG files.

PPM by specification is Rec709! Make it so.
PNG files were getting marked as sRGB or Gamma if certain header
attributes were found in the file, but if they were absent, we didn't
designate a color space at all. Change so that the default assumes
sRGB, in the absence of any metadata telling us for sure.
Fixes #3084

For the sake of thoroughness we should note that the PNG spec merely says "choose a likely default gamma value" in the absence of any color space information. sRGB is the right likely value, given that web browsers all make the same choice.

authors: MarkCallow lgritz


text:
Error with SSL while building

Hello im getting this error could you please help me?
I'm compiling on Ubuntu 16.04 LTS with Swift version 4.0.2 (swift-4.0.2-RELEASE) installed via
eval "$(curl -sL https://apt.vapor.sh)"
sudo apt-get install swift vapor

Compile Swift Module 'MongoSocket' (2 sources)
/home/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:32:49: error: use of undeclared type 'SSL'
    private let sslClient: UnsafeMutablePointer<SSL>?
                                                ^~~
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:33:42: error: use of undeclared type 'SSL_METHOD'
    private let sslMethod: UnsafePointer<SSL_METHOD>?
                                         ^~~~~~~~~~
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:34:50: error: use of undeclared type 'SSL_CTX'
    private let sslContext: UnsafeMutablePointer<SSL_CTX>?
                                                 ^~~~~~~
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:217:21: error: use of unresolved identifier 'SSL_library_init'
                    SSL_library_init()
                    ^~~~~~~~~~~~~~~~
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:218:21: error: use of unresolved identifier 'SSL_load_error_strings'
                    SSL_load_error_strings()
                    ^~~~~~~~~~~~~~~~~~~~~~
KittenCTLS.ERR_lib_error_string:1:13: note: did you mean 'ERR_lib_error_string'?
public func ERR_lib_error_string(_ e: UInt) -> UnsafePointer<Int8>!
            ^
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:219:21: warning: 'OPENSSL_config' is deprecated
                    OPENSSL_config(nil)
                    ^
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:220:21: error: use of unresolved identifier 'OPENSSL_add_all_algorithms_conf'
                    OPENSSL_add_all_algorithms_conf()
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:224:30: error: use of unresolved identifier 'SSLv23_client_method'
                let method = SSLv23_client_method()
                             ^~~~~~~~~~~~~~~~~~~~
KittenCTLS.DTLS_client_method:1:13: note: did you mean 'DTLS_client_method'?
public func DTLS_client_method() -> OpaquePointer!
            ^
KittenCTLS.DTLSv1_client_method:2:13: note: did you mean 'DTLSv1_client_method'?
public func DTLSv1_client_method() -> OpaquePointer!
            ^
KittenCTLS.TLS_client_method:1:13: note: did you mean 'TLS_client_method'?
public func TLS_client_method() -> OpaquePointer!
            ^
KittenCTLS.TLSv1_client_method:2:13: note: did you mean 'TLSv1_client_method'?
public func TLSv1_client_method() -> OpaquePointer!
            ^
/home/asd/.build/checkouts/MongoKitten.git--6117878459241174725/Sources/MongoSocket/Socket.swift:234:35: error: use of unresolved identifier 'SSL_CTRL_OPTIONS'
                SSL_CTX_ctrl(ctx, SSL_CTRL_OPTIONS, SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_COMPRESSION, nil)
                                  ^~~~~~~~~~~~~~~~
KittenCTLS.SSL_CTRL_CHAIN:1:12: note: did you mean 'SSL_CTRL_CHAIN'?
public var SSL_CTRL_CHAIN: Int32 { get }
           ^
KittenCTLS.SSL_CTRL_SET_MTU:1:12: note: did you mean 'SSL_CTRL_SET_MTU'?
public var SSL_CTRL_SET_MTU: Int32 { get }
           ^
error: terminated(1): /usr/bin/swift-build-tool -f '/home/asd/.build/debug.yaml' main

Reinstall openssl solved problem with apt-get

For future people looking at this comment: You need to install both libssl-dev and openssl. openssl is usually installed by default on ubuntu, though

authors: Joannis zololol

repo: OpenKitten/MongoKitten

license: mit


text:
Cron / scheduled work not running on agent.

Have a windows RBS running that won't run scheduled work.  Stopped working after a weekly reboot for security patching.
Tried to cycle the agent several times now without successfully getting the cron part working. Made sure the JNT wasn't running. That normally helps. The schedules have always been a problem after booting but trial and error cycling normally fixes it.  Every once in a while restarting will bring is lots of missed runs. Flooding the queue with multiple copies of the same job.
Anyway, I need to get the cron part working again.
OpenMake Meister
Version: 7.40
Build ID: 2024
KB is on linux.

Attach the /client/buildserver/logs/*.log files from the Windows RBS.

Requested logs.
RemoteBuildOut.log
RemoteBuildErr.log is empty and won't upload.
RemoteBuildStartup.log

The RBS looks like it is running correctly.  Look on the KB Server in the openmake.war/kb/build machines/queue directory.  Run:
find . -name "*.queued" -print
And let me know if you are seeing a lot of files for the RBS that is having issues.

Nothing. Reran with -type -f. Don't have much running.
harvest@prdcikb02:/opt/om/kbserver/tomcat/webapps/openmake.ear/openmake.war/kb/build machines$ find . -type f
./agents/prdcikb02.xml
./agents/6012J02.xml
./agents/09000-MJDWFL1.xml
./agents/5Y61M02.xml
./agents/GDWWTZ1.xml
./agents/DEVCIAGENT02.xml
./agents/PRDCIAGENT01.xml
./agents/DEVCIAGENT01.xml
./devciagent01.xml
./prdcikb02.xml
./devciagent02.xml
./agentsthreshold/09030-LKCGDXW.xml
./agentsthreshold/09030-CK4YCD1.xml
./agentsthreshold/prdcikb02.xml
./agentsthreshold/6012J02.xml
./agentsthreshold/09060-MJCADD0.xml
./agentsthreshold/09060-MJCALC8.xml
./agentsthreshold/09000-MJDWFL1.xml
./agentsthreshold/5Y61M02.xml
./agentsthreshold/GDWWTZ1.xml
./agentsthreshold/DEVCIAGENT02.xml
./agentsthreshold/PRDCIAGENT01.xml
./agentsthreshold/DEVCIAGENT01.xml
./agentsthreshold/09030-MJCADB6.xml
./prdciagent01.xml
harvest@prdcikb02:/opt/om/kbserver/tomcat/webapps/openmake.ear/openmake.war/kb/build machines$

i started a webex https://erieinsurance.webex.com/meet/jeffrey.suess
if i see you join, i'll start the phone part too

On a call right now.  Should be off in a few minutes.
Thanks, Steve
Steve Taylor
CITA and Co-Founder / OpenMake Software / tel: + 1.505.424.6439 x114 / mob:
+1.505.920.6106
Follow us on: Blog https://www.openmakesoftware.com/insights/ / Twitter
http://www.twitter.com/openmake/ Facebook
https://www.facebook.com/pages/OpenMake-Software/478045172208305 /
LinkedIn https://www.linkedin.com/in/steve-taylor-b539205 / YouTube
https://www.youtube.com/channel/UCSgF51hv2Qy88POFsA59uJQ/ Google+
https://plus.google.com/u/0/+Openmakesoftware
Winners of the Jolt Award in Change and Configuration Management
On Tue, Oct 17, 2017 at 11:53 AM, r1ddl3m37h15 notifications@github.com
wrote:

i started a webex https://erieinsurance.webex.com/meet/jeffrey.suess
if i see you join, i'll start the phone part too
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/OpenMake-Software/Meister/issues/1#issuecomment-337308969,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AOI8TGA3okVRIhm-Xof2gRpTuLDD6a4gks5stOmJgaJpZM4P8Re5
.

Thanks again for the help!

repo: OpenMake-Software/Meister


text:
add Dockerfile for Ubuntu 16.04 for Grid

tested with start_worker (docker run -it )
~/.openmined doesn't stop worker asking for email / user info. [fixed]
go-ipfs version seems like amd specific (line 25 go-ipfs_v0.4.13_linux-amd64.tar.gz)
some duplication from ubuntu_installation.sh

This looks awesome! As mentioned on 136 as well, I'm not sure I am familiar enough with docker to make an objective review of this though - gonna need some help from a fellow contributor with more expertise.

seems like I made a mistake when I try to fix the line length on some files and they end up on this pull request. I will edit the title to reflect this then.

authors: iamtrask ppirrip

repo: OpenMined/Grid


text:
implement call to let raft know that a follower's db has been updated

Author Name: Jaime Melis (@jmelis)
Original Redmine Issue: 5363, https://dev.opennebula.org/issues/5363
Original Date: 2017-09-13

If a follower is offline for a very long time, the only recovery possible is to manually copy DB to the follower. In this case it's also necessary to inform the leader that the follower's DB is up to date, otherwise it will send the records since the last time the follower was online, which is unnecessary and can be problematic because if the record is too old, it might be purged and not available.

Original Redmine Comment
Author Name: Jaime Melis (@jmelis)
Original Date: 2017-09-13T10:41:52Z

A possible workaround is to simply delete the server from the zone and add it again. The server_id may change, in that case in must be reflected in oned.conf

repo: OpenNebula/one


text:
Remove DONE services from services tab in Sunstone

Description
Service should disappear in Sunstone when they are deleted. Should be the same behavior than for VMs.
To Reproduce

Instantiate a service
terminate/delete the service
VM will be terminated
oneflow list -> service not available anymore
Service still visible in Sunstone with "DONE" state

Expected behavior
List shouldn't have the service.
Details

Affected Component: Sunstone
Version: development.

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

PRs to merge:

one: #4513
docs: OpenNebula/docs/pull/1045

authors: OpenNebulaSupport sbbarragan


text:
make sunstone animations configurable

Author Name: Rolandas Naujikas (Rolandas Naujikas)
Original Redmine Issue: 2018, https://dev.opennebula.org/issues/2018
Original Date: 2013-05-10

Many dialog windows reveals with default animation (fadeAndPop).
Please make some way to configure it as user settings, with system default also.
As a workaround this patch works (after sunstone server restart):
diff --git a/src/sunstone/public/vendor/4.0/foundation/jquery.foundation.reveal.js b/src/sunstone/public/vendor/4.0/foundation/jquery.foundation
index 4972931..ae63a52 100644
--- a/src/sunstone/public/vendor/4.0/foundation/jquery.foundation.reveal.js
+++ b/src/sunstone/public/vendor/4.0/foundation/jquery.foundation.reveal.js
@@ -54,7 +54,7 @@
            * @type {String}
            * @default fadeAndPop
            */
-          animation: 'fadeAndPop',
+          animation: 'none',
           /**
            * Speed at which the reveal should show. How fast animtions are.
            *

We'll address some branding as part of #1510

authors: OpenNebulaProject rsmontero


text:
WebInterface basepath prefix

Hi, I just want to ask if it would be possible to add URL prefix for web interface configuration. Because it is impossible to host it under some domain e.g. my.domain.com/cups/. Workaround is to use subdomain :-/ e.g. cups.my.domain.com.

Hi @petrprikryl ,
thank you for reporting the issue!
IIUC this feature can be implemented the following way - cupsd could interpret /${string} as / in requests if there is directive WebInterfacePrefix used in cupsd.conf and set to /${string}. WDYT, @michaelrsweet ?

I think that the CUPS web interface was never designed to be proxied or otherwise redirected, so it's a hard no for me. It is not just cupsd that would need to change, it would be all of the CGI programs, the templates, and libcups' support for manipulating cupsd.conf.
Remember too that the HTTP layer serves the IPP layer for printing, and NONE of that would handle redirection or proxying like this.
I guess it would be important to understand exactly what @petrprikryl is trying to do and why pointing users at "https://my.domain.com:631" doesn't work?

@michaelrsweet thank you, Mike! I've read this part of client.conf, but I always imagined a proxy as a separate entity, so I didn't know that it can mean proxying as a different URL. And actually I thought the URL would be https://my.domain.com:631/cups and Petr was just simplifying in the report.
@petrprikryl Petr, would you mind telling us what are you trying to achieve and why https://my.domain.com:631 doesn't work for the use case?
Thank you in advance!

Hi, my use case is hosting cups web interface next to other services behind same domain while routing the HTTP requests based on prefix in Traefik:
/cups/ => cups service
everything else => other service

The problem is that cups web interface must know that it is behind this prefix to inject this prefix to all URLs. Otherwise web interface requests fallback to other service.
The important thing is that I am talking about web interface only. Because our services are running in Docker. And printing commands are sent from other service internally. So communication in this case is in the inner Docker network where the prefix is not used because cups server is resolved by the internal Docker DNS.
So I think the goal is to make some split in cups server and cups web interface?

@petrprikryl probably routing based on the port (631 is cups web interface, other ports for other services) is out of the question, right? I'm sorry, I'm not that much experienced at this topic, so I'm learning as I go.
So IIUC you are using the web interface just as online viewer of configured printers, since printing commands, communication and CUPS service as it is runs in Docker?

So I think the goal is to make some split in cups server and cups web interface?

Do you mean making CUPS Web Interface as a separate client/proxy, which won't reside at IPP port and is not directly connected with cupsd daemon?
I've always taken CUPS web interface as a simple portable configuration tool, so it was convenient to be connected with cupsd. IMHO if we separate web UI from the daemon, I would prefer to have it in some common configuration system like cockpit rather than a separate web interface...
@petrprikryl @michaelrsweet wdyt?

WRT the current CUPS software, the web interface (CGI) programs are tightly integrated with cupsd. Even assuming we want to support this sort of indirect access, it isn't going to be a simple change as the paths are hardcoded in the HTML templates, in the CGI programs, and in cupsd itself. And once again, all IPP traffic goes through the same service, so it will be really hard to make everything coexist seamlessly.
I think integrating CUPS with an existing configuration system as @zdohnal suggested is probably the best, long-term approach.

Just note - by CUPS is meant CUPS Web Interface, to prevent confusion in the future.
IMHO integrating CUPS Web Interface with Cockpit could happen in the CUPS 3.x timeline, once the web interface has features for CUPS Sharing server, so we know what features should be passed into Cockpit implementation and prevent feature regression.
CUPS web interface integration into Cockpit was discussed several years ago when system-config-printer was being removed from RHEL 8, and the upstream opinion on the matter is the integration is not a priority for now - so integration itself would be on OpenPrinting group, or it can be a future GSoC project.
I'll rename the issue, give it the labels GSoC idea and CUPS 3.x, pass it to CUPS Sharing project and close it for now - in future we can filter the ideas from community by that label.

authors: michaelrsweet petrprikryl zdohnal

repo: OpenPrinting/cups


text:
start-stop-daemon: can't stop daemon running using non-root user inside lxc container with sys_ptrace capability dropped

Openrc version 0.34.5.
Steps to reproduce:

use lxc-2.* (not sure if it reproduces with other versions, I've tried only 2.0.8 and 2.1.1)
create gentoo container (lxc-create -n $name -t gentoo)
add to container config:
lxc.mount.entry=run run tmpfs rw,nosuid,nodev,relatime,mode=755 0 0
lxc.cap.drop = sys_ptrace
add network to config and run container
run 'ACCEPT_KEYWORDS="~*" emerge -1 openrc' inside container
add line to etc/rc.conf inside container:
rc_sys="lxc"
restart container, attach to it and do rest of steps inside of container
emerge dev-vcs/git
mkdir /var/git
/etc/init.d/git-daemon start
/etc/init.d/git-daemon stop

Stop action fails.
Without 'sys_ptrace' capability start-stop-daemon can't find out cgroups namespace of process belonging to another user when pid is provided, and thus fails to stop daemon. I'm also dropping other capabilities like sys_admin, but dropping this one specifically make openrc fail. If I rerun start-stop-daemon command again manually after that, it successfully stops git-daemon (since there's no longer a pidfile present, and it looks using other identifiers), but since it uses executable name, it will just kill every git daemon process.
test4 ~ # /etc/init.d/git-daemon status
 * status: started
test4 ~ # whoami
root
test4 ~ # ps aux | grep git
nobody     306  0.0  0.0  17052  1068 ?        Ss   12:58   0:00 /usr/bin/git daemon --syslog --base-path=/var/git
nobody     309  0.0  0.0  16044   988 ?        S    12:58   0:00 /usr/libexec/git-core/git-daemon --syslog --base-path=/var/git
root       341  0.0  0.0  10708   968 ?        S+   13:02   0:00 grep --colour=auto git
test4 ~ # ls -la /proc/306/ns
ls: cannot read symbolic link '/proc/306/ns/net': Permission denied
ls: cannot read symbolic link '/proc/306/ns/uts': Permission denied
ls: cannot read symbolic link '/proc/306/ns/ipc': Permission denied
ls: cannot read symbolic link '/proc/306/ns/pid': Permission denied
ls: cannot read symbolic link '/proc/306/ns/pid_for_children': Permission denied
ls: cannot read symbolic link '/proc/306/ns/user': Permission denied
ls: cannot read symbolic link '/proc/306/ns/mnt': Permission denied
ls: cannot read symbolic link '/proc/306/ns/cgroup': Permission denied
total 0
dr-x--x--x 2 nobody nobody 0 Nov  5 12:58 .
dr-xr-xr-x 9 nobody nobody 0 Nov  5 12:58 ..
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 cgroup
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 ipc
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 mnt
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 net
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 pid
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 pid_for_children
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 user
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 uts
test4 ~ # su - nobody -s /bin/bash -c 'whoami'
nobody
test4 ~ # su - nobody -s /bin/bash -c 'ls -la /proc/306/ns'
total 0
dr-x--x--x 2 nobody nobody 0 Nov  5 12:58 .
dr-xr-xr-x 9 nobody nobody 0 Nov  5 12:58 ..
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 cgroup -> cgroup:[4026532788]
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 ipc -> ipc:[4026532711]
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 mnt -> mnt:[4026532709]
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 net -> net:[4026532714]
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 pid -> pid:[4026532712]
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 pid_for_children -> pid:[4026532712]
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 user -> user:[4026531837]
lrwxrwxrwx 1 nobody nobody 0 Nov  5 12:58 uts -> uts:[4026532710]
test4 ~ # /etc/init.d/git-daemon stop
 * No permission to apply cgroup settings
 * Stopping git-daemon ...
 * start-stop-daemon: no matching processes found
test4 ~ # ps aux | grep git
nobody     306  0.0  0.0  17052  1068 ?        Ss   12:58   0:00 /usr/bin/git daemon --syslog --base-path=/var/git
nobody     309  0.0  0.0  16044   988 ?        S    12:58   0:00 /usr/libexec/git-core/git-daemon --syslog --base-path=/var/git
root       373  0.0  0.0  10708   816 ?        S+   13:06   0:00 grep --colour=auto git

EDIT: sys_ptrace capability is dropped by default in gentoo.moresecure.conf

Hi, can you test with OpenRC 0.34.6 and let me know if the issue still exists?

Also, did this ever work with older versions of OpenRC?

I've tested OpenRC 0.34.6 and issue still exists.
I didn't know if earlier versions of OpenRC handled it correctly, so I tried them out.
Following versions are NOT affected by current issue: 0.27.2, 0.32.1, 0.33.1.
Following versions are affected by current issue: 0.34, 0.34.5, 0.34.6.

I think the issue is caused by fix for https://bugs.gentoo.org/show_bug.cgi?id=634634
The check for cgroups namespace was added, but with sys_ptrace privilege dropped OpenRC can't look up the cgroup namespace of process owned by another user, at least not the way it currently is implemented. You can see it in the code block in my first message. I've checked it, and pid 1 in LXC container (owned by 'root' user) has same namespaces as git daemon process (owned by 'nobody' user), but since it belongs to another user, you lack permissions to read the value.

Does anyone have any suggestions for how to handle this?
I don't run lxc, so I'm not quite sure what the answer should be.

I thought that changing effective uid to user owning pid would help, but it didn't work until I also changed effective gid too.
Here are pull requests that together fix issue for me with git-daemon inside lxc container with sys_ptrace capability dropped:
https://github.com/OpenRC/openrc/pull/181
https://github.com/gentoo/gentoo/pull/6176

Hi, can you apply this patch and let me know if it resolves the issue?
http://dpaste.com/39WX0J3.txt
Thanks,
William

Hi. This change also resolves the issue for me, although I can't say I like this approach more.

authors: iDarkTemplar williamh

repo: OpenRC/openrc


text:
无法用Qwen2-70b给 Qwen2-1.5b进行蒸馏 报错 tensor size 不能match

[rank1]:   File "/home/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl [rank1]:     return forward_call(*args, **kwargs) [rank1]:   File "/data/train/OpenRLHF/openrlhf/models/loss.py", line 251, in forward [rank1]:     prod_probs = torch.masked_fill(teacher_probs * logprobs, inf_mask, 0) [rank1]: RuntimeError: The size of tensor a (152064) must match the size of tensor b (151936) at non-singleton dimension 2 [rank4]: Traceback (most recent call last): [rank4]:   File "/data/train/miniconda3/envs/openrlhf/lib/python3.10/runpy.py", line 196, in _run_module_as_main [rank4]:     return _run_code(code, main_globals, None, [rank4]:   File "/data/train/miniconda3/envs/openrlhf/lib/python3.10/runpy.py", line 86, in _run_code [rank4]:     exec(code, run_globals) [rank4]:   File "/data/train/OpenRLHF/openrlhf/cli/train_kd.py", line 217, in <module> [rank4]:     train(args) [rank4]:   File "/data/train/OpenRLHF/openrlhf/cli/train_kd.py", line 134, in train [rank4]:     trainer.fit(args, consumed_samples, num_update_steps_per_epoch) [rank4]:   File "/data/train/OpenRLHF/openrlhf/trainer/kd_trainer.py", line 140, in fit [rank4]:     distil_loss = self.kd_loss(output.logits, teacher_logits, labels) [rank4]:   File "/home/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1532, in _wrapped_call_impl [rank4]:     return self._call_impl(*args, **kwargs) [rank4]:   File "/home/.local/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1541, in _call_impl [rank4]:     return forward_call(*args, **kwargs) [rank4]:   File "/data/train/OpenRLHF/openrlhf/models/loss.py", line 251, in forward [rank4]:     prod_probs = torch.masked_fill(teacher_probs * logprobs, inf_mask, 0) [rank4]: RuntimeError: The size of tensor a (152064) must match the size of tensor b (151936) at non-singleton dimension 2

Qwen2-1.5b 有点特殊，应该是实现有bug。
可以试试用 Qwen2 7B 蒸馏 72B。

authors: hijkzzz xiechengmude

repo: OpenRLHF/OpenRLHF


text:
[macOS] 2.7 rc1 isn't codesigned

2.7 rc1 isn't codesigned, 2.6 rc1 was.
$ codesign --display -r- --deep -v /Volumes/OpenRefine\ 2.7-rc.1/OpenRefine.app
/Volumes/OpenRefine 2.7-rc.1/OpenRefine.app: code object is not signed at all

$ codesign --display -r- --deep -v /Volumes/OpenRefine\ 2.6-rc1/OpenRefine.app
Executable=/Volumes/OpenRefine 2.6-rc1/OpenRefine.app/Contents/MacOS/JavaAppLauncher
Identifier=com.google.refine.Refine
Format=app bundle with Mach-O thin (x86_64)
CodeDirectory v=20100 size=233 flags=0x0(none) hashes=5+3 location=embedded
Signature size=1277
Signed Time=Apr 29, 2015, 10:36:03 PM
Info.plist entries=16
TeamIdentifier=not set
Sealed Resources version=2 rules=12 files=491
Nested=PlugIns/jdk1.8.0_45.jdk
designated => identifier "com.google.refine.Refine" and certificate leaf = H"3324785d3f758d78f729a7424a75447b15364f98"

@jackyq2015 Can you take a look into this ?  Did you build with the right parameters ? See https://github.com/OpenRefine/OpenRefine/blob/master/refine#L540

There was some package issue on my Mac. Just fixed it and built a signed one. The old one was replaced from the 2.7.rc.1 release.

Was a different cert used to sign the .app this time? The cert leaf has changed since 2.6.
Could you look into using a shared codesigning cert if different people are building and signing the app or getting an Apple Dev ID?
Thanks!

authors: cwhits jackyq2015 thadguidry

repo: OpenRefine/OpenRefine


text:
Let the user provide a column mapping when applying a JSON workflow

Say you have a list of 4 operations forming a workflow that you want to reuse:

capitalize the country_code column
reconcile the city column using country_code as a reconciliation property
add columns from reconciled values, fetching the mayor and the population columns
remove all rows where population is less than 1000 inhabitants

Once you have done this workflow on a project, you can extract it as a JSON blob in the Undo/Redo tab, and reapply it on a new project.
The workflow JSON looks like this:
[
  {
    "op": "core/text-transform",
    "engineConfig": {
      "facets": [],
      "mode": "row-based"
    },
    "columnName": "country_code",
    "expression": "value.toUppercase()",
    "onError": "keep-original",
    "repeat": false,
    "repeatCount": 10,
    "description": "Text transform on cells in column country_code using expression value.toUppercase()"
  },
  {
    "op": "core/recon",
    "engineConfig": {
      "facets": [],
      "mode": "row-based"
    },
    "columnName": "city",
    "config": {
      "mode": "standard-service",
      "service": "https://tools.wmflabs.org/openrefine-wikidata/en/api",
      "identifierSpace": "http://www.wikidata.org/entity/",
      "schemaSpace": "http://www.wikidata.org/prop/direct/",
      "type": {
        "id": "Q486972",
        "name": "human settlement"
      },
      "autoMatch": true,
      "columnDetails": [
        {
          "column": "country_code",
          "propertyName": "SPARQL: P17/P297",
          "propertyID": "P17/P297"
        }
      ],
      "limit": 0
    },
    "description": "Reconcile cells in column city to type Q486972"
  },
  {
    "op": "core/extend-reconciled-data",
    "engineConfig": {
      "facets": [],
      "mode": "row-based"
    },
    "baseColumnName": "city",
    "endpoint": "https://tools.wmflabs.org/openrefine-wikidata/en/api",
    "identifierSpace": "http://www.wikidata.org/entity/",
    "schemaSpace": "http://www.wikidata.org/prop/direct/",
    "extension": {
      "properties": [
        {
          "id": "P1082",
          "name": "population"
        },
        {
          "id": "P6",
          "name": "head of government"
        }
      ]
    },
    "columnInsertIndex": 1,
    "description": "Extend data at index 1 based on column city"
  },
  {
    "op": "core/row-removal",
    "engineConfig": {
      "facets": [
        {
          "type": "range",
          "name": "population",
          "expression": "value",
          "columnName": "population",
          "from": 0,
          "to": 1000,
          "selectNumeric": true,
          "selectNonNumeric": true,
          "selectBlank": false,
          "selectError": true
        }
      ],
      "mode": "row-based"
    },
    "description": "Remove rows"
  }
]

If the new project does not use the same column names, or if some columns are missing, this problem will not be reported to the user in a clear way.
Instead, the tool will try to apply all 4 operations in sequence, without stopping if columns are missing.
For instance, say we try to apply the workflow to a project with a column country_code, but the city column has been renamed into administrative_area.
This is what currently happens:

the first operation, capitalizing the column country_code, will run successfully;
the reconciliation operation is skipped as there is no such column to reconcile;
the fetching operation is skipped, since city still does not exist;
the population column does not exist, so the facet used to select the rows to delete has an error. So all rows are selected by default. So all rows in the new project are removed.

This is obviously extremely bad in terms of user experience. No data is actually lost since we can still roll back to a previous stage, but it is far from ideal.
Very elegantly, OpenRefine dumps some stack traces in the console as well:
java.lang.Exception: No column named city
	at com.google.refine.operations.recon.ReconOperation$ReconProcess.populateEntries(ReconOperation.java:205)
	at com.google.refine.operations.recon.ReconOperation$ReconProcess.run(ReconOperation.java:239)
	at java.lang.Thread.run(Thread.java:748)
Exception in thread "Thread-9" java.lang.NullPointerException
	at com.google.refine.operations.recon.ReconOperation$ReconProcess.run(ReconOperation.java:247)
	at java.lang.Thread.run(Thread.java:748)
java.lang.Exception: No column named city
	at com.google.refine.operations.recon.ExtendDataOperation$ExtendDataProcess.populateRowsWithMatches(ExtendDataOperation.java:161)
	at com.google.refine.operations.recon.ExtendDataOperation$ExtendDataProcess.run(ExtendDataOperation.java:244)
	at java.lang.Thread.run(Thread.java:748)
Exception in thread "Thread-10" java.lang.NullPointerException
	at com.google.refine.model.changes.DataExtensionChange.apply(DataExtensionChange.java:153)
	at com.google.refine.history.HistoryEntry.apply(HistoryEntry.java:148)
	at com.google.refine.history.History.addEntry(History.java:135)
	at com.google.refine.operations.recon.ExtendDataOperation$ExtendDataProcess.run(ExtendDataOperation.java:296)
	at java.lang.Thread.run(Thread.java:748)

Proposed solution
Given a workflow, the tool needs to be able to determine if it applies to the current project, by infering from the workflow what the initial shape of the data should look like.
As a user, I expect that:

the tool detects that this workflow depends on columns city and country_code
I get the opportunity to map which columns in my new project correspond to these old columns (without actually renaming my columns to the old names)
the tool translates the workflow to work on these new column names (administrative_area and country_code) automatically and applies the workflow.

Mapping is definitely a missing ingredient.  I actually mentioned this to David long ago, as Talend (and Ab Initio) actually have a pretty good mapping experience with drag and drop.  They show a single column table on LEFT side representing ProjectA and RIGHT side the columns for ProjectB, and then allow to click and grab from either side a particular column name and drag onto the other side's column name, basically a visual node relationship handler between 2 sets of column names.
In other programs it's experienced different with verticality dragdrop and no visual node threadsd.  Instead the LEFT|RIGHT column from both projects are shown, and you dragdrop vertically (reorder) either side to establish the horizontal line equivalency of each column name.  Which I find sometimes harder to use (there's more dragdrop movements typically needed), but others like it and not the spaghetti lines if a project has many columns to map in the above described interfaces.  And if a column is not needed to be mapped and excluded there's a disable button on each one.

Thanks Thad! If you have any screenshots of such UIs I think it would be very helpful for inspiration.

And a video:
https://youtu.be/tno_hrEM-ro?t=250
I could not quickly find any vertical examples but there are many and you can probably imagine that one since it's simple horizontal alignment of cell values between a left and right tabular listing of column names.  The good UI's typically use drag or drop to move the cells up or down, and the bad ones just use small arrows on each cell to click repeatedly and move up or down for each one. (Definitely not for those with carpal tunnel syndrome!!!)
There are actually more task or interactive examples however, which "might" be something to think about (especially given that data mapping might later involve not only column name but also other metadata or typing.   This article which has great research which I encourage you to read and demonstrates a bit of that https://www.arachuk.com/column-mapping
That task or interactive example, is simply a more guided approach to what Talend Open Studio offers with it's tMap function view and its upper left/right panels and lower Schema editor and Expression editor...all combined.

And in Apache Hop, it's easy to run it yourself locally and drop in a Table Input component or a Mapping Input and Output as well as perhaps the Json Input and their Fields tab.

Something that would be useful in an automation scenario would be to specify multiply possible column names for a given operation. "columnNames": ["city", "other_possible_city_column_name"], etc, one can kinda accomplish it already by just duplicating the operation or by setting up a bunch of renames but such solutions add a lot of complexity.

Also we might look to Avro Records and Avro's schema evolution to provide mapping via Aliases.  For development, this is good and close enough to JSON Schema (it's Schema in JSON format, so good enough for me when it comes to developers being able to display, share, troubleshoot).  And I really appreciate Avro's encoding of records and keeping values in the order they are declared and schema diffrences.

Something that would be useful in an automation scenario would be to specify multiply possible column names for a given operation. "columnNames": ["city", "other_possible_city_column_name"], etc, one can kinda accomplish it already by just duplicating the operation or by setting up a bunch of renames but such solutions add a lot of complexity.

I am not too sure about this, because of the following problems:

by introducing alternate column names in the JSON representation of an operation, you are introducing information that will not be input by the user when applying the operation via our UI. That means you are really encouraging users to edit the JSON representation themselves, which I do not think is a viable route for good UX.
You could try to change the UI to expose this information, but it's going to be a quite awkward thing to expose: you would need to prompt the user for all possible sensible column names the operation could be applied to, should it be used in other datasets… And as a user applying an operation on my current dataset, I just do not care about this - I want to run this operation now, on the current dataset, and such a field would get in my way.
for a lot of generic recipes (such as sorting values within a record) you clearly cannot list such possible column names: the recipe could legitimately be applied to any column.

@thadguidry there are a lot of pointers in your last comment but it's not clear to me how they tie in with the issue at hand. Let's try to keep the discussion as grounded as possible :)

@wetneb all valid concerns. My wish is (in a much broader sense than this issue) that integration developers would be as much users as those primary/only using the GUI, it's okay for some features only being available for one audience.

@wetneb I was just pointing out that fields can have more than 1 name/label.  And in Avro's case, even a record can have an optional alias.  Aliases is how Avro handles more than 1 name or label.  It's all column metadata in the end for us and users to keep track of things when column mapping (a from and to).  This was mentioned in one of our other issues before regarding column metadata and exporting/importing.  Like we have in https://schema.org/alternateName or DC: AlternativeTitle

Using the phrase "JSON workflow" to refer to OpenRefine's Undo history objects carries the connotation that the current implementation is a good basis upon which to build OpenRefine's data transformation DSL.
Has this been validated in any way?
Exposing that internal structure for external use was a quick and dirty hack over a decade ago, but I don't think it's one that necessarily needs to be propagated in perpetuity.

@tfmorris I very much agree that the current situation is very far from what I think we should have. I am keen to change this in major ways, including ones that break compatibility with the existing syntax (let alone because we should not be exposing such JSON to the user, indeed).
I am currently going for an iterative approach based on the current system, because:

I think it reduces the risk that I go in a completely wrong direction, and lets the community validate incremental progress;
I think the underlying changes in the backend should be able to support a radically different system. For instance, one where the user would only manipulate a visual representation of a workflow (still with the ability to copy-paste it, save it to a file, edit operation parameters, and so on).

That being said, if you think I should rather follow a different approach, I am very keen to hear it. Perhaps the forum is more appropriate for this discussion, for instance this thread I opened today:
https://forum.openrefine.org/t/work-plan-for-the-reproductibility-improvements-project/332

authors: Abbe98 tfmorris thadguidry wetneb


text:
Upgrade to Jetty 10 / 11

Community support for Jetty 9 ended June 1, 2022.  I t will continue to receive security updates, but it makes sense to move forward to at least Jetty 10. Jetty 11 has an incompatible API due to package name changes, so it requires a Butterfly update so is blocked by https://github.com/OpenRefine/simile-butterfly/issues/105
I had assumed that we'd eventually have to go to Jetty 11 and did the work to update, but Jetty 12 was just recently released and it provides support for Servlet 4, 5, and 6 in same implementation, potentially minimizing upgrade work, but it is a) brand new and b) requires Java 17 which is much more aggressive than OpenRefine has traditionally been with Java upgrades.
Proposed solution
Update to Jetty 10 and defer updating to Jetty 11 until other breaking changes are needed in Butterfly.
Alternatives considered
We could potentially just live with Jetty 9.4 as long as security updates keep coming, hoping to hang on long enough make the transition to Jetty 12 in one jump, but it seems like we could get the rug pulled out on short notice.
Additional context

@Abbe98 @wetneb flagging this for a little extra scrutiny in the context of compatibility of 3.8 with earlier releases. It is a major Jetty version update, so it could potentially cause issues.

@tfmorris I haven't had any issues at all on my end(we are based off master).
I would actually be in favor of merging your work on bumping Jakarta Servlet and Velocity over at butterfly, from my perspective the benefits would be great and outweigh the potential costs of possibly breaking changes.


text:
Expose Wikibase editing errors in the grid

Closes #1782.
This follows the design proposed on the forum.
The Wikibase upload operation creates a new column (or reuses the column, if it already exists) to store the editing errors of edits related to a given row:

Runnning the operation also creates a facet which can be used to select the rows based on whether they encountered errors or not:

This facet is generated by the GREL expression if(isError(value), 'failed edit', 'successful edit').
For successful edits I think it would be nice to store some value (to distinguish it from no edit being made). I thought about adding a URL to the diff view of the edit (such as https://www.wikidata.org/w/index.php?diff=1920784148&oldid=1919995661).
This also closes #5166, since it makes it possible to relate the errors to the offending lines better.
You can try this PR on this sample project: uploading that project to Wikidata will not make any edits (the first row fails to create an item, the second one does not make any edit because the data being pushed matches what is already on Wikidata).
cc @OpenRefine/designers
This is meant to be a basic implementation that can be improved on (for instance, localization can be improved). I would like to release this in 4.0-alpha2 to gather feedback about the UX. One other question is where to insert the column with the editing results. Currently it is added after all other columns, which might be a bit inconvenient for projects with many columns.

May be a "view" option that would collapse all columns except the entity and the Wikibase error column? The view option could be a menu item under Wikibase extension?

@wetneb
I pulled the branch and tried importing your sample project, but the project page is blank.
I see an error in the JavaScript console:
project-bundle.js:37578 Uncaught TypeError: Cannot read properties of undefined (reading 'css')
    at resize (project-bundle.js:37578:4)
    at initializeUI (project-bundle.js:37638:3)
    at project-bundle.js:38224:9
    at Object.success (project-bundle.js:37742:21)
    at fire (project-bundle.js:3215:31)
    at Object.fireWith [as resolveWith] (project-bundle.js:3345:7)
    at done (project-bundle.js:9619:14)
    at XMLHttpRequest.<anonymous> (project-bundle.js:9880:9)

It seems to be related to a change you have made in the 4.0 branch:

Also, is 4.0 supposed to be able to load 3.x projects?  Because when I switched to 4.0 branch and built and ran OpenRefine, I don't see any of my 3.x projects in the project list.

@elebitzero Thanks a lot for checking it out, it's very curious! I looked into it and I am unsure why you are getting this. Could it be some sort of caching error, with project.vt being left over from the master branch? That is where this notificationContainer is defined.
Did you ./refine clean after switching to this branch (although it's not clear to me why not doing it would cause this). I wonder if you have the same issue with the snapshot builds for 4.0:

Linux
MacOS
Windows without embedded JRE
Windows with embedded JRE

Maybe a "view" option that would collapse all columns except the entity and the Wikibase error column? The view option could be a menu item under Wikibase extension?

That's an interesting idea! One problem is that the entity on which the edit is made is not necessarily generated from a column (it can be a constant, directly input in the schema). We can definitely consider explicitly including the subject entity in the error message, though (maybe that's a better fix of #5166).

And about projects from 3.x not appearing, yes that is normal: OpenRefine 4 uses a separate workspace. I intend to emphasize that in the release notes but maybe it would be worth adding some note about that in the tool itself (for instance by changing the note shown when the list of projects is empty?).

Did you ./refine clean after switching to this branch (although it's not clear to me why not doing it would cause this). I wonder if you have the same issue with the snapshot builds for 4.0:

I am on Windows and I did:
refine.bat clean
refine.bat build
refine.bat run

I thought since you changed that line, maybe you would know what happened. If someone else tries it we will see if they get the same error. I can look into it further.

Closing as it is stale. I'll reopen after rebasing.

authors: elebitzero thadguidry wetneb


text:
Integrate Festo Bionics4Education

Bionics4Education by Festo is a robot set based on ESP32, the set includes parts to build 3 different models (Elephant trunk, fish and chameleon tongue). A general explanation can be found here.
4 Motors can be used to actuate the flexible grippers/fins.
On the website the default firmware is available.
We want to integrate this set into the Lab, it will be in the subgroup of Arduinos.

[x] Check capabilities
[x] Add project
[x] Adapt compiler workers
[ ] Add crosscompiler resources

[x] Linux x86
[x] Linux ARM
[ ] Windows
[ ] OSX

[x] Add code generation
[ ] Compiler

[x] Linux x86
[x] Linux ARM
[ ] Windows
[ ] OSX

[ ] Add reset worker
[ ] Add transfer/detection capabilities to Connector

[x] Linux x86
[ ] Linux ARM
[x] Windows
[ ] OSX

[x] Simplify Python & pyserial requirements install
[ ] User feedback when Python is not installed
[ ] Pack everything into zip file to reduce spread of robot resources

First integration is done, works on Ubuntu 18.04 with Connector on develop branch.
To install xtensa compiler follow this.
I did these steps on my machine:
sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
cd ~
wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
mkdir -p ~/esp
cd ~/esp
tar -xzf ~/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
rm ~/xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz
echo "export PATH=\$PATH:\$HOME/esp/xtensa-esp32-elf/bin" >> ~/.profile

Currently the servo block contains reference to the "SG90" servo from Arduino, this should be removed.

Was handled in 772c58e375e3f4a53ebb0d3cbd6a765844ce1f23.

I improved/simplified the Python requirement and packing of esptool by automatically checking for Python install via PATH and registry (on Windows) and installing it on demand. This way less resources are spread across all projects. With the same background, everything necessary will be sent in the packed zip file, instead of adding it to the resources.

will be published soon with beta label, for remaining bugs please create a separate issue

repo: OpenRoberta/openroberta-lab


text:
Test EVPN VXLAN with other Cisco and Arista per #11

We need to test that we can use EVPN VXLAN with non-Juniper hardware vendors such as Cisco and Arista.

I have only test integrate the EVPN VxLAN for external IP with Arista. It's work fine. So. I will share the document about how to configure the Arista and OpenSDN for this. I would like to preparation and will be update.

authors: lungdear randybias

repo: OpenSDN-io/community


text:
有办法做到将不同知识库隔离起来吗？

希望不同主题的知识库互相隔离，例如在使用法律知识库QA时，不要检索到金融知识库中的相关信息，此外，试图使用以下代码删除Neo4j中的图谱数据时，会得到ValueError: Cannot resolve address release-openspg-neo4j:7687
from kag.common.graphstore.neo4j_graph_store import Neo4jClient

test = Neo4jClient(uri="neo4j://release-openspg-neo4j:7687", user="neo4j", password="neo4j@openspg")
test.delete_all_data("neo4j")

Currently, data is isolated at the project level. You can create different project instances to isolate neo4j data.

repo: OpenSPG/openspg


text:
Add growl to MIECD

growl is used to provide information to the user in the form of a toast. This function has already been implemented here: https://github.com/onaio/reveal-frontend/blob/master/src/helpers/utils.tsx#L657

This is a perfect candidate for inclusion in js-tools

authors: FrankApiyo moshthepitt

repo: OpenSRP/opensrp-web