MagicBehavior causes crash

Description of the Bug
App crashed on render buttons with MagicBehavior, on  previous version 0.104.1 works just fine.
Code
from kivymd.app import MDApp
from kivy.lang import Builder

KV = '''
#:import MagicBehavior kivymd.uix.behaviors.MagicBehavior

<MagicButton@MagicBehavior+MDRectangleFlatButton>

FloatLayout:

    MagicButton:
        text: "WOBBLE EFFECT"
        on_release: self.wobble()
        pos_hint: {"center_x": .5, "center_y": .3}

    MagicButton:
        text: "GROW EFFECT"
        on_release: self.grow()
        pos_hint: {"center_x": .5, "center_y": .4}

    MagicButton:
        text: "SHAKE EFFECT"
        on_release: self.shake()
        pos_hint: {"center_x": .5, "center_y": .5}

    MagicButton:
        text: "TWIST EFFECT"
        on_release: self.twist()
        pos_hint: {"center_x": .5, "center_y": .6}

    MagicButton:
        text: "SHRINK EFFECT"
        on_release: self.shrink()
        pos_hint: {"center_x": .5, "center_y": .7}
'''

class Example(MDApp):
    def build(self):
        return Builder.load_string(KV)

Example().run()

Logs
[INFO   ] [Logger      ] Record log in .kivy/logs/kivy_21-06-09_42.txt
[INFO   ] [Kivy        ] v2.0.0
[INFO   ] [Kivy        ] Installed at "venv/lib/python3.9/site-packages/kivy/__init__.py"
[INFO   ] [Python      ] v3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110]
[INFO   ] [Python      ] Interpreter at "venv/bin/python"
[INFO   ] [Logger      ] Purge log fired. Analysing...
[INFO   ] [Logger      ] Purge 22 log files
[INFO   ] [Logger      ] Purge finished!
[INFO   ] [KivyMD      ] 0.104.2, git-bc7d1f5, 2021-06-06 (installed at "venv/lib/python3.9/site-packages/kivymd/__init__.py")
[INFO   ] [Factory     ] 186 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: sdl2
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [GL          ] Using the "OpenGL" graphics system
[INFO   ] [GL          ] Backend used <sdl2>
[INFO   ] [GL          ] OpenGL version <b'3.0 Mesa 20.3.4'>
[INFO   ] [GL          ] OpenGL vendor <b'Intel Open Source Technology Center'>
[INFO   ] [GL          ] OpenGL renderer <b'Mesa DRI Intel(R) HD Graphics 400 (BSW)'>
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <b'1.30'>
[INFO   ] [GL          ] Texture max size <16384>
[INFO   ] [GL          ] Texture max units <32>
[INFO   ] [Window      ] auto add sdl2 input provider
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [ProbeSysfs  ] device match: /dev/input/event7
[INFO   ] [MTD         ] Read event from </dev/input/event7>
[INFO   ] [Base        ] Start application main loop
[WARNING] [MTD         ] Unable to open device "/dev/input/event7". Please ensure you have the appropriate permissions.
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 842, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: list index out of range
 Exception ignored in: 'kivy.graphics.instructions.InstructionGroup.build'
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 842, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: list index out of range
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 253, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 837, in kivy.graphics.instructions.RenderContext.push_states
   File "kivy/graphics/instructions.pyx", line 831, in kivy.graphics.instructions.RenderContext.push_state
 IndexError: list index out of range
 Exception ignored in: 'kivy.graphics.instructions.InstructionGroup.build'
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 253, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 837, in kivy.graphics.instructions.RenderContext.push_states
   File "kivy/graphics/instructions.pyx", line 831, in kivy.graphics.instructions.RenderContext.push_state
 IndexError: list index out of range
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 841, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: pop from empty list
 Exception ignored in: 'kivy.graphics.instructions.InstructionGroup.build'
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 841, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: pop from empty list
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 253, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 837, in kivy.graphics.instructions.RenderContext.push_states
   File "kivy/graphics/instructions.pyx", line 831, in kivy.graphics.instructions.RenderContext.push_state
 IndexError: list index out of range
 Exception ignored in: 'kivy.graphics.instructions.InstructionGroup.build'
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 253, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 837, in kivy.graphics.instructions.RenderContext.push_states
   File "kivy/graphics/instructions.pyx", line 831, in kivy.graphics.instructions.RenderContext.push_state
 IndexError: list index out of range
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 841, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: pop from empty list
 Exception ignored in: 'kivy.graphics.instructions.InstructionGroup.build'
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 841, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: pop from empty list
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 253, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 837, in kivy.graphics.instructions.RenderContext.push_states
   File "kivy/graphics/instructions.pyx", line 831, in kivy.graphics.instructions.RenderContext.push_state
 IndexError: list index out of range
 Exception ignored in: 'kivy.graphics.instructions.InstructionGroup.build'
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 253, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 837, in kivy.graphics.instructions.RenderContext.push_states
   File "kivy/graphics/instructions.pyx", line 831, in kivy.graphics.instructions.RenderContext.push_state
 IndexError: list index out of range
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 841, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: pop from empty list
 Exception ignored in: 'kivy.graphics.instructions.InstructionGroup.build'
 Traceback (most recent call last):
   File "kivy/graphics/compiler.pyx", line 100, in kivy.graphics.compiler.GraphicsCompiler.compile
   File "kivy/graphics/instructions.pyx", line 257, in kivy.graphics.instructions.ContextInstruction.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 841, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: pop from empty list
[INFO   ] [Base        ] Leaving application in progress...
 Traceback (most recent call last):
   File "example.py", line 48, in <module>
     Example().run()
   File "/venv/lib/python3.9/site-packages/kivy/app.py", line 950, in run
     runTouchApp()
   File "venv/lib/python3.9/site-packages/kivy/base.py", line 582, in runTouchApp
     EventLoop.mainloop()
   File "venv/lib/python3.9/site-packages/kivy/base.py", line 347, in mainloop
     self.idle()
   File "venv/lib/python3.9/site-packages/kivy/base.py", line 408, in idle
     window.dispatch('on_draw')
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "venv/lib/python3.9/site-packages/kivy/core/window/__init__.py", line 1395, in on_draw
     self.render_context.draw()
   File "kivy/graphics/instructions.pyx", line 623, in kivy.graphics.instructions.Canvas.draw
   File "kivy/graphics/instructions.pyx", line 626, in kivy.graphics.instructions.Canvas.draw
   File "kivy/graphics/instructions.pyx", line 896, in kivy.graphics.instructions.RenderContext.apply
   File "kivy/graphics/instructions.pyx", line 849, in kivy.graphics.instructions.RenderContext.pop_states
   File "kivy/graphics/instructions.pyx", line 841, in kivy.graphics.instructions.RenderContext.pop_state
 IndexError: pop from empty list

Process finished with exit code 1

Versions

OS: Debian Buster
Python: 3.9.2
Kivy: 2.0.0
KivyMD: 0.104.2

same issue


friend functions & friend classes in c++

Description
documentation on friend functions and friend classes in c++
Domain
C/CPP
Type of Contribution
Documentation
Code of Conduct

[X] I follow Contributing Guidelines & Code of conduct of this project.

/assign

/assign

Hey @aman12207 you cannot assign this issue to yourself because this issue is created by @Akriti-Choudhary .
kindly unassign @aman12207
@Akriti-Choudhary please assign it to yourself
@aman12207 you can make another issue or pick up another one , but it should not be already exist or any duplicates or already assigned. !

/assign

@Akriti-Choudhary  don't worry we will do it by our end.
you can continue your work !

Please tell me the command to unassign this issue.

@vasu-1 Thankyou.

Hey @aman12207
You can unassigned from here .. please do ASAP.

After unassigned @Akriti-Choudhary  please assign it to yourself..👍👍

@vasu-1 I unassigned this project. Sorry for inconvenience.

It is all okk @aman12207 .
@Akriti-Choudhary  Please assign this to yourself !

/assign

@vasu-1 What do you suggest ? How can I self-assign this project?

hey ! i think you have 3 open issues ..
if you have done pr for those issues then you  can simply close those issues..
and you can again try here/assign

@vasu-1 The PRs are not merged . Will, there be a problem if I will close those issues without them getting merged?

Please be patient !
your one of the pr will be merge shortly !
after that you can close that respective issue and pr as well !!

okay, Thankyou.

now you can close that respective issue and try here !

/assign


investigate arrow for storing datetimes

arrow is an interesting library.  It could give us a more generic datetime representation that would let us support all the flavors of RFC3339 without a lot of work.  Need to know more about how it plays with FastAPI.

It duck types datetime https://github.com/arrow-py/arrow/blob/master/arrow/arrow.py#L83-L84.  This should work.

pendulum looks interesting too https://github.com/sdispater/pendulum - thanks @kylebarron

I haven't looked too closely at either to understand the implications


Wasted space in the editor plugin

From<EMAIL_ADDRESS>on 2010-07-29T12:51:12Z
I have an idea about how to improve the look of the UI a little.  Currently the top of the editor window looks like this:
Editor
<options>...
<tab for open files>
Why not put the toolbar and the current file name on the same line as the window title?  Also, could we have an option to remove that toolbar altogether, and just leave the tabbed list of open files?  It would save a great deal of screen real estate, a precious commoddity on my 15.6" laptop.  Thanks!
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=256

From pierre.raybaut on 2010-08-05T00:07:08Z
In Spyder v2.0.0 (mercurial repository version), I've added an option to change dockwidget title bars orientation from 'Horizontal' to 'Vertical'. This allows to gain some space vertically which is indeed useful on small 16:10 screens.
The new editor design (since v1.1) was created to make the tab bar useless: the toolbar above has everything you need to switch efficiently from a file to another with the file selection combo box (including shortcuts: Ctrl+Tab and Ctrl+Shift+Tab) and the file manager since v2.0 (shortcut: Ctrl+E).
So the recommended way to gain space is to hide the tab bar, not the toolbar.
Status: Fixed


Add separate linters for Objective-C/Objective C++.

This adds two extra linters that apply to Objective-C/C++ code.
I have added -fobjc-arc as compiler arg to make the __has_feature(objc_arc) preprocessor test pass. Automatic reference counting (arc) should be the default in most Objective-C projects these days.
It would have been cool to add support for module imports (@import CoreGraphics), but unfortunately this requires more extensive command line flags that might be machine specific. So I left it out.

Very nice.
I think we can omit "multiline = True" because we already compile the regex with that flag, and SublimeLinter should read the used flags.
I would not have extracted the default args to a pseudo constant. Do you think that's easier to read or modify? I usually read these linter classes as declarations. SublimeLinter doesn't allow inheritance here as well which is probably not a bad limitation.  Feel free to leave it as is.

I think we can omit "multiline = True" because we already compile the regex with that flag, and SublimeLinter should read the used flags.

Sounds good, let me remove it.

I would not have extracted the default args to a pseudo constant. Do you think that's easier to read or modify?

I guess that’s more the reflex of de-duplicating. Let me inline it, I don’t feel strongly about it at all.

I will actually give the multiline change a quick try on my work code base tomorrow to make sure it workds.

@kaste removing multiline = True stops errors from #include being flagged. You know better about the internals.

Oh, my bad. I misremembered it. We only set "multiline" automatically if "regex" is a string with inline flags. You know, these flags: (?m)foo.*.

Can I pull and release, or do you want another minute?

Pull and release, please :-) I will have another look into how errors of included files are reported soon.

Released as https://github.com/SublimeLinter/SublimeLinter-clang/releases/tag/2.2.0


Unify upload pre- and post-processing logic

Moves ownership of all the pre- and post-processsing of upload groups to girder.
Removes #196 (sorry Matt) because the server is a better place to decide whether or not a group of potential file uploads is vaid.
Automatically parse CSV and YML annotations into our internal JSON immediately and store as an item rather than computing this on-demand.  This means that we now have a nice method of performing "bulk import" that can be done entirely server side.
This will make it easier to extract the KPF parsing into a girder worker task (since it takes several seconds of CPU-intensive work) but I haven't done that yet.

Still WIP testing, but comments are welcome.
Removes ~160 LoC.

@mattrix27 let me know what you think.
It looks like there's still an issue with FPS: for videos it's set to 5 by the transcoding pipeline, but it should actually be calculated from the KPF files.  This is a problem for another day: setting "30" as the framerate through girder UI fixes the problem.

The changes make sense to me. It fixes a lot of things that Jacob mentioned about the pre-processing the kpf conversion. Mainly for me, but is it okay that the kpf conversion is not a convert task like convert image and video?

good question.   I'd say let's get this merged, create an issue, and that can be (one of) your next tasks?  Would that be OK, or are you busy with other stuff?

That would be great!

Logged #246

A few style suggestions, and one actual question, but besides that it looks good


Dsc 1351

This requests included additional EAD collection level fields required by delivery.

@scoen @bsingh-nla could you please review these changes?  I've also created nla.obj-8649844 which has works reflecting these changes.
Thanks,
Shuang


passwords for HTTP/S checks are shown in clear text

Please make the password field into a real password field with *** instead of clear text.

Happy to merge a PR

Sorry, Python is not my area of expertise.


simplify ucvm_query -h

The ucvm_query -h returns unused values. Simplify it to provide more limited options including:
Usage: ucvm_query [-m models] [-c coordtype] [-f config] [-z zmin,zmax] < file.in
Flags:
-h This help message.
-m Comma delimited list of crustal/GTL models to query in order
of preference.
-c Z coordinate mode: geo-depth (gd, default), geo-elev (ge).
-f Configuration file. Default is ./ucvm.conf.
-v Display model version information only.
-z Optional depth range for gtl/crust interpolation.

done..


False posative: A new downstream ....  has been detected

Describe the bug
We have configured bgpalerter using mostly the generated example configuration.  After leaving the daemon runing over night i notice the following reports which to me seem like false positives:
2022-01-11T22:00:05+00:00 verbose: A new downstream of AS14907 has been detected: AS1299
2022-01-11T22:00:05+00:00 verbose: A new downstream of AS14907 has been detected: AS6939
2022-01-11T22:00:13+00:00 verbose: A new downstream of AS14907 has been detected: AS2914
2022-01-11T22:00:13+00:00 verbose: A new downstream of AS14907 has been detected: AS3356

AS14907 is not a transit provider so this looks quite strange, however we do peer with rrc00, rrc03 and rrc23 and send them our full routing table and wonder if this could be the reason we are seeing theses alerts and if so is there a simple way to exclude our announcements to ris from the monitors?
Provide an example
full configure available  https://gist.github.com/b4ldr/8a6ab36e981ff9e85bdd2f465e892519
output from pullapi: https://gist.github.com/b4ldr/22e4c36dcfa34d3abaa42d2a2a335739
Expected behavior
I did not expect any alerts for additional downstream
Are you using the binary or the source code?
binary
Your information
John Bond, Wikimedia Foundation (AS14907)
p.s. will send a comment to #397 once in production and thanks for al the work :)

Hi John,
Thanks for the proper bug reporting.  I gave a look at the RIS data. The prefixes involved are RIS beacons announced by AS12654 (RIS). It looks like the beacons pass through other ASes, reach 14907, and are sent back into RIS (e.g., AS-path 14907, 1299, 2914, 42473, 12654).
I'm going to patch it right now and exclude all RIS beacons prefixes. It looks like this case can happen only in the PathNeighbors monitor, the other monitors are not affected. What you can do in the meanwhile is: if the warnings are a few and always about the same downstream ASes, you can temporarily add those ASes as downstreams in prefixes.yaml. Alternatively, you can remove the entire downstream list (including the "downstream:" part) to disable the downstream monitoring leaving the rest intact).

Awesome thanks for the quick response Massimo, currently we are only in the testing phase so this is not a massive issue for us and happy to test any updates.
for no ill just add the ris AS to our list of downstream thanks and let me know if you need anything more from our side

Try this pre-release which uses the code in the release branch. Remember to revert this.
I'm running it in our test environment monitoring 2914 (we also peer with RIS, but I never received that kind of "loop"). I will release it as soon as I'm sure everything is fine.

Thanks have updated to this version will let you know what we see.

We have had this running for about 24 hours now and not seen any additional alerts so i will tentatively close this, thanks for the speedy response

This has been released in v1.29.0. Some other minor fixes were added since this ticket; please, update your pre-release binaries with the released ones (or build it again).


[SUPPORT] Flink use different record_key format from spark

use flink insert data
use spark sql delete data

Expected behavior
spark sql cannot delete records ingested by flink
first record's record key is '3630'， this record ingested by flink
second record‘s record key is 'id:99999999', has prefix 'id:' , is ingested by spark

this is because RowDataKeyGen in hudi-flink does not add prefix to each key . is this a bug?
Environment Description

Hudi version : 0.11

Spark version : 2.4

Hive version :

Hadoop version :

Storage (HDFS/S3/GCS..) :

Running on Docker? (yes/no) : no

Additional context
Add any other context about the problem here.
Stacktrace
Add the stacktrace of the error.

@fengjian428 Could you post the Hudi write configs and steps to ingest data in both Flink and Spark?  Is there any key generation discrepancy between them?
@danny0405 are you aware of issues related to this?

Because Spark use ComplextKeyGenerator even if the key fields are single, i don't know the background, @yihua do you know that ?

yeah. its mainly bcoz of spark-sql. in spark-datasource, default key gen is SimpleKeyGen.
@xushiyan @YannByron : do we know why we have custom key gen as default in spark-sql.
but I didn't know that _hoodie_record_key value will be of the format "recordkeyFieldName:value". I checked the code and apparently for ComplexKeyGen and GlobalDeleteKeyGen we prefix the field name.
@xushiyan : we may need to solve this discrepancy.

@fengjian428
can you show the .hoodie/hoodie.properties here after inserting data by flink, but deleting data by spark-sql. If there is the config about keygen in .hoodie/hoodie.properties, spark-sql should use this value first,  but the default ComplexKeyGenerator. Please check this, and i need the information to locate this issue.

might be good to revisit after https://github.com/apache/hudi/pull/5815

key gen for spark and spark-sql are aligned now. Closing the issue since its fixed.
Feel free to open a new issue if you are looking for further assistance.
or re-open if your ask is different.


active_callback doesn't work with transport "postMessage"?

Issue description:
It seems that when using active_callback along with transport "postMessage", nothing seems to happen.
Is this on purpose?
I am using this exact demo configuration along with 'transport' => 'postMessage',
https://aristath.github.io/kirki/docs/arguments/active_callback.html
Version used:
Latest
Using theme_mods or options?
theme_mods

Can you please post the exact code you're using? Both for the dependency control and the dependent control

@kmob2 Can you please try using the development branch from this repo and let me know if it works for you?
If it doesn't then please paste the exact code you're using for both fields.

Hello,
I just downloaded the latest dev branch and it still doesn't seem to be working.
I am using your demo code from https://aristath.github.io/kirki/docs/arguments/active_callback.html along with 'transport'   => 'postMessage',
Here is the full code
Kirki::add_config( 'my_config' );

Kirki::add_section( 'my_section', array(
    'title'          => __( 'My Section' ),
    'priority'       => 10,
) );

Kirki::add_field( 'my_config', array(
	'type'      => 'checkbox',
	'settings'  => 'my_checkbox',
	'label'     => __( 'My Checkbox', 'my_textdomain' ),
	'section'   => 'my_section',
	'transport'   => 'postMessage',
	'default'   => 0,
	'priority'  => 10,
) );

Kirki::add_field( 'my_config', array(
	'type'      => 'radio',
	'settings'  => 'my_radio',
	'label'     => __( 'My Radio', 'my_textdomain' ),
	'section'   => 'my_section',
	'default'   => 'option-1',
	'transport'   => 'postMessage',
	'priority'  => 20,
	'choices'   => array(
		'option-1' => __( 'Option 1', 'my_textdomain' ),
		'option-2' => __( 'Option 2', 'my_textdomain' ),
		'option-3' => __( 'Option 3', 'my_textdomain' )
	)
) );

Kirki::add_field( 'my_config', array(
	'type'      => 'text',
	'settings'  => 'my_setting',
	'label'     => __( 'Text Color', 'my_textdomain' ),
	'section'   => 'my_section',
	'default'   => __( 'my default text here', 'my_textdomain' ),
	'priority'  => 30,
	'transport'   => 'postMessage',
	'active_callback'  => array(
		array(
			'setting'  => 'my_checkbox',
			'operator' => '==',
			'value'    => 1,
		),
		array(
			'setting'  => 'my_radio',
			'operator' => '!=',
			'value'    => 'option-1',
		),
	)
) );

I am not sure on what code you are using to achieve this solution, however Wester Ruter, who works on the core development at WP for the customizer, recently posted a great code snipped to achieve this function with pure JavaScript.
https://make.xwp.co/2016/07/24/dependently-contextual-customizer-controls/

This also occurs when the field your're checking against has transport postMessage.  For example the following set of fields toggles whether the site is full-width or fixed width.

Add/remove class "fixed" to body element
Customizer Setting Callback - Reveals site width and site background-color options - not working!
Customizer Preview Callback - Switches body bg color and container width

Kirki::add_field( 'mytheme', array(
	'type'        => 'radio-image',
	'settings'    => 'site_layout',
	'label'       => esc_attr__( 'Site Layout', 'mytheme' ),
	'section'     => 'site_settings',
	'default'     => 'full',
	'priority'    => 10,
	'choices'     => array(
		'full'   => plugins_url( '/kirki/assets/images/1c.png' ),
		'fixed' => plugins_url( '/kirki/assets/images/3cm.png' ),
	),
	'transport' => 'postMessage',
	'js_vars'   => array(
		array(
		    'function' => 'mytheme_site_layout',
		),
	),
) );

Kirki::add_field( 'mytheme', array(
	'type'        => 'color',
	'settings'    => 'site_bg_color',
	'label'       => esc_attr__( 'Site Background Color', 'mytheme' ),
	'section'     => 'site_settings',
	'default'     => '#efefef',
	'priority'    => 10,
	'alpha'       => true,
	'active_callback'    => array(
    	array(
    		'setting'  => 'site_layout',
    		'operator' => '==',
    		'value'    => 'fixed',
    	),
    ),
) );

Kirki::add_field( 'mytheme', array(
	'type'        => 'number',
	'settings'    => 'site_width',
	'label'       => esc_attr__( 'Layout Width', 'mytheme' ),
	'section'     => 'site_settings',
	'default'     => 1600,
	'choices'     => array(
		'min'  => '768',
		'max'  => 99999,
		'step' => 1,
	),
	'active_callback'    => array(
    	array(
    		'setting'  => 'site_layout',
    		'operator' => '==',
    		'value'    => 'fixed',
    	),
    ),
) );

Also, I found that if you enqueue a script with the action ''customize_preview_init" is still fires a callback for each field regardless of whether transport is set to postMessage or js_vars is set but the value is not passed.  For example, same as above, except we are using default refresh method instead of postMessage:
Kirki::add_field( 'mytheme', array(
	'type'        => 'radio-image',
	'settings'    => 'site_layout',
	'label'       => esc_attr__( 'Site Layout', 'mytheme' ),
	'section'     => 'site_settings',
	'default'     => 'full',
	'priority'    => 10,
	'choices'     => array(
		'full'   => plugins_url( '/kirki/assets/images/1c.png' ),
		'fixed' => plugins_url( '/kirki/assets/images/3cm.png' ),
	),
) );

function mytheme_customize_preview_js() {
    wp_enqueue_script( 'mytheme_customizer', get_template_directory_uri() . '/js/customizer.js', array( 'customize-preview' ), $ver, true );
}
add_action( 'customize_preview_init', 'mytheme_customize_preview_js' );

and inside customizer.js
( function( $ ) {

	//site layout
	wp.customize( 'site_layout', function( value ){
	   console.log( 'callback fires!' );
	    value.bind( function( to ) {
	        console.log( 'value is: ' + to );
			$( 'body' ).addClass( to );
		} );
    } );

} )( jQuery );

In the console, we see "callback fires!" on init and every time we change the site layout field, but a value for the field is never passed.  So while it's a cool discovery that we can still execute a js callback for any field regardless of the transport setting, lacking a value results in a pretty significant handicap.

Same issue - https://github.com/aristath/kirki/issues/1031

Same issue here. The active_callback doesn't work if the dependent field has transport => 'postMessage'.

I just confirmed that active_callback doesn't work if either is true.  Basically postMessage kills active_callback when the setting itself and/or the setting we are checking against has transport set to postMessage.
This is by far one of the biggest limitations I am running into with building out my panels with Kirki.

Hey guys
Started working on a JS implementation for this one but it's gonna take me some time... time is a bit limited atm.

I'm a bit troubled by this one...
The fact that active_callback doesn't work with postMessage is not a Kirki limitation, it's a WP-Core limitation (see Weston's comment on http://wordpress.stackexchange.com/questions/211779/customiser-active-callback-not-working-on-control-with-postmessage-transport#comment307740_211779)
Implementing via JS would allow us to fix this in cases where the visibility of a control depends on the values of other controls.
But this is not always the case... The beauty of active_callback is that it can be any function that returns true/false.
Implementing via JS would ruin any callbacks that are not regarding other control values.
I found a way around that so that it uses a JS implementation only for controls that depend on values of other controls.
But that's not the case always either!
There are cases where we may want mixed results... So for example show control X when value of control Y === true, AND function Z returns true.
I'm inclined to leave this as-is since as I mentioned earlier it's a WP-Core quirk (for good reason).
My fear is that fixing this will introduce more issues than it will solve.

In one of my first comments in this thread, I linked to Weston's blog where he has a tutorial about this. https://make.xwp.co/2016/07/24/dependently-contextual-customizer-controls/ I assume it's the same code you linked to on stackexchange from Weston.
I've been using that code (slightly modified for my own needs), and placed the code inside of the customizer.js file, and it works, no issues for over 2 months using Kirki and I have quiet a complex control panel where multiple values are nested and need to be true/false/custom values for others to become active. Didn't any real issues. However I was always hoping that this would become part of Kirki, since my javascript skills are not that great and my personal javascript code for this, is quiet ugly to be honest.
Knowing that many themes option panel will mix and match PostMessage with Refresh, it can be project killer for developers and avoid Kirki all together.

In one of my first comments in this thread, I linked to Weston's blog where he has a tutorial about this. https://make.xwp.co/2016/07/24/dependently-contextual-customizer-controls/ I assume it's the same code you linked to on stackexchange from Weston.

Similar, yes.
@kmob2 as I mentioned in my previous comment, field dependencies is just one of the uses of the active_callback argument.
On a theme I was building recently for example I had some settings that were specific to the homepage, other settings that only applied to single posts and so on.
So on some settings I had this:
'active_callback' => 'is_front_page'

On another setting that was for a product I had this:
'active_callback' => function_exists( 'is_product' ) ? 'is_product' : '__return_false',

and others with similar rules.
If we implement what you're suggesting, we're automatically excluding all these use-cases that rely on PHP.
No, I'm afraid that if you take the above into account you'll realize that we can't make it rely exclusively on JS.

Knowing that many themes option panel will mix and match PostMessage with Refresh, it can be project killer for developers and avoid Kirki all together.

This is not a limitation of Kirki, it's a limitation of the customizer.
Kirki simply enhances and simplifies some things in the customizer. But we can't bypass it.
If developers are willing to avoid Kirki because of that, then they should avoid the customizer altogether - since that's where this issue lies.
If we implement something it will have to be well-thought and will have to work both for PHP functions like the ones I mentioned in the examples above, as well as field dependencies.
The simplest solution would be to force-deactivate postMessage in case an active_callback is used.
But that would cause another wave of frustration from users/developers, wouldn't it?
So... I'm left with no solutions for now.
The best thing you can do for the time being until this gets resolved somehow in WordPress Core is to write your own JS like you already do.
I will continue to investigate this and try to think of a way to handle all scenarios properly, but it's not going to happen in a day.

Yes indeed, we still need active_callback to evaluate php of course.  But I think we can take advantage of knowing when active_callback contains any number of arrays that match having the "setting", "operator" and "value" keys.  These makes it dumb simple what to replicate in js for the same conditionals doesn't it?
I had just assumed (my bad) when using transport postMessage and active_callback we already did this and I should have looked closer so as not to have false expectation so for that I apologize.
Looking deeper, I think the part we are missing from WP core is the active_callback object being present in js so we can look for the conditional logic we need?  I'm going to try an idea and report back.  I think the trick I use to get post_meta data into the customizer might also work for this too by binding the active_callback object data to the wp.customize object and then do whatever we want in js once it's passed.
Otherwise it should be made clear to everyone in the docs that using some other function for active_callback would break this js enhancement.
Also maybe we can provide an example in the docs on how to pass the needed dataset to js when active_callback is also a custom function.  Most folks will only need a simple nudge in the right direction on how to bind that extra data to the wp.customize object then you can use the customizer for anything want.

@pingram3541 take a look at https://github.com/aristath/kirki/tree/develop/modules/field-dependencies
The PHP is mostly done, the JS though is a mess if you've got the time to take a look at it 👍

Seems to be working in 3.0


feat(form): add example on docs about glyphs on addon field

I've added a docs about using a glyph in .addon field.

[Current coverage][cc-pull] is 100%

Merging [#126][cc-pull] into [master][cc-base-branch] will not change coverage

@@           master   #126   diff @@
====================================
  Files          16     16
  Lines         247    247
  Methods         0      0
  Messages        0      0
  Branches        0      0
====================================
  Hits          247    247
  Misses          0      0
  Partials        0      0

[][cc-pull]

Powered by Codecov. Last updated by [01faf5e...02f815b][cc-compare]
[cc-base-branch]: https://codecov.io/gh/leroy-merlin-br/garden/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/leroy-merlin-br/garden/compare/01faf5e45f5b96c77e0ebbfa61b4a673318cd157...02f815b2d5ff70fa0b8450147b3325a66f9e355a
[cc-pull]: https://codecov.io/gh/leroy-merlin-br/garden/pull/126?src=pr


Suggestion: Make "View tag tabs" the default left click on the "plus" icon rather than "New tag tab"

Simply asking to swap the menu entries so that "view" is the first and default option. Viewing tabs is a far more common use case than creating a new tag tab.

This can be achieved by installing Custom Menu Swaps from the plugin hub.
Under Custom Swaps type:
view tag tabs,*
Hope this helps.

That is sick. Thanks mate!


Compile error about protobuf versions.

Hi, I got a error when I try to compile.
/home/migudm/caffe/build/include/caffe/proto/caffe.pb.h:17:2: error: #error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers.  Please regenerate this file with a newer version of protoc.
There are two versions of protobuf(2.5 and 3.5.1) in my Ubuntu14.  caffe is complied by protoc 2.5
I try to change the default protoc to version2.5. but it failed again.
shall I recomplie the Caffe with protoc 3.5.1 ?
I have looked for many similar problems, but still not solved

How did you resolve this issue?


Management fixes

This PR addresses the following two issues:

user principals are not visible in jconsole in our mxbeans unless the concrete implementation class is named in gateway config #773.  Fixed as follows:

In ServiceManagementBean, DefaultServiceManagementBean constructor, load the configured user principal classes and sstore them as class instances instead of string values
In SessionManagementBeanImpl.doSessionCreated(), store as the user principals for the session all of the Principals from the Subject which are instances of any of the configured user principal classes
In ServiceMXBeanImpl.closeSessions(String, String), use isAssignableFrom to match the passed in principal class against the actual principles on the session

Sporadic NPE in JMX management service in closeSessions service bean method #783

Fixed in JmxManagementServiceHandler by using ConcurrentHashMap instead of HashMap for two members which are aaccessed from multiple threads

I also removed some dead code from a few classes.

@sbadugu Please aassign some suitable to review this PR, preferably someone who has worked a bit with our MX beans monitoring stuff (management.jmx service).

Looks good to me other than question above

@dpwspoon I have now removed that file (MonitoringFileIT) because it should not have been included. Thanks for catching that. Should be good to merge now.

@cmebarrow
Test failure related to theses tests on travis:
Failed tests:
  JmxSessionPrincipalsSupertypeIT.shouldKillSessionsByRolePrincipalSupertype:219 Not all sessions have been closed expected:<0> but was:<1>

The test failure is a test issue. The test is not waiting for the three sessions to be open before calling closeSessions. The last session is actually  opening after closeSessions was called. Test needs to wait for three sessions to be open before  calling closeSessions.


fix putting larger mixed qualifier structs in std.variant

ping @John-Colvin

The unittest added in this PR currently compiles with the latest master of phobos. Given that no issue is linked and the lack of activity, I will close this PR. @John-Colvin feel free to reopen at any time.

@rmanthorpe i can't remember, maybe this was actually one of your changes that I upstreamed?

No this was all yours. I swapped out typeinfo for a mangle because windows, DLLs.


[Feature/Question] Notification for changes to the device gallery when app is dead

Currently I'm using flutter_background_fetch to periodically call PhotoManager.getAssetPathList to find photos and videos that were added/modified.
Would it be possible for PhotoManager to accept a function that should be executed each time the device gallery is modified, even if the app is not running?
Thanks again for the great library. Please let me know if I can help.

First, https://github.com/CaiJingLong/flutter_photo_manager#observer .
Second, why would you need a function when an app is no longer alive?

@AlexV525 Thanks for the response.
In my specific case, I'm building an app like Google Photos, that automatically backs up the photos that you take on your phone.
With the current implementation of the observer, I have to wait for the app to be opened for the photos to be backed up.
If the observer could also execute my callback function whenever a photo is taken, regardless of whether the app is alive or dead, that would greatly simplify the situation.

Is this issue resolved?

Hey @AlexV525, we've worked around this issue inefficiently by using flutter_background_fetch to periodically call PhotoManager.getAssetPathList.
If adding a JobScheduler to listen for changes in the background is within the scope of this project (as explained here), I would request you to leave this issue open (and perhaps mark it as help needed). But if you think that this is outside the scope of this project, please do close the issue.


Nats gh actions

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@e30991e). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@           Coverage Diff           @@
##             main      #39   +/-   ##
=======================================
  Coverage        ?   14.50%
=======================================
  Files           ?       71
  Lines           ?    38368
  Branches        ?     5155
=======================================
  Hits            ?     5564
  Misses          ?    31701
  Partials        ?     1103

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


feature: BelongsToSelect create action / modal

Don't mean to unnecessarily bump this, but what's the status on this? Does this need any help or work?

Yeah we're still working on it. We're also integrating a new select library at the same time so it'll take a little while longer.

Todo: reflect #2221

Todo: make closures static

@danharrin Have made some of the Closures static - will need a rebase on 2.x to see if there's any others as well.

This seems to be working now! :D

[ ] Dark mode
[ ] Get tom-select to to work in action modals
[ ] Debug performance issues

@danharrin Since we're moving some action stuff into the support package, can we also add a new invisible() method to the base Action class or make the default view for an action the invisible view?


EP Algorithms Distributed across Files and missing FITC

We don't seem to have any inheritance structure or code reuse between our EP-implementations, for example there is a lot of overlapping code between expectation_propagation_dtc.py and expectation_propagation.py. This means if someone comes up with clever tricks for update ordering (like Joe is suggesting) they would need to be implemented in multiple places, which feels wrong. Also somehow, along the way we've lost expectation_propagation_fitc.py ... it would be nice to get this back in.

Fixed with commit 383cf41


[2029] Fallback to default charset if the charset provided by sun.st*…

….encoding is invalid
Fixes #2029

Merged. Thank you for the contribution!


Cldc 647 lettype derived variable

Derive lettype value from the renttype, needstype and providertype fields

Does anything need changing on the bulk upload?

Does anything need changing on the bulk upload?

@baarkerlounger Don't think so 🤔


Scroll to bottom of long conversations

Right now when we have a long conversation we have to scroll to the bottom. Instead, the conversation should start at the bottom already, and continue to scroll down as messages are entered.

This should be fixed but there might be a case with long conversations where it does not scroll to the bottom on init


Bool parsing broken on XCode 8.1

"open var bool: Bool" is broken on XCode 8.1
The underlying json parsing library is now returning the Bool type when parsing my server bool responses.  Simple fix, I made this small change locally as a workaround:
///treat the value as a bool
open var bool: Bool {
    if let val = self.value as? Bool {
        return val
    } else if let str = self.string {
        let lower = str.lowercased()
        if lower == "true" || Int(lower) > 0 {
            return true
        }
    } else if let num = self.integer {
        return num > 0
    } else if let num = self.double {
        return num > 0.99
    } else if let num = self.float {
        return num > 0.99
    }
    return false
}

I'm experiencing the same issue, the bool property always seem to return false as of Xcode 8.1.

Thanks for the PR. Version 2.1.0 has been released with the update.


Hello world program in python

What the program do ?
Basic hello world program in python
In what programming language it is written?
Python

This pull request do not contains files in specific folders. Please fix it and reopen


Examples.csproj still points to 2.7.0 nuget package post 2.8.0 release

Seems to be the outcome of a bad merge somewhere.

Fixed in v2.9.0.


invoking suspense() with enabled: false will wait infinite while ssr

Describe the bug
const enabled = ref(false);
const { data, suspense } = useInfiniteQuery({ enabled })
await suspense()

Your minimal, reproducible example
https://codesandbox.io/p/devbox/eloquent-frog-3w6pk9?file=%2Fapp.vue
Steps to reproduce

By default the preview will never end loading
Change the line in /app.vue

-const enabled = ref(false);
+const enabled = ref(true);

Refresh preview

Expected behavior
Instantly exit suspense() as there's nothing to fetch while ssr.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
nuxt^3.5.2
Windows 11
Chrome 126
Tanstack Query adapter
vue-query
TanStack Query version
5.45.0
TypeScript version
No response
Additional context
This only reproducible when using useInfiniteQuery(), useQuery() is not affected:
-const { data, suspense } = useInfiniteQuery({
+const { data, suspense } = useQuery({
  queryKey: ['test'],
  queryFn: fetcher,
-  initialPageParam: '',
-  getNextPageParam: () => '',
  enabled
})

@n0099 This is done on purpose in response to an old ticket, where this particular behavior was requested.
And since it's rather easy to skip suspense()  call with condition during SSR, it currently supports both use-cases.
Related tickets:

https://github.com/TanStack/query/issues/4924
https://github.com/DamianOsipiuk/vue-query/issues/229

https://github.com/TanStack/query/issues/4924#issuecomment-1419577999
onServerPrefetch(async () => { // https://github.com/TanStack/query/issues/7609
    if (toValue(toValue(options)?.enabled) ?? true)
        await ret.suspense();
});

How do I make this compatible with https://github.com/TanStack/query/pull/7566 that introduced a param query to the callback variant of enabled?


Connectivity problem

I can't connect the Ktorm to my kobweb compose project I need help

This is probably not a issue of this library and should be better placed under Discussions or StackOverflow.
But maybe you can share more information what the problem is? Is there an error? What type of database are you trying to connect to?


If an expense item name is too long, it overlaps with the cost

Make the expense name able to break into multiple lines if there is no room
Screenshot:

This bug is being closed because it's already taken care of in task #3


Request: constants instead of magic numbers for windowBits parameter

zstr.hpp:99 and zstr.hpp:103 use 15+32 and 12+16 as default window size. The semantics of this behavior are documented in https://zlib.net/manual.html, but I find this interface not very intuitive. It's not clear that gzip is used by default, which lead to subtle bugs in some project code.
I would appreciate if there were constants or separate parameters to make the used window size and header explicit. It would be more clear that the default value 15 + 16 refers to a 64KiB window with gzip header. Also, changing the compression header would not involve setting arbitrary numbers to the windowBits parameter.
I would propose adding an enum class type for the compression header:
enum class header {auto_detect, zlib, gzip, raw_deflate};

The streambuf classes get additional constructors which take a compression header argument and calculate the windowBits value based on the compression header and the desired window size (+32, +16 or negate window size).

Thanks for the ideas. I do not develop this package, but I have merge-rights, so any PR is welcome.


Update ChatRoom.js (Bug Fixed)

Fixed Message Not Showing Bug

@Royalatomo Thank you for your contribution. Looking forward to more such amazing contributions 🥂

Sure 😊


which cuda version is used for colmap

Hi,
Thanks for open-sourcing this great work!
I am trying to follow the instruction of installing colmap. However, it fails at the step of building make -j, the error I got was:
 25%] Linking C static library liblsd.a
[ 25%] Built target lsd
/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(42): error: incomplete class type "textureReference" is not allowed
                           , &texRef, data(), &texRef.channelDesc, sz);
                                               ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(42): error: identifier "cudaBindTexture" is undefined
        cudaBindTexture(
        ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(48): error: incomplete class type "textureReference" is not allowed
                                    &texRef.channelDesc, size);
                                     ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(47): error: identifier "cudaBindTexture" is undefined
    cudaError_t e = cudaBindTexture(
                    ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(585): error: texture is not a template
  texture<float4, 1, cudaReadModeElementType> tex_jacobian_cam;
  ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(586): error: texture is not a template
  texture<float4, 1, cudaReadModeElementType> tex_jacobian_pts;
  ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(587): error: texture is not a template
  texture<int2, 1, cudaReadModeElementType> tex_jacobian_idx;
  ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(588): error: texture is not a template
  texture<float2, 1, cudaReadModeElementType> tex_jacobian_meas;
  ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(589): error: texture is not a template
  texture<float4, 1, cudaReadModeElementType> tex_jacobian_sj;
  ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(590): error: texture is not a template
  texture<int, 1, cudaReadModeElementType> tex_jacobian_shuffle;
  ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(636): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
    int2 proj = tex1Dfetch(tex_jacobian_idx, tidx);
                ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(641): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
    float4 ft = tex1Dfetch(tex_jacobian_cam, camera_pos);
                ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(642): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
    float4 r1 = tex1Dfetch(tex_jacobian_cam, camera_pos + 1);
                ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(647): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
    float4 r2 = tex1Dfetch(tex_jacobian_cam, camera_pos + 2);
                ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(652): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
    float4 r3 = tex1Dfetch(tex_jacobian_cam, camera_pos + 3);
                ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(655): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
    float4 temp = tex1Dfetch(tex_jacobian_pts, proj.y);
                  ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(676): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
      jc_pos = tex1Dfetch(tex_jacobian_shuffle, tidx) << 2;
               ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(716): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
          float4 sc1 = tex1Dfetch(tex_jacobian_sj, proj.x);
                       ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(722): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
          float4 sc2 = tex1Dfetch(tex_jacobian_sj, proj.x + 1);
                       ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(732): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
        float4 sc3 = tex1Dfetch(tex_jacobian_sj, proj.y + ptx);
                     ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(745): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
          float2 ms = tex1Dfetch(tex_jacobian_meas, tidx);
                      ^

/home/xxie/software/colmap-detector/lib/PBA/ProgramCU.cu(766): error: no instance of overloaded function "tex1Dfetch" matches the argument list
            argument types are: (<error-type>, int)
          float4 sc1 = tex1Dfetch(tex_jacobian_sj, proj.x);
                       ^

.....
94 errors detected in the compilation of "/home/xxie/software/colmap-detector/lib/SiftGPU/ProgramCU.cu".
CMake Error at pba_generated_ProgramCU.cu.o.Release.cmake:280 (message):
  Error generating file
  /home/xxie/software/colmap-detector/build/lib/PBA/CMakeFiles/pba.dir//./pba_generated_ProgramCU.cu.o

make[2]: *** [lib/PBA/CMakeFiles/pba.dir/build.make:77: lib/PBA/CMakeFiles/pba.dir/pba_generated_ProgramCU.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:561: lib/PBA/CMakeFiles/pba.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
CMake Error at sift_gpu_generated_ProgramCU.cu.o.Release.cmake:280 (message):
  Error generating file
  /home/xxie/software/colmap-detector/build/lib/SiftGPU/CMakeFiles/sift_gpu.dir//./sift_gpu_generated_ProgramCU.cu.o

make[2]: *** [lib/SiftGPU/CMakeFiles/sift_gpu.dir/build.make:77: lib/SiftGPU/CMakeFiles/sift_gpu.dir/sift_gpu_generated_ProgramCU.cu.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:613: lib/SiftGPU/CMakeFiles/sift_gpu.dir/all] Error 2

I suspect it is due to cuda library compatability issue, I am wondering which cuda-toolkit are you using? and what is your graphic card?
I am using Ubuntu2022 with RTX 3080 Ti.
Thanks a lot for your help.

Hi, we have tested our code on CUDA 11.7, 11.3, 10.2. The code works fine on these versions.

I cmake your colmap on CUDA 11.7, some errors appear.
/usr/local/cuda-11.7/include/cuda_runtime.h: In instantiation of ‘cudaError_t cudaBindTextureToArray(const texture<T, dim, readMode>&, cudaArray_const_t, const cudaChannelFormatDesc&) [with T = float; int dim = 2; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError; cudaArray_const_t = const cudaArray*]’:
/usr/local/cuda-11.7/include/cuda_runtime.h:1650:55:   required from ‘cudaError_t cudaBindTextureToArray(const texture<T, dim, readMode>&, cudaArray_const_t) [with T = float; int dim = 2; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError; cudaArray_const_t = const cudaArray*]’
/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/src/mvs/patch_match_cuda.cu:1629:36:   required from here
/usr/local/cuda-11.7/include/cuda_runtime.h:1609:32: warning: ‘cudaError_t cudaBindTextureToArray(const textureReference*, cudaArray_const_t, const cudaChannelFormatDesc*)’ is deprecated [-Wdeprecated-declarations]
1609 |   return ::cudaBindTextureToArray(&tex, array, &desc);
|        ^~
/usr/local/cuda-11.7/include/cuda_runtime_api.h:8787:46: note: declared here
8787 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaBindTextureToArray(const struct textureReference *texref, cudaArray_const_t array, const struct cudaChannelFormatDesc *desc);
|                                              ^~~~~~~~~~~~~~~~
CMake Error at colmap_cuda_generated_patch_match_cuda.cu.o.Release.cmake:280 (message):
Error generating file
/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/src/CMakeFiles/colmap_cuda.dir/mvs/./colmap_cuda_generated_patch_match_cuda.cu.o
src/CMakeFiles/colmap_cuda.dir/build.make:89: recipe for target 'src/CMakeFiles/colmap_cuda.dir/mvs/colmap_cuda_generated_patch_match_cuda.cu.o' failed
make[2]: *** [src/CMakeFiles/colmap_cuda.dir/mvs/colmap_cuda_generated_patch_match_cuda.cu.o] Error 1
CMakeFiles/Makefile2:723: recipe for target 'src/CMakeFiles/colmap_cuda.dir/all' failed
make[1]: *** [src/CMakeFiles/colmap_cuda.dir/all] Error 2
Makefile:135: recipe for target 'all' failed
make: *** [all] Error 2.
Can you give me some suggestions? Thank you. @hxy-123

I cmake your colmap on CUDA 11.7, some errors appear. /usr/local/cuda-11.7/include/cuda_runtime.h: In instantiation of ‘cudaError_t cudaBindTextureToArray(const texture<T, dim, readMode>&, cudaArray_const_t, const cudaChannelFormatDesc&) [with T = float; int dim = 2; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError; cudaArray_const_t = const cudaArray*]’: /usr/local/cuda-11.7/include/cuda_runtime.h:1650:55: required from ‘cudaError_t cudaBindTextureToArray(const texture<T, dim, readMode>&, cudaArray_const_t) [with T = float; int dim = 2; cudaTextureReadMode readMode = cudaReadModeElementType; cudaError_t = cudaError; cudaArray_const_t = const cudaArray*]’ /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/src/mvs/patch_match_cuda.cu:1629:36: required from here /usr/local/cuda-11.7/include/cuda_runtime.h:1609:32: warning: ‘cudaError_t cudaBindTextureToArray(const textureReference*, cudaArray_const_t, const cudaChannelFormatDesc*)’ is deprecated [-Wdeprecated-declarations] 1609 | return ::cudaBindTextureToArray(&tex, array, &desc); | ^~ /usr/local/cuda-11.7/include/cuda_runtime_api.h:8787:46: note: declared here 8787 | extern __CUDA_DEPRECATED host cudaError_t CUDARTAPI cudaBindTextureToArray(const struct textureReference *texref, cudaArray_const_t array, const struct cudaChannelFormatDesc *desc); | ^~~~~~~~~~~~~~~~ CMake Error at colmap_cuda_generated_patch_match_cuda.cu.o.Release.cmake:280 (message): Error generating file /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/src/CMakeFiles/colmap_cuda.dir/mvs/./colmap_cuda_generated_patch_match_cuda.cu.o
src/CMakeFiles/colmap_cuda.dir/build.make:89: recipe for target 'src/CMakeFiles/colmap_cuda.dir/mvs/colmap_cuda_generated_patch_match_cuda.cu.o' failed make[2]: *** [src/CMakeFiles/colmap_cuda.dir/mvs/colmap_cuda_generated_patch_match_cuda.cu.o] Error 1 CMakeFiles/Makefile2:723: recipe for target 'src/CMakeFiles/colmap_cuda.dir/all' failed make[1]: *** [src/CMakeFiles/colmap_cuda.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2.
Can you give me some suggestions? Thank you. @hxy-123

I didn't encounter this problem when using CUDA 11.7 for compile, and I think it is not the problem of the cuda version. I can find a similar problem in the issue of COLMAP repo, and you can try out their solution. Hope this can help you.

That issue doesn't solve my problem. I find that
Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA
Run Build Command(s):/usr/bin/make -f Makefile cmTC_b0914/fast && /usr/bin/make  -f CMakeFiles/cmTC_b0914.dir/build.make CMakeFiles/cmTC_b0914.dir/build
make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA”
Building C object CMakeFiles/cmTC_b0914.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_b0914.dir/src.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA/src.c
Linking C executable cmTC_b0914
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b0914.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_b0914.dir/src.c.o -o cmTC_b0914
CMakeFiles/cmTC_b0914.dir/src.c.o：在函数‘main’中：
src.c:(.text+0x3e)：对‘pthread_create’未定义的引用
src.c:(.text+0x4a)：对‘pthread_detach’未定义的引用
src.c:(.text+0x56)：对‘pthread_cancel’未定义的引用
src.c:(.text+0x67)：对‘pthread_join’未定义的引用
src.c:(.text+0x7b)：对‘pthread_atfork’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_b0914.dir/build.make:98: recipe for target 'cmTC_b0914' failed
make[1]: *** [cmTC_b0914] Error 1
make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA”
Makefile:127: recipe for target 'cmTC_b0914/fast' failed
make: *** [cmTC_b0914/fast] Error 2
Source file was:
#include <pthread.h>
static void* test_func(void* data)
{
return data;
}
int main(void)
{
pthread_t thread;
pthread_create(&thread, NULL, test_func, NULL);
pthread_detach(thread);
pthread_cancel(thread);
pthread_join(thread, NULL);
pthread_atfork(NULL, NULL, NULL);
pthread_exit(NULL);
return 0;
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY
Run Build Command(s):/usr/bin/make -f Makefile cmTC_11f0f/fast && /usr/bin/make  -f CMakeFiles/cmTC_11f0f.dir/build.make CMakeFiles/cmTC_11f0f.dir/build
make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY”
Building C object CMakeFiles/cmTC_11f0f.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_11f0f.dir/CheckFunctionExists.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY/CheckFunctionExists.c
Linking C executable cmTC_11f0f
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_11f0f.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_11f0f.dir/CheckFunctionExists.c.o -o cmTC_11f0f  -lpthreads
/usr/bin/ld: 找不到 -lpthreads
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_11f0f.dir/build.make:98: recipe for target 'cmTC_11f0f' failed
make[1]: *** [cmTC_11f0f] Error 1
make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY”
Makefile:127: recipe for target 'cmTC_11f0f/fast' failed
make: *** [cmTC_11f0f/fast] Error 2
Determining if the function sgemm_ exists failed with the following output:
Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L
Run Build Command(s):/usr/bin/make -f Makefile cmTC_04122/fast && /usr/bin/make  -f CMakeFiles/cmTC_04122.dir/build.make CMakeFiles/cmTC_04122.dir/build
make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L”
Building C object CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=sgemm_ -o CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L/CheckFunctionExists.c
Linking C executable cmTC_04122
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_04122.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=sgemm_ -rdynamic CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o -o cmTC_04122
CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o：在函数‘main’中：
CheckFunctionExists.c:(.text+0x10)：对‘sgemm_’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_04122.dir/build.make:98: recipe for target 'cmTC_04122' failed
make[1]: *** [cmTC_04122] Error 1
make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L”
Makefile:127: recipe for target 'cmTC_04122/fast' failed
make: *** [cmTC_04122/fast] Error 2
Determining if the function cheev_ exists failed with the following output:
Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A
Run Build Command(s):/usr/bin/make -f Makefile cmTC_4f686/fast && /usr/bin/make  -f CMakeFiles/cmTC_4f686.dir/build.make CMakeFiles/cmTC_4f686.dir/build
make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A”
Building C object CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o
/usr/bin/cc   -DCHECK_FUNCTION_EXISTS=cheev_ -o CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A/CheckFunctionExists.c
Linking C executable cmTC_4f686
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4f686.dir/link.txt --verbose=1
/usr/bin/cc  -DCHECK_FUNCTION_EXISTS=cheev_ -rdynamic CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o -o cmTC_4f686  /usr/lib/x86_64-linux-gnu/libblas.so /usr/lib/x86_64-linux-gnu/libf77blas.so /usr/lib/x86_64-linux-gnu/libatlas.so -lpthread -lm -ldl
CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o：在函数‘main’中：
CheckFunctionExists.c:(.text+0x10)：对‘cheev_’未定义的引用
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_4f686.dir/build.make:101: recipe for target 'cmTC_4f686' failed
make[1]: *** [cmTC_4f686] Error 1
make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A”
Makefile:127: recipe for target 'cmTC_4f686/fast' failed
make: *** [cmTC_4f686/fast] Error 2.
But I am sure that i have installed them.

@hxy-123

That issue doesn't solve my problem. I find that Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output: Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA
Run Build Command(s):/usr/bin/make -f Makefile cmTC_b0914/fast && /usr/bin/make -f CMakeFiles/cmTC_b0914.dir/build.make CMakeFiles/cmTC_b0914.dir/build make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA” Building C object CMakeFiles/cmTC_b0914.dir/src.c.o /usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD -o CMakeFiles/cmTC_b0914.dir/src.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA/src.c Linking C executable cmTC_b0914 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b0914.dir/link.txt --verbose=1 /usr/bin/cc -rdynamic CMakeFiles/cmTC_b0914.dir/src.c.o -o cmTC_b0914 CMakeFiles/cmTC_b0914.dir/src.c.o：在函数‘main’中： src.c:(.text+0x3e)：对‘pthread_create’未定义的引用 src.c:(.text+0x4a)：对‘pthread_detach’未定义的引用 src.c:(.text+0x56)：对‘pthread_cancel’未定义的引用 src.c:(.text+0x67)：对‘pthread_join’未定义的引用 src.c:(.text+0x7b)：对‘pthread_atfork’未定义的引用 collect2: error: ld returned 1 exit status CMakeFiles/cmTC_b0914.dir/build.make:98: recipe for target 'cmTC_b0914' failed make[1]: *** [cmTC_b0914] Error 1 make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-fqKnJA” Makefile:127: recipe for target 'cmTC_b0914/fast' failed make: *** [cmTC_b0914/fast] Error 2
Source file was: #include <pthread.h>
static void* test_func(void* data) { return data; }
int main(void) { pthread_t thread; pthread_create(&thread, NULL, test_func, NULL); pthread_detach(thread); pthread_cancel(thread); pthread_join(thread, NULL); pthread_atfork(NULL, NULL, NULL); pthread_exit(NULL);
return 0; }
Determining if the function pthread_create exists in the pthreads failed with the following output: Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY
Run Build Command(s):/usr/bin/make -f Makefile cmTC_11f0f/fast && /usr/bin/make -f CMakeFiles/cmTC_11f0f.dir/build.make CMakeFiles/cmTC_11f0f.dir/build make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY” Building C object CMakeFiles/cmTC_11f0f.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTC_11f0f.dir/CheckFunctionExists.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY/CheckFunctionExists.c Linking C executable cmTC_11f0f /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_11f0f.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -rdynamic CMakeFiles/cmTC_11f0f.dir/CheckFunctionExists.c.o -o cmTC_11f0f -lpthreads /usr/bin/ld: 找不到 -lpthreads collect2: error: ld returned 1 exit status CMakeFiles/cmTC_11f0f.dir/build.make:98: recipe for target 'cmTC_11f0f' failed make[1]: *** [cmTC_11f0f] Error 1 make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-0TckPY” Makefile:127: recipe for target 'cmTC_11f0f/fast' failed make: *** [cmTC_11f0f/fast] Error 2
Determining if the function sgemm_ exists failed with the following output: Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L
Run Build Command(s):/usr/bin/make -f Makefile cmTC_04122/fast && /usr/bin/make -f CMakeFiles/cmTC_04122.dir/build.make CMakeFiles/cmTC_04122.dir/build make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L” Building C object CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=sgemm_ -o CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L/CheckFunctionExists.c Linking C executable cmTC_04122 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_04122.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=sgemm_ -rdynamic CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o -o cmTC_04122 CMakeFiles/cmTC_04122.dir/CheckFunctionExists.c.o：在函数‘main’中： CheckFunctionExists.c:(.text+0x10)：对‘sgemm_’未定义的引用 collect2: error: ld returned 1 exit status CMakeFiles/cmTC_04122.dir/build.make:98: recipe for target 'cmTC_04122' failed make[1]: *** [cmTC_04122] Error 1 make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-e4pt3L” Makefile:127: recipe for target 'cmTC_04122/fast' failed make: *** [cmTC_04122/fast] Error 2
Determining if the function cheev_ exists failed with the following output: Change Dir: /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A
Run Build Command(s):/usr/bin/make -f Makefile cmTC_4f686/fast && /usr/bin/make -f CMakeFiles/cmTC_4f686.dir/build.make CMakeFiles/cmTC_4f686.dir/build make[1]: 进入目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A” Building C object CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o /usr/bin/cc -DCHECK_FUNCTION_EXISTS=cheev_ -o CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o -c /home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A/CheckFunctionExists.c Linking C executable cmTC_4f686 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4f686.dir/link.txt --verbose=1 /usr/bin/cc -DCHECK_FUNCTION_EXISTS=cheev_ -rdynamic CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o -o cmTC_4f686 /usr/lib/x86_64-linux-gnu/libblas.so /usr/lib/x86_64-linux-gnu/libf77blas.so /usr/lib/x86_64-linux-gnu/libatlas.so -lpthread -lm -ldl CMakeFiles/cmTC_4f686.dir/CheckFunctionExists.c.o：在函数‘main’中： CheckFunctionExists.c:(.text+0x10)：对‘cheev_’未定义的引用 collect2: error: ld returned 1 exit status CMakeFiles/cmTC_4f686.dir/build.make:101: recipe for target 'cmTC_4f686' failed make[1]: *** [cmTC_4f686] Error 1 make[1]: 离开目录“/home/wxs/3D_Recon/DetectorFreeSfM/third_party/colmap/build/CMakeFiles/CMakeScratch/TryCompile-xrAw4A” Makefile:127: recipe for target 'cmTC_4f686/fast' failed make: *** [cmTC_4f686/fast] Error 2.
But I am sure that i have installed them.

It seems that the reported error is irrelevant to my modification part of COLMAP. I think you can try to install COLMAP (sha: 5879f41fb89d9ac71d977ae6cf898350c77cd59f, which is the commit version I modified from) to see whether it works.

Could I ask which version of gcc/g++  do you use? @hxy-123

Could I ask which version of gcc/g++ do you use? @hxy-123

The gcc/g++ version on my machine is 9.4.0, which can work well for installation.

I fixed it，the main reason is the version of gcc，when i changed it from 11.4 to 9.4，the issue was been fixed. Thank you！
---- Replied Message ----
| From | Xingyi @.> |
| Date | 05/16/2024 22:38 |
| To | zju3dv/DetectorFreeSfM @.> |
| Cc | VerseWei @.>,
Comment @.> |
| Subject | Re: [zju3dv/DetectorFreeSfM] which cuda version is used for colmap (Issue #18) |
Could I ask which version of gcc/g++ do you use? @hxy-123
The gcc/g++ version on my machine is 9.4.0, which can work well for installation.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: @.***>

As an aside, I ran the demo you provided like this but received an error. Do I need to implement downloading the dataset, even if it's just running this demo？
python eval_dataset.py +demo=dfsfm.yaml
File "eval_dataset.py", line 28
f"Prior pose is provided, however no_refine_intrinsics is False and COLMAP will also optimize intrinics"
^
SyntaxError: invalid syntax. @hxy-123

As an aside, I ran the demo you provided like this but received an error. Do I need to implement downloading the dataset, even if it's just running this demo？
python eval_dataset.py +demo=dfsfm.yaml File "eval_dataset.py", line 28 f"Prior pose is provided, however no_refine_intrinsics is False and COLMAP will also optimize intrinics" ^ SyntaxError: invalid syntax. @hxy-123

Have you changed the path in dfsfm.yaml?

I chananged it as this.
dataset_base_dir: /home/wxs/3D_Recon/DetectorFreeSfM/SfM_dataset # NOTE: please modify here!

@hypochlorous

As an aside, I ran the demo you provided like this but received an error. Do I need to implement downloading the dataset, even if it's just running this demo？
python eval_dataset.py +demo=dfsfm.yaml File "eval_dataset.py", line 28 f"Prior pose is provided, however no_refine_intrinsics is False and COLMAP will also optimize intrinics" ^ SyntaxError: invalid syntax. @hxy-123

Downloading the dataset is not required if you only need to run the demo, whereas a small set of data has been enclosed in repo. The error is invalid syntax. It seems that the code has not passed the grammar check before anything begins running. Can you tell me the python version you are using?

I used python 3.9 as same as your suggestion.
python                    3.9.19          h0755675_0_cpython    conda-forge @hxy-123

I used python 3.9 as same as your suggestion. python 3.9.19 h0755675_0_cpython conda-forge @hxy-123

The error shows that the grammar f-string is not supported, where this is a grammar that is supported only after python 3.6. You can try to remove the character f in Line 28.


Feature requests

I see my own posts via an instance of AppBskyActorDefsProfileViewDetailed. Fine. But when I click on the avatar of a card, I get a AppBskyActorDefsProfileViewBasic, which has less information and in particular not the profile's posts. I tried to figure out how to get an AppBskyActorDefsProfileViewDetailed from the AppBskyActorDefsProfileViewBasic, but I didn't get very far. THere doesn't seem to be a way to see a given user's posts.
The other apparently missing (or well-hidden) data is my timeline.

Noticed that if I access someone else's profile through my "following" tab, I get the detailed profile views with the posts. In principle I can construct my timeline from that. Or something better. But it would still be nice to get the detailed view for all profiles, no matter how I navigate to them.

The thing is that when we navigate from a card to the picture we use the data we got when we requested the post data. So, whatever is in that data, that is what is spawned without requiring any extra remote call.

So the more fundamental question is: it this supposed to be a moldable BlueSky client or an explainable and explorable interface to the AT protocol? Not the same priorities, not the same audience.

As the name suggests, this project is at the level of AT Protocol first. The BlueSky snippet, for example, is built on top of that.

We have picked up work on this again. The timeline now has posts  and many other views. I’ll close this for now. If/when other feature requests arise, don’t hesitate to open another issue!


Add an example of using Pulumi with GitLab Pipelines

We should add an example of how to configure and use Pulumi inside of a GitLab Pipeline, similar to how we have documentation for GitHub Actions. This is related to https://github.com/pulumi/docs/issues/598, but sufficiently distinct (and related to a customer ask), that I decided to file separately.

This was completed by #628.

I am closing this since there is now a doc on pulumi.io about how to use pulumi in a GitLab CI runner.

🎉


Problem accessing Firefox with xrdp

I am using these docker-images to test:
https://hub.docker.com/r/danielguerra/ubuntu-xrdp/
When I access the whole Desktop with guacamole via XRDP, everything is working fine. When I just stream the firefox-application (initial program) without the rest of the GUI, all menus close immediately after opening them. This includes firefox's hamburger-menu, bookmarks and drop-down-menus. I tried to switch of hardware-acceleration in firefox.
Is this somehow related to xrdp?

Old issue, worked with openbox in xrdp.


xvideos.com

Checklist

[x] I'm reporting a broken site support issue
[x] I've verified that I'm running youtube-dl version 2021.12.17
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar bug reports including closed ones
[x] I've read bugs section in FAQ

Verbose log

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.xvideos.com/video46166175/joris_and_young_wilson_bareback', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.12.17
[debug] Python version 3.10.6 (CPython) - Linux-5.15.0-56-generic-x86_64-with-glibc2.35
[debug] exe versions: ffmpeg 4.4.2, ffprobe 4.4.2
[debug] Proxy map: {}
[XVideos] 46166175: Downloading webpage
ERROR: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 634, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2288, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.10/urllib/request.py", line 525, in open
    response = meth(req, response)
  File "/usr/lib/python3.10/urllib/request.py", line 634, in http_response
    response = self.parent.error(
  File "/usr/lib/python3.10/urllib/request.py", line 563, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 496, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.10/urllib/request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)

Description

WRITE DESCRIPTION HERE

try with youtube-dl --force-generic-extractor "https://www.xvideos.com/video46166175/joris_and_young_wilson_bareback"

Duplicate of #30707 and see also #30942.


apply HetznerBareMetalHost labels to resulting node

/kind feature
Describe the solution you'd like
Adding labels to a HetznerBareMetalHost objects metadata can be used for the hostSelector of HetznerBareMetalMachineTemplate however it would be great if these labels would also be applied to the corresponding node in k8s.
An example would be to add Hetzner specific labels such as
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: HetznerBareMetalHost
metadata:
  name: "test-123"
  labels:
    instance.hetzner.cloud/is-root-server: true

to remove the requirement to label them afterwards on a per-node-basis.

This feature request is out-of-scope for caph.
There is already some work and issues about propagating labels to kubernetes nodes.
Please see:

https://github.com/kubernetes-sigs/cluster-api/issues/7006
https://github.com/kubernetes-sigs/cluster-api/issues/493
https://github.com/kubernetes-sigs/cluster-api/pull/6255

And the proposal here: https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20220927-label-sync-between-machine-and-nodes.md


0.91.13  [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)

Karabiner Elements 0.91.13 (latest) stops working with tons of the error. Reinstall and removing karabiner.json did not work.
Similar to #647, but seems different.
OS X 10.12.6
[2017-08-18 11:52:24.150] [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)
[2017-08-18 11:52:24.162] [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)
[2017-08-18 11:52:24.162] [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)
[2017-08-18 11:52:24.297] [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)
[2017-08-18 11:52:24.299] [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)
[2017-08-18 11:52:24.308] [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)
[2017-08-18 11:52:24.308] [error] [grabber] connect_ is null @ bool krbn::virtual_hid_device_client::call_method(std::function<IOReturn ()>)

0.91.12 works on my mac.

Having the same issue, 0.91.12 is fine.

I'm having the same issue with 0.91.13.

Having the same issue with 11.1.0. Manually killing the karabiner_grabber process solved the issue.

I am having the same issue with 11.1.0 and High Sierra.


What is dashboard's "Timers"?

Hi,
Would someone be so kind to explain what "Timers" mean in the dashboard?

Sometimes I have one running, but I don't know what it really means. And I can't find mention of Timers in Konga or Kong documentation.. It gets all this space in the dashboard and looks visually attractive with its updating graph, but I'm unsure what I'm supposed to get from it.
(and thanks for making this app available!)

@gaggle ,
in general, timers are async processes in nginx that perform various tasks over time intervals.
Something like async CRON jobs.
Don't forget that Kong is actually just nginx with some bells and whistles.
Now, as to what specific tasks Kong is running at the background, I have no idea :).
Maybe you could ask over at Kong's official gitter chat. They're are more qualified to answer this.


Incorrect Button Label

Just updated to this version of Mod Menu on my 1.19.3 instance:

I found this in Mod Menu's config menu. That bottom-right button looks pretty messed up.

Fixed in 5.1.0-beta.3 which should be out shortly


Explorer new dataset format

PR that changes the explorer to match the new dataset format.

There is some weird refersh  error that is occurring which might get resolved/ will be easier to debug after removing the partitions.
Let's focus on first getting this PR merged since it might fix the issue

Thanks @PhilippeMoussalli!
Ran into some issues when testing:

Yes I ran into a few of those as well, I introduced new updates to fix them:
- Flickering
Was due to the fact that the pandas dataframe kept reloading everytime and merging, fixed this by caching the function that loads it. We're using the mapping fields dict as the cache key in this case (not possible to cache dask dataframe object)
The rest of the small issues were also handled (pipeline visualization, image gallery, numerical analysis, fixed screen size). I fixed other issues as well to better navigate the datasets. Let me know if you run into any more issues


Why is .gitattributes set to make every file binary?

It makes it impossible to see a diff of any changes you make...

Not for any good reason. It was probably committed by accident rather than setting it in a local config.

Closed by eb5c7a9ff284c486ee225af1d2a5f3645498da50


Any modifications required for Mac OS?

Hello and thanks for amazing work!
All works fine except line length: since you don't escape color codes via additional pair of "\[" and "\]", macos thinks that prompt has much greater length than actually is and wraps text being entered early.
What else do I need to add into my ~/.bashrc to fix this issue? Maybe some flag or general setting is required?

Ah, interesting. I don't fully color codes so I've only done what I can to get it working. Can you suggest fixes that would solve this? The docs online are very dense so hard to grasp.

I've tried adding the \[ you mentioned around the color codes so for example:
local red_unstaged_prefix="\[\033[1;31m\]"

That gives:

seems the \[ is getting escaped

I think it will be something like this: https://github.com/michaeldfallen/git-radar/pull/6
Basically you need to find all ansi escape sequences that starts with "\033" and ends with "m", and put them inside "[" and "]" so bash will know that they are actually color codes and don't have length. You also need to place all characters that have zero length (like bell sound etc) between "[" and "]". Can you please check my pull request? Does it breaks something on your machine or all works fine?

I wouldn't be surprised if my use of printf is messing things around.

Thanks for the pull request btw

Using: printf '%q' $(./../git-radar/git-radar --bash) I get:
\\[\E[1;30m\\]git:(\\[\E[0m\\]\\[\E[0;37m\\]master\\[\E[0m\\]\\[\E[1;30m\\])\\[\E[0m\\]

So the \ is getting escaped at some point

I have tested on my machine, escaping works fine. How did you received this screenshot?

Please note, that "[" and "]" is PS1-specific magic, it will not work if just printed from terminal

Figured it out, I had my .bashrc set to:
export PS1='\W$(~/Projects/personal/git-radar/git-radar --bash) '

The correct way is:
export PS1="\W$(~/Projects/personal/git-radar/git-radar --bash) "

I.E. the ' should be ".

So if you use double quotes in your .bashrc file my pull request works on your machine?

Actually it looks like it doesn't work right. So if I use ' then the prompt gets evaluated every time it renders. If I use " git-radar only renders the once, when the prompt first renders. .bashrc doesn't seem to be re-evaluated.
This might be my machine causing issues. Can you drop me your line where you set your PS1?

Indeed where are weird things. If used double quotes  escape codes work correct but evaluates only once (by standard actually), and with single quotes they are messed up.
But it's something inside string returned by git-radar that mess string. If I use:
export PS1='\[\e[37m\]\W\[\e[32m\]foo\[\e[33m\] \$ \[\e[37m\]'
```bash

scape codes work fine. But if `git-radar` is added, its messed up:

```bash
export PS1='\[\e[37m\]\W\[\e[32m\]$(~/Documents/git-radar/git-radar --bash --fetch)\[\e[33m\] \$ \[\e[37m\]'

I don't know why this happens :(
So i used a hack that allows to use double quotes in realtime. This makes things work:
make_prompt () {
  PS1="\[\e[37m\]\W\[\e[32m\]$(~/Documents/git-radar/git-radar --bash --fetch)\[\e[33m\] \$ \[\e[37m\]"
}
export PROMPT_COMMAND='make_prompt'

Ok, so this superuser question explains it. PS1 converts \[ to \x01 and \] to \x02.
When you use ' to ensure your prompt gets evaluated each time, or use a \ to escape the $ in your PS1 for the same purpose:
export PS1="\$(git-radar --bash)"

then the PS1 doesn't get the chance to convert \[ to \x01 etc. The fix is to do the conversion ourselves.
I've pushed a pull request https://github.com/michaeldfallen/git-radar/pull/11, can you check if that works for you? It works for me both in:
export PS1='\W\$(~/Projects/personal/git-radar/git-radar --bash) '

and
export PS1="\W$(~/Projects/personal/git-radar/git-radar --bash) "

Seems a very complicated thing. But works like a charm!

Awesome, thanks for the help. Closing.


add faq about quant and context

This adds a short faq to describe quantization and context.

Will close this for now as there are basic instructions in the FAQ on how to set the context window size: https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size


If navbar doesn't hide on tap, it should not hide when font menu is shown

I have to hide it because of the day/night transition effect, it looks strange with the navigationBar.

I wondered if that may have been why you did that.
I added FolioReader.sharedInstance.readerCenter.configureNavBar() to help this, although its not perfect because it does not animate the color change.

Yes, the animation is not smooth, so I prefer to hide. What do you think?

I really wish we could animate the navbar, but in my limited research, I did not find a way to animate navBar?.setBackgroundImage()
We can keep it hidden for now. The reason I changed it was because the hideBar() is being called when presenting the "audio controls" view and it looked weird to have the navbar hide itself. When I traced it out, I noticed it happening in the font menu view so I changed it for both.
I'll keep the navbar visible for the audio controls view only.

So I don't think I need merge this for now right?

Correct.


Easy attach a banny to pay txs MVP

What does this PR do and why?
Closes #686
Screenshots or screen recordings
https://user-images.githubusercontent.com/96150256/173245773-04f7fa39-4d27-4ddb-81c8-84de8c8bbcd8.mp4

Acceptance checklist

[x] I have evaluated the
Approval Guidelines
for this PR.
[x] I have tested this PR in
all supported browsers.

@johnnyd-eth thanks for the changes, I made a few more in https://github.com/jbx-protocol/juice-interface/pull/1218/commits/365bcabc754a1110f40ebd626fdd8ebd4f34fc26, and also added the memo form item to the V1 modal.
Merging!


Escape stopped working with recent update

b"H
As of most recent update, seems like the escape button no longer closes recommendations and highlights while typing.
Using Windows 10

Please provide reproducible steps.

Jak naprawić swój sprzęt informatyczny
pt., 25.05.2018, 23:12 użytkownik Yossi<EMAIL_ADDRESS>napisał:

b"H
Seems like the escape button no longer closes recommendations and
highlights while typing.
Using Windows 10
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/50483, or mute the thread
https://github.com/notifications/unsubscribe-auth/AlmclwrI34QD9TBgKwtxWjg-eE9-SM4Dks5t2HPXgaJpZM4UOlOB
.

B"H

Start typing
Suggestions popup
Press escape button

Expected: should close popup
Actual: nothing happens
This appears more than just annoying - but makes vs code unusable for rapid coding.

@yossicadaner I cannot reproduce this in VS Code 1.23.1 (stable) or 1.24.0 (Insiders).
It is possible that this issue is caused by an installed extension. Can you try to run VS Code without extensions? If you see it is an issue with the extension, please file it against the extension repository itself.

BH
It suddenly started working back today. Haven't restarted the machine or
anything. Will monitor is comes up again.  For now this can be closed I
guess
On Sun, May 27, 2018, 11:19 AM Andre Weinand<EMAIL_ADDRESS>wrote:

@yossicadaner https://github.com/yossicadaner I cannot reproduce this
in VS Code 1.23.1 (stable) or 1.24.0 (Insiders).
It is possible that this issue is caused by an installed extension. Can
you try to run VS Code without extensions? If you see it is an issue with
the extension, please file it against the extension repository itself.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/vscode/issues/50483#issuecomment-392338831,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAT5dr20QEzKwzMPvLseTDWZ-YjHeOacks5t2sQOgaJpZM4UOlOB
.


[test] Update P2P latency tests

I oriented the reference values for the P2P OSU latency test on the values for daint and the last outputs from
/apps/dom/UES/jenscscs/regression/production/logs/dom/gpu/

@jenkins-cscs retry none