text:
R200 VIDIOC_DQBUF error 19, No such device

Note: Please take advantage of RealSense Community and Support sites.

Required Info

Camera Model
R200

Firmware Version
1.0.72.10

Operating System & Version
Ubuntu 16.04

Kernel Version (Linux Only)
4.4.0-83-generic

I can install and ran the example code with SR300, but I got error for R200.
I applied this script.
https://github.com/IntelRealSense/librealsense/blob/master/scripts/install-r200-udev-fix.sh
a@a-desktop:/usr/local/bin$ ./cpp-tutorial-3-pointcloud
There are 1 connected RealSense devices.
Using device 0, an Intel RealSense R200
Serial number:
Firmware version: 1.0.72.10
terminate called after throwing an instance of 'std::runtime_error'
what():  VIDIOC_DQBUF error 19, No such device
Aborted (core dumped)

Hi @raymond00000 ,
The specific error type occurs when host-device connection is interrupted.
This often occurs due to insufficient power or other hw-related issues.
There is a substantial volume of technical info gathered and evaluated by user in previous threads.
You may find useful info looking into threads, such as 515, 437, 418 and
108.

I'm encountering the exact same issue and I'm using an Anker USB powered hub so it's not power related:
[  484.815148] WARNING: CPU: 0 PID: 11439 at /build/linux-hwe-edge-sLLR41/linux-hwe-edge-4.11.0/fs/sysfs/group.c:237 sysfs_remove_group+0x8c/0x90
[  484.815150] sysfs group 'power' not found for kobject 'media1'
[  484.815151] Modules linked in: iTCO_wdt iTCO_vendor_support rfcomm ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo iptable_nat nf_nat_ipv4 br_netfilter bridge stp llc aufs xt_multiport bnep hid_generic snd_hda_codec_hdmi nls_iso8859_1 snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_sst_match snd_soc_core snd_hda_codec_realtek snd_hda_codec_generic snd_compress ac97_bus snd_pcm_dmaengine snd_usb_audio usbhid snd_usbmidi_lib snd_hda_intel snd_hda_codec arc4 snd_hda_core snd_hwdep snd_pcm intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_seq_midi snd_seq_midi_event snd_rawmidi kvm irqbypass crct10dif_pclmul snd_seq crc32_pclmul ghash_clmulni_intel pcbc iwlmvm snd_seq_device snd_timer mac80211 aesni_intel
[  484.815209]  aes_x86_64 crypto_simd snd glue_helper cryptd iwlwifi intel_cstate intel_rapl_perf hci_uart btusb btrtl rtsx_pci_ms ir_rc6_decoder btbcm cfg80211 memstick soundcore btqca rc_rc6_mce btintel ir_lirc_codec uvcvideo lirc_dev ite_cir bluetooth videobuf2_vmalloc rc_core videobuf2_memops videobuf2_v4l2 videobuf2_core videodev media acpi_als intel_lpss_acpi intel_lpss kfifo_buf mei_me industrialio shpchp tpm_crb mei mac_hid intel_pch_thermal acpi_pad ip6t_REJECT nf_reject_ipv6 nf_log_ipv6 xt_hl ip6t_rt nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 nf_log_ipv4 nf_log_common xt_LOG xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack i2c_smbus
[  484.815278]  libcrc32c i2c_i801 iptable_filter parport_pc ip_tables ppdev x_tables sunrpc lp parport autofs4 i915 rtsx_pci_sdmmc i2c_algo_bit drm_kms_helper syscopyarea e1000e sysfillrect sysimgblt fb_sys_fops nvme ptp nvme_core pps_core drm rtsx_pci ahci libahci wmi video pinctrl_sunrisepoint pinctrl_intel i2c_hid hid
[  484.815313] CPU: 0 PID: 11439 Comm: c-tutorial-2-st Tainted: G        W       4.11.0-13-generic #19~16.04.1-Ubuntu
[  484.815315] Hardware name:                  /NUC7i3BNB, BIOS BNKBL357.86A.0045.2017.0417.1728 04/17/2017
[  484.815316] Call Trace:
[  484.815320]  dump_stack+0x63/0x90
[  484.815323]  __warn+0xcb/0xf0
[  484.815327]  warn_slowpath_fmt+0x5a/0x80
[  484.815331]  sysfs_remove_group+0x8c/0x90
[  484.815336]  dpm_sysfs_remove+0x57/0x60
[  484.815340]  device_del+0x12d/0x350
[  484.815348]  media_devnode_unregister+0x3f/0x60 [media]
[  484.815353]  media_device_unregister+0x147/0x180 [media]
[  484.815359]  uvc_delete+0x6d/0x160 [uvcvideo]
[  484.815365]  uvc_release+0x23/0x30 [uvcvideo]
[  484.815375]  v4l2_device_release+0xe6/0x120 [videodev]
[  484.815380]  device_release+0x32/0x90
[  484.815384]  kobject_release+0x6a/0x170
[  484.815388]  kobject_put+0x2f/0x60
[  484.815392]  put_device+0x17/0x20
[  484.815401]  v4l2_release+0x50/0x80 [videodev]
[  484.815406]  __fput+0xe7/0x220
[  484.815411]  ____fput+0xe/0x10
[  484.815416]  task_work_run+0x7e/0xa0
[  484.815420]  do_exit+0x2e2/0xb60
[  484.815424]  ? hrtimer_cancel+0x19/0x20
[  484.815427]  do_group_exit+0x43/0xb0
[  484.815431]  get_signal+0x293/0x620
[  484.815436]  do_signal+0x37/0x750
[  484.815439]  ? do_futex+0x210/0x530
[  484.815443]  ? __check_object_size+0x108/0x19e
[  484.815449]  exit_to_usermode_loop+0x76/0xb0
[  484.815453]  syscall_return_slowpath+0x59/0x60
[  484.815457]  entry_SYSCALL_64_fastpath+0xab/0xad
[  484.815459] RIP: 0033:0x7fd92737c709
[  484.815461] RSP: 002b:00007ffe2362b850 EFLAGS: 00000202 ORIG_RAX: 00000000000000ca
[  484.815464] RAX: fffffffffffffdfc RBX: 0000000000976550 RCX: 00007fd92737c709
[  484.815466] RDX: 0000000000000017 RSI: 0000000000000189 RDI: 00000000009883bc
[  484.815468] RBP: 000000000095d120 R08: 000000000095d130 R09: 00000000ffffffff
[  484.815470] R10: 00007ffe2362b910 R11: 0000000000000202 R12: 0000000000000017
[  484.815472] R13: 00007ffe2362b910 R14: ffffffffffffff92 R15: 00007ffe2362b800
[  484.815476] ---[ end trace bcc18219e8acab32 ]---

@ev-mp, Should I open a new issue?

@mgcrea , the power consumption is definitely one of the first things to look into, but not only:
the quality and length of USB3 cables matters as well. The depth module itself may be faulty.
In case the disconnects are deterministic and can be reproduced by application/code - you're welcomed to open new issue and we will definitely address it.
Otherwise you need to check the HW setup (R200+USB3 cable + USB3 hub) and probably replace some components to isolate the weakest link.
Additional hints/things to consider:

Are you using the original (30cm) USB3 cable supplied with R200?
Does this specific HW setup works/fails when connected some other PC/OS ?
Did you try to use Ubuntu stable (LTS) kernel instead of 4.11.0-13?

authors: ev-mp mgcrea raymond00000

repo: IntelRealSense/librealsense


text:
how to use realsenseD435 on nvidia jetson tx2(arm64)?

I want to use realsenseD435 on manifold2-G to get depth and color information. The configuration of manifold2-G is nvidia jetson tx2, arm64, ubuntu16.04. I want to know if the official SDK supports me to achieve this function?if not,are there any other intel product that can meet my needs?

This question has been responded to on the Intel support site.   Thanks!
https://support.intelrealsense.com/hc/en-us/community/posts/360038327173

See also doc/installation_jetson.md

source: gharchive/issue

authors: MartyG-RealSense dorodnic powerpistn

license_type: permissive

license_source: github-api


text:
Devices under /dev/video* do not seem to provide RGB formats

Required Info

Camera Model
D415

Firmware Version
05.12.05.00

Operating System & Version
Ubuntu 16.04.6 LTS

Kernel Version (Linux Only)
4.15.0-106-generic

Platform
PC

Issue Description
Somehow it seems that the provided video devices under /dev/video* do not provide an RGB stream. This means I can't e.g. use Cheese or Zoom Conferencing with this camera. However the realsense-viewer util shows all the streams correctly. Maybe there is something wrong with my udev rules?
I have followed this link to install the kernel module and utils. The devices correctly show up:
$ v4l2-ctl --list-devices --verbose
Intel(R) RealSense(TM) Depth Ca (usb-0000:00:14.0-4):
        /dev/video0
        /dev/video1
        /dev/video2

$ modinfo uvcvideo | grep "version:"
version:        1.1.2.realsense-1.3.11
srcversion:     DDEE98EBF0181C7A35FC635

However when looking at the provided formats it seems there is no RGB stream supported... What am I doing wrong here?
$ v4l2-ctl --list-formats --device=/dev/video0
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'Z16 '
        Name        : 16-bit Depth

        Index       : 1
        Type        : Video Capture
        Pixel Format: 'Z16 '
        Name        : 16-bit Depth

$ v4l2-ctl --list-formats --device=/dev/video1
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'GREY'
        Name        : 8-bit Greyscale

        Index       : 1
        Type        : Video Capture
        Pixel Format: 'UYVY'
        Name        : UYVY 4:2:2

        Index       : 2
        Type        : Video Capture
        Pixel Format: 'GREY'
        Name        : 8-bit Greyscale

        Index       : 3
        Type        : Video Capture
        Pixel Format: 'Y8I '
        Name        : Interleaved 8-bit Greyscale

        Index       : 4
        Type        : Video Capture
        Pixel Format: 'Y12I'
        Name        : Interleaved 12-bit Greyscale

        Index       : 5
        Type        : Video Capture
        Pixel Format: 'W10 '
        Name        : 10-bit packed 8888[2222]

$ v4l2-ctl --list-formats --device=/dev/video2
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'YUYV'
        Name        : YUYV 4:2:2

        Index       : 1
        Type        : Video Capture
        Pixel Format: 'BYR2'
        Name        : 16-bit Bayer BGBG/GRGR

@sp4rc , the listing is correct -  D415 enumerates as three UVC devices :
1 /dev/video0 - Depth sensor (Z16)
2 /dev/video1 - IR sensor (Y8/Y16)
3 /dev/video2 - RGB sensor (YUYV/BYR2)
To use the camera with cheese you need to tell the app to use the proper device.
Here are two snapshots from cheese - the left half uses RGB, the right-IR:

@ev-mp   Thanks very much for your answer, I didn't have the setup to test this myself in Ubuntu right now.   I thought it might be as you illustrated though, since my experiences of accessing the camera via RealSense driver selection in video-equipped applications like Skype and Discord in Windows are similar.  Thanks again!
https://github.com/IntelRealSense/librealsense/issues/6209#issuecomment-615091643

@sp4rc , the listing is correct - D415 enumerates as three UVC devices :
1 /dev/video0 - Depth sensor (Z16)
2 /dev/video1 - IR sensor (Y8/Y16)
3 /dev/video2 - RGB sensor (YUYV/BYR2)
To use the camera with cheese you need to tell the app to use the proper device.
Here are two snapshots from cheese - the left half uses RGB, the right-IR:

Thanks for replying. Unfortunately I can't get any output. When using cheese it simply crashes (Speicherfehler), even when supplying the device via -d /dev/video2... Also no luck using camorama. What else can I try?

@sp4rc , according to the log cheese crashed, so I went to Ubuntu 16 to check and experienced the same issue with application crashes on start.
I kind of found a work-around - start cheese and then connect the camera to the PC. This way the application doesn't crash on start, but it then also doesn't generate live stream even though the three D415 sensors are listed in the app's preferences menu.
Therefore, since cheese runs properly in Ubuntu 18 the issue seem to be isolated to app-level, and that it was already rectified in bionic release. You can try to upgrade the app for xenial, but I don't know if that is feasible.

Therefore, since cheese runs properly in Ubuntu 18 the issue seem to be isolated to app-level, and that it was already rectified in bionic release. You can try to upgrade the app for xenial, but I don't know if that is feasible.

Thanks again. I will consider upgrading to the latest LTS version of Ubuntu.

Thanks

authors: MartyG-RealSense ev-mp sp4rc


text:
Get intel D4XX ASIC temperature and Projector temperature

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D430/D435

Firmware Version
5.12.7.1

Operating System & Version
ubuntu

Kernel Version (Linux Only)
4.19.66-v7

Platform
Raspberry Pi4

SDK Version
2.36.0

Language
{C/C#/labview/nodejs/opencv/pcl/python/unity }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
< I want to get D430 or D435 Projector temperature and ASIC temprerature,but I failed.
I referred to these two links
https://github.com/IntelRealSense/librealsense/issues/3888
https://github.com/IntelRealSense/librealsense/issues/866#issuecomment-357461253
this is my code:
eg 1:
void intelCameraControl::GetCameraTemperature()
{
std::vectorrs2::sensor sensors = selected_device.query_sensors();
auto  depth_sensor = selected_device.firstrs2::depth_sensor();
if (depth_sensor.supports(RS2_OPTION_ASIC_TEMPERATURE))
{
float tmpASIC = depth_sensor.get_option(RS2_OPTION_ASIC_TEMPERATURE);
	cout << "tmpASIC=" << tmpASIC << endl;
}
else
	cout << "error" << endl;
return;

}
eg 2:
void intelCameraControl::GetCameraTemperature()
{
auto dbg = selected_device.as<rs2::debug_protocol>();
std::vector<uint8_t> cmd = { 0x14, 0, 0xab, 0xcd, 0x2a, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

auto res = dbg.send_and_receive_raw_data(cmd);
int temp = res[4];
std::cout << "Projector 温度为  "<<temp << std::endl;

return;

}
Application method eg 1, I cannot get the ASIC temperature and Projector temperature. Using method eg2, I can get the Projector temperature. But how to get the ASIC temperature. ASIC temperature is very important for me to test the camera, please give some suggestions, thank you.

Hi @dingbaiyin  The link below provides information for reading both ASIC and projector temperatures with C++.
https://github.com/IntelRealSense/librealsense/issues/6735
I see that you have already viewed the https://github.com/IntelRealSense/librealsense/issues/866 case about reading the temperatures in Python.  You can also find Python information for temperature reading in the official Python documentation for the SDK:
https://intelrealsense.github.io/librealsense/python_docs/search.html?q=temperature&check_keywords=yes&area=default

Sorry I submitted the question repeatedly.
I still cannot read the ASIC temperature successfully.
I read the this link.I saw that this user successfully read the ASIC temperature. I increased the delay after obtaining the frame according to his method, and then read the ASIC temperature, but it still failed.
https://github.com/IntelRealSense/librealsense/issues/6735
Can you provide a C++ method to read the ASIC temperature?

All of the information sources that I know of about the subject of reading ASIC temperature have already been provided above, unfortunately and I could find no other useful references.

Thank you very much for your help, I hope this problem can be solved in the fu help, I hope this problem can be solved in the future update.
In my test, I found that an error occurred when getting the Projector temperature.
The error message is "terminate called after throwing an instance of'rs2::backend_error' what(): set_xu(...). xioctl(UVCIOC_CTRL_QUERY) failed Last Error: Device or resource busy
"An error occurred when collecting 700-900 images, and the frequency was about 4 seconds.
Get the Projector temperature every time a picture is collected.
Is The reason that the acquisition frequency is too high？. I want to acquire the Projector temperature in real time. How can I avoid this problem?

I researched your latest question but could not find any useful additional information again unfortunately.
If you are reading the temperature for the purposes of testing the camera then there is a simpler test.  Touch the camera casing with your hand and if it is hot to the touch then the temperature of the camera is too hot.
Also, the SDK has a laser safety mechanism.  If the projector temperature exceeds 60 degrees C for several seconds then the Laser Power will be halved.  If the projector temperature continues to be excessive for several seconds after that then the laser is shut off.

Yes, my camera did experience a situation what the temperature was too high and the laster shut off, so I need to monitor the Projector and ASIC temperature.If there is a new way to get the ASIC temperature, I will try it. I will close this issue

Thank you very much for the update.

authors: MartyG-RealSense dingbaiyin


text:
Reading temperature fails when in genlock mode

Required Info

Camera Model
D455

Firmware Version
5.12.7.100

Operating System & Version
Win10

Kernel Version (Linux Only)

Platform
PC

SDK Version
SDK 2.0 (build 2.41.0)

Language
C++

Segment
others

Issue Description
Trying to read temperature every few seconds in genlock mode (Inter Cam Sync Mode 4). From time to time, temperature read fails with hwmon_response::hwm_HWNotReady.
Configuration:

using hwm for temperature read
auto dbg = device.as<rs2::debug_protocol>();
std::vector<uint8_t> cmd = {0x14, 0, 0xab, 0xcd, 0x2a, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
auto res = dbg.send_and_receive_raw_data(cmd);

auto exposure

depth stream only

Issue mostly appears when there is a change in the scene brightness, so the auto exposure is busy calculating the right exposure.
I assume it is not recommended to use auto-exposure when in genlock mode (non-consistent frame rate).
So, I changed to manual exposure. And change exposure randomly before each temperature readout. Using this approach, issue appear more frequently.
Additionally,  when camera returns hwmon_response::hwm_HWNotReady, camera can be not responsive to hwm commands up to ~2.5s.
Is there some problem with resource sharing on the firmware side or is this expected behavior? When accessing projector temperature and changing exposure time at the same time (almost) introduces unknown behavior.

Hi @daziFR   This problem is likely unrelated to genlock.  Issues with polling in C++ that did not occur in Python have been reported in the past.  A RealSense team member has said: "In C++ things tend to happen little faster (not to mention the extra layers of indirection).  It is likely that the first call made for the sensor temperature will arrive earlier than the sensor is ready to respond".
That information is sourced from a discussion in the link below:
https://github.com/IntelRealSense/librealsense/issues/6735
A RealSense user who was having problems with this issue solved it by reducing the frequency of temperature polling.

Thanks @MartyG-RealSense. Yes I read this topic #7389. But simply I cannot reproduce this in continuous mode. Maybe it is the same issue, but can be reproduced much easily in genlock mode.
Also, when using genlock in ROS Kinetic, this occurs occasionally, where the poll frequency is 10s, which is much slower than in my CPP example.

Advice that I have from Intel is that genlock mode is not currently a mature feature, and so although you are free to use it and experiment with it, the original hardware sync system (mode 1 and 2) in the Multi-Camera Configurations white-paper document should be considered the mature 'validated' method of hardware syncing cameras.
https://dev.intelrealsense.com/docs/multiple-depth-cameras-configuration

Hi @daziFR   Bearing in mind the above statenent about genlock not being a mature system, do you require further assistance with this case please?   Thanks!

Hi @MartyG-RealSense,
There is no need for further assistance. Topic can be closed. I just wonder, are there some dates, timelines given for the new features (genlock, d455 synchronization etc) to be mature? Thanks.

Thanks very much @daziFR for the update.  I do not have information about future plans for the mentioned features.

authors: MartyG-RealSense daziFR


text:
[Node.js] Fix issues found in UT

Update test cases and index.js for issues found during test

@halton PTAL, thanks.

@halton PTAL of the updated commit, thanks.

source: gharchive/pull-request


text:
waterdrop flink jdbcsink 写入mysql异常

Waterdrop Version(Waterdrop版本)
waterdrop2.0
Flink Version(Flink 版本)
1.9.1
Java Version(Java版本)
1.8
Waterdrop Config(Waterdrop配置文件)
Please delete sensitive information(请注意删除敏感信息)
JdbcSink {
"source_table_name" = "test_table"
"driver" = "com.mysql.jdbc.Driver"
"url" = "url"
"username" = "xx"
"password" = "xxx"
"query" = "insert into test(a, b) into (?,?)"
"batch_size" = 10
}
Screenshots
插入的时候报这个错误，插入的字段内容中含有表情符号：字段内容（😍•ᴗ•啊啊22398*%%=@啊），数据库已经设置为utf8mb4字符集，并且通过mysql客户端是可以插入成功的。
If applicable, add screenshots to help explain your problem.
org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
at org.apache.flink.runtime.jobmaster.JobResult.toJobExecutionResult(JobResult.java:146)
at org.apache.flink.runtime.minicluster.MiniCluster.executeJobBlocking(MiniCluster.java:627)
at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:117)
at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.java:1507)
at io.github.interestinglab.waterdrop.flink.stream.FlinkStreamExecution.start(FlinkStreamExecution.java:59)
at io.github.interestinglab.waterdrop.Waterdrop.entrypoint(Waterdrop.java:88)
at io.github.interestinglab.waterdrop.Waterdrop.run(Waterdrop.java:47)
at io.github.interestinglab.waterdrop.WaterdropFlink.main(WaterdropFlink.java:13)
Caused by: java.lang.Exception: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.checkThrowSourceExecutionException(SourceStreamTask.java:212)
at org.apache.flink.streaming.runtime.tasks.SourceStreamTask.performDefaultAction(SourceStreamTask.java:132)
at org.apache.flink.streaming.runtime.tasks.StreamTask.run(StreamTask.java:298)
at org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:403)
at org.apache.flink.runtime.taskmanager.Task.doRun(Task.java:705)
at org.apache.flink.runtime.taskmanager.Task.run(Task.java:530)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at org.apache.flink.streaming.api.operators.StreamSourceContexts$NonTimestampContext.collect(StreamSourceContexts.java:104)
at org.apache.flink.streaming.api.operators.StreamSourceContexts$NonTimestampContext.collectWithTimestamp(StreamSourceContexts.java:111)
at org.apache.flink.streaming.connectors.kafka.internals.AbstractFetcher.emitRecordWithTimestamp(AbstractFetcher.java:398)
at org.apache.flink.streaming.connectors.kafka.internal.KafkaFetcher.emitRecord(KafkaFetcher.java:185)
at org.apache.flink.streaming.connectors.kafka.internal.KafkaFetcher.runFetchLoop(KafkaFetcher.java:150)
at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumerBase.run(FlinkKafkaConsumerBase.java:715)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:100)
at org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:63)
at org.apache.flink.streaming.runtime.tasks.SourceStreamTask$LegacySourceFunctionThread.run(SourceStreamTask.java:202)
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at org.apache.flink.streaming.api.operators.StreamMap.processElement(StreamMap.java:41)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 13 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at SourceConversion$27.processElement(Unknown Source)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 19 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at StreamExecCalc$28.processElement(Unknown Source)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 25 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at SinkConversion$31.processElement(Unknown Source)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 31 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at org.apache.flink.streaming.api.operators.StreamFilter.processElement(StreamFilter.java:40)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 37 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at org.apache.flink.streaming.api.operators.StreamMap.processElement(StreamMap.java:41)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 43 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at SourceConversion$33.processElement(Unknown Source)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 49 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$BroadcastingOutputCollector.collect(OperatorChain.java:707)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$BroadcastingOutputCollector.collect(OperatorChain.java:660)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at SinkConversion$35.processElement(Unknown Source)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 55 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at SourceConversion$37.processElement(Unknown Source)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 63 more
Caused by: org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: Could not forward element to next operator
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:654)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:612)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.collect(OperatorChain.java:592)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:727)
at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.collect(AbstractStreamOperator.java:705)
at SinkConversion$39.processElement(Unknown Source)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 69 more
Caused by: java.lang.RuntimeException: Execution of JDBC statement failed.
at org.apache.flink.api.java.io.jdbc.JDBCOutputFormat.flush(JDBCOutputFormat.java:102)
at org.apache.flink.api.java.io.jdbc.JDBCOutputFormat.writeRecord(JDBCOutputFormat.java:93)
at org.apache.flink.api.java.io.jdbc.JDBCSinkFunction.invoke(JDBCSinkFunction.java:38)
at org.apache.flink.api.java.io.jdbc.JDBCSinkFunction.invoke(JDBCSinkFunction.java:29)
at org.apache.flink.streaming.api.functions.sink.SinkFunction.invoke(SinkFunction.java:52)
at org.apache.flink.streaming.api.operators.StreamSink.processElement(StreamSink.java:56)
at org.apache.flink.streaming.runtime.tasks.OperatorChain$CopyingChainingOutput.pushToOperator(OperatorChain.java:637)
... 75 more
Caused by: java.sql.BatchUpdateException: Incorrect string value: '\xF0\x9F\x98\x8D\xE2\x80...' for column 'subject' at row 1
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.Util.getInstance(Util.java:408)
at com.mysql.jdbc.SQLError.createBatchUpdateException(SQLError.java:1163)
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1778)
at com.mysql.jdbc.PreparedStatement.executeBatchInternal(PreparedStatement.java:1262)
at com.mysql.jdbc.StatementImpl.executeBatch(StatementImpl.java:970)
at org.apache.flink.api.java.io.jdbc.JDBCOutputFormat.flush(JDBCOutputFormat.java:99)
... 81 more
Caused by: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x98\x8D\xE2\x80...' for column 'subject' at row 1
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3976)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3912)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2683)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2486)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1858)
at com.mysql.jdbc.PreparedStatement.executeUpdateInternal(PreparedStatement.java:2079)
at com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:1756)
... 84 more
Additional context
Add any other context about the problem here.

repo: InterestingLab/waterdrop

license_source: bigquery


text:
[Bug] 3090 部署internlm2-chat-20b-4bits，提问卡住不懂

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.

Describe the bug

Reproduction
转换格式：
lmdeploy convert internlm2-chat-20b  /vllmapi/internlm2-chat-20b-4bits --model-format awq --group-size 128 --tp 1
推理
lmdeploy chat turbomind ./workspace
输入你好后，出现警告信息后就开着不动了
Environment
docker环境

Error traceback
No response

我在3090上试了下，还没有复现这个问题。你用的是哪个镜像呢？

这是我的结果。步骤和你的一样

使用了 @makefree3 的环境，复现了卡主的问题。gdb信息如下：

结合源码：

在windows系统上，应该要走 #ifdef _MSC_VER 的分支。但是因为是windows上的docker container，所以执行的是 #else 分支。
而这个分支会导致卡主。
解决方法是都换成 cudaStreamSynchronize，但需要验证这种修改会不会影响在LINUX上的性能。

我们还是建议直接在windows裸机上部署。

我们还是建议直接在windows裸机上部署。

你好，我在windows裸机上本地部署internvl2-8B，运行示例代码：
from lmdeploy import pipeline, TurbomindEngineConfig, ChatTemplateConfig, GenerationConfig
from lmdeploy.vl import load_image

model = 'D:\\xxxx\\InternVL2-8B'
system_prompt = '我是书生·万象，英文名是InternVL，是由上海人工智能实验室、清华大学及多家合作单位联合开发的多模态大语言模型。'
chat_template_config = ChatTemplateConfig('internvl-internlm2')
chat_template_config.meta_instruction = system_prompt
pipe = pipeline(model, chat_template_config=chat_template_config,
                backend_config=TurbomindEngineConfig(session_len=8192))

image = load_image('D:\\xxx.jpg')
gen_config = GenerationConfig(top_k=40, top_p=0.8, temperature=0.8)
sess = pipe.chat(('describe this image', image), gen_config=gen_config)
print(sess.response.text)
sess = pipe.chat('What is the woman doing?', session=sess, gen_config=gen_config)
print(sess.response.text)

没有任何输出
以下是一些warning：
Flash Attention is not available, use_flash_attn is set to false.
....
gemm_config.in is not found; using default GEMM algo
那边仓库说是[lmdeploy][https://github.com/OpenGVLab/InternVL/issues/391]在windows的支持不好的问题，请问有什么好的解决方案吗？
我的环境是：
torch2.2.2+cu121
lmdeploy 0.5.2.post1

创建 pipeline 的时候，加入参数 log_level="INFO"，然后再运行一遍demo，贴下详细的日志

创建 pipeline 的时候，加入参数 log_level="INFO"，然后再运行一遍demo，贴下详细的日志

换成量化版本解决了

repo: InternLM/lmdeploy


text:
微调后的glm-4v-9b通过lmdeploy部署会报错

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.

Describe the bug
报错信息很奇怪，看起来像是环境的问题，但是我在相同环境下部署modelscope下载的glm-4v-9b是正常的，所以我猜测大概率不是环境问题，报错信息如下
2024-07-15 16:44:07,336 - lmdeploy - WARNING - Try to run with pytorch engine because /home/admin/ai-testing-platform/data/dx/swift/glm4v_model is notexplicitly supported by lmdeploy.
/usr/bin/ld: skipping incompatible /lib/libcuda.so when searching for -lcuda
/usr/bin/ld: skipping incompatible /lib/libcuda.so when searching for -lcuda
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../libcuda.so when searching for -lcuda
/usr/bin/ld: skipping incompatible //lib/libcuda.so when searching for -lcuda
/usr/bin/ld: skipping incompatible //usr/lib/libcuda.so when searching for -lcuda
/usr/bin/ld: cannot find -lcuda
collect2: error: ld returned 1 exit status
2024-07-15 16:44:08,558 - lmdeploy - ERROR - CalledProcessError: Command '['/usr/bin/gcc', '/tmp/tmpz6ods113/main.c', '-O3', '-I/home/admin/ai-testing-platform/anaconda3/envs/dx_deploy/lib/python3.11/site-packages/triton/common/../third_party/cuda/include', '-I/home/admin/ai-testing-platform/anaconda3/envs/dx_deploy/include/python3.11', '-I/tmp/tmpz6ods113', '-shared', '-fPIC', '-lcuda', '-o', '/tmp/tmpz6ods113/_add_kernel.cpython-311-x86_64-linux-gnu.so', '-L/lib64', '-L/lib', '-L/lib']' returned non-zero exit status 1.
2024-07-15 16:44:08,558 - lmdeploy - ERROR - test failed!
Please ensure it has been installed correctly.
Reproduction
asdfaf
Environment
python3.11 cuda12.1

Error traceback
No response

Since you have deployed a fine-tuned version instead of the open-source version, we are unable to reproduce your issue. Perhaps you can try creating a new instance and testing it in a clean environment.

@danxuan2022 hi, something wrong with your env. The env check failed. Pls try with docker image

authors: RunningLeon danxuan2022 zhyncs


text:
[Bug] 使用官方镜像v0.5.1进行GLM4v的部署会有一个报错

Checklist

[ ] 1. I have searched related issues but cannot get the expected help.
[ ] 2. The bug has not been fixed in the latest version.

Describe the bug
(internvl) root@377ecd1ff00c:/mnt/code/yzy/InternVL# CUDA_VISIBLE_DEVICES=5 lmdeploy serve api_server /mnt/model/glm/glm4v --model-name glm4v --cache-max-entry-count 0.8
2024-07-17 08:19:57,971 - lmdeploy - WARNING - Fallback to pytorch engine because /mnt/model/glm/glm4v not supported by turbomind engine.
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 15/15 [00:07<00:00,  1.97it/s]
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
HINT:    Please open http://0.0.0.0:23333 in a browser for detailed api usage!!!
HINT:    Please open http://0.0.0.0:23333 in a browser for detailed api usage!!!
HINT:    Please open http://0.0.0.0:23333 in a browser for detailed api usage!!!
INFO:     Started server process [68826]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:23333 (Press CTRL+C to quit)
INFO:     127.0.0.1:47296 - "POST /v1/chat/completions HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
Traceback (most recent call last):
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/uvicorn/protocols/http/httptools_impl.py", line 399, in run_asgi
result = await app(  # type: ignore[func-returns-value]
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in call
return await self.app(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/fastapi/applications.py", line 1054, in call
await super().call(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/applications.py", line 123, in call
await self.middleware_stack(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/middleware/errors.py", line 186, in call
raise exc
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/middleware/errors.py", line 164, in call
await self.app(scope, receive, _send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/middleware/cors.py", line 85, in call
await self.app(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 65, in call
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/routing.py", line 756, in call
await self.middleware_stack(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/routing.py", line 776, in app
await route.handle(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/routing.py", line 297, in handle
await self.app(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/routing.py", line 77, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
raise exc
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
await app(scope, receive, sender)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/starlette/routing.py", line 72, in app
response = await func(request)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/fastapi/routing.py", line 278, in app
raw_response = await run_endpoint_function(
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/fastapi/routing.py", line 191, in run_endpoint_function
return await dependant.call(**values)
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/lmdeploy/serve/openai/api_server.py", line 529, in chat_completions_v1
async for res in result_generator:
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/lmdeploy/serve/async_engine.py", line 571, in generate
prompt_input = await self._get_prompt_input(prompt,
File "/root/miniforge-pypy3/envs/internvl/lib/python3.9/site-packages/lmdeploy/serve/vl_async_engine.py", line 59, in _get_prompt_input
segs = decorated.split(IMAGE_TOKEN)
AttributeError: 'NoneType' object has no attribute 'split'
Reproduction
CUDA_VISIBLE_DEVICES=5 lmdeploy serve api_server /mnt/model/glm/glm4v --model-name glm4v --cache-max-entry-count 0.8
Environment
use the docker image with tag v0.5.1

Error traceback
No response

@ZhiyuYUE hi, what your code of using endpoint v1/chat/completions service?

@ZhiyuYUE hi, what your code of using endpoint v1/chat/completions service? You could refer to this example: https://lmdeploy.readthedocs.io/en/latest/serving/api_server_vl.html#integrate-with-openai

@RunningLeon  hi, I actually use the same method to post the request. Here is the command to run the docker container:
docker run --gpus all -itd --restart=always --name glm4v --privileged=true -v /nas/litaifan/glm/glm4v:/opt/lmdeploy/glm4v --env "CUDA_VISIBLE_DEVICES=3" -p 23334:23333  --ipc=host openmmlab/lmdeploy:v0.5.1 lmdeploy serve api_server glm4v  --cache-max-entry-count 0.8
And my request is
from openai import OpenAI
model_name = 'glm4v'
print(model_name)
headers = {'Content-Type': 'application/json'}
data = {
"model":model_name,
#"model":"glm4v",
"temperature": 0,
"messages": [{
'role':
'user',
'content': [{
'type': 'text',
'text': 'Describe the image please',
}, {
'type': 'image_url',
'image_url': {
'url':
'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg',
},
}],
}]}
import requests
result = requests.post(url = 'http://192.168.10.81:23334/v1/chat/completions', headers=headers, json=data)
response = result.text
print(response)
then the internal server error show up. If I use the way of openai client, it is the same error

@ZhiyuYUE hi chat_template is not right when you give model_path as glm4v. you can try one of these

add --model-name glm4 to lmdeploy serve api_server glm4v --model-name glm4 ...
mapping model_path to glm-4v when creating docker container docker run ... -v /nas/litaifan/glm/glm4v:/opt/lmdeploy/glm-4v ... lmdeploy serve api_server glm-4v ...

@ZhiyuYUE 请问你这个解决了吗

原生的internvl2-2b没问题， 但是swift用lora微调后merge lora的模型就会有类似的问题。

@RunningLeon  I also encountered the same problem when running batch_infer . Looks like glm-4v processcer hasn't adapted yet. https://github.com/InternLM/lmdeploy/blob/main/lmdeploy/vl/templates.py#L300

@RunningLeon I also encountered the same problem when running batch_infer . Looks like glm-4v processcer hasn't adapted yet. https://github.com/InternLM/lmdeploy/blob/main/lmdeploy/vl/templates.py#L300

hi, how do you run with batch_infer? maybe you can give a sample code to reproduce and post lmdeploy  check_env if possible as well.

authors: RunningLeon ZhiyuYUE ajskld jaytsien moyans


text:
[Help needed] CallbackAddress clarification

In several CN request messages it is defined mandatory field called callbackAddress, like
"dspace:callbackAddress": "https://..."
My question is:
is this value defined somewhere by the specification or this is left to the connector implementation, and receiver will use value provided, and send response to that address, without any processing.
For example:
if connector receives dspace:ContractRequestMessage with callbackAddress=https://igor.connector/listen/response
this means that receiving connector will return response to https://igor.connector/listen/response
This url is not defined anywhere in the specification. It is up to the implementation of the connector to provide valid logic for processing response under this API.
Why this ask for help:
https://docs.internationaldataspaces.org/ids-knowledgebase/v/dataspace-protocol/contract-negotiation/contract.negotiation.binding.https#id-2.2-the-negotiations-request-endpoint-provider-side
says:
Callback messages will be sent to paths under the base URL as described by this specification.
If added here Callback request message will be sent ...
this means (IMHO) that callback is referred only in Prerequisite section scope - for receiving requests, both on provider and consumer side.
callbackAddress will be used as-is, without any  url replacing.
Thanks

Hi @IgorBalog-Eng
not sure if I understood the question. Does this explanation help?

All callback paths are relative to the callbackAddress base URL specified in the Contract Request Message that initiated a CN. For example, if the callbackAddress is specified as https://consumer.com/callback and a callback path binding is negotiations/:consumerPid/offers, the resolved URL will be https://consumer.com/callback/negotiations/:consumerPid/offers.

https://docs.internationaldataspaces.org/ids-knowledgebase/v/dataspace-protocol/contract-negotiation/contract.negotiation.binding.https#id-3.1-prerequisites
Also the table here should help:
https://docs.internationaldataspaces.org/ids-knowledgebase/v/dataspace-protocol/contract-negotiation/contract.negotiation.binding.https#id-3-consumer-callback-path-bindings
--
Matthias Binzer

Hello @matgnt
There was misunderstanding (lost in translation or overthinking) from our side, when callbackAddress are mentioned.
We were thinking that callbackAddress were used to send response (ContractNegotiation in case of ContractRequestMessage request send by consumer) and such requests/responses are async, and there are no endpoints defined to receive such document/object.
But it was "different": requests are synchronous, sending response ContractNegotiation, and once decision is made what to do with ContractRequestMessage, next message in flow will be sent to callback binding (accepting propper message, Agreement, Offer or Termination) in combination with callbackAddress from CRM.
This is just one simple example, but logic applies to other decision making requests, that does not need prompt decision.
I cannot promise but I will try to update existing negotiation diagram with callback endpoints, and share it with community (if it adds value, we can keep it, otherwise we learned something)

yes, correct, the contract request is a http request/response with 200 OK and THEN, the async part is a completely separate http request/response from the provider to the (consumer's) callbackAddress... and so on...
Sounds to me like we could close the issue.
--
Matthias Binzer

Closing issue.
Clarification of help requested in comments

authors: IgorBalog-Eng matgnt


text:
403 Error while trying to access the api

The Problem
My Setup
Insomnia, Git Bash
What I have done up front
I uncommented the relevant lines in scope_mapping.yml and registered a client with the an attribute like:
- key: omejdn
  value: admin

My clients.yml looks like this:
- client_id: 6A:63:8A:99:E6:80:13:AC:65:89:FC:19:C0:32:B7:17:A6:B4:43:74:keyid:6A:63:8A:99:E6:80:13:AC:65:89:FC:19:C0:32:B7:17:A6:B4:43:74
  name: admintest4
  redirect_uri:
  allowed_scopes:
  - idsc:IDS_CONNECTOR_ATTRIBUTES_ALL
  - omejdn:admin
  - omejdn:read
  - omejdn:write
  attributes:
  - key: securityProfile
    value: idsc:BASE_SECURITY_PROFILE
  - key: referringConnector
    value: http://admintest4.demo
  - key: "@type"
    value: ids:DatPayload
  - key: "@context"
    value: https://w3id.org/idsa/contexts/context.jsonld
  - key: transportCertsSha256
    value: 4ae383afc44323720b151b7fdcc34f0014082ae3625db889e736c59d669bfd89
  - key: omejdn
    value: admin
  import_certfile: keys/admintest4.cert

Then i used the create_test_token.rb script with:
scripts/create_test_token.rb 6A:63:8A:99:E6:80:13:AC:65:89:FC:19:C0:32:B7:17:A6:B4:43:74:keyid:6A:63:8A:99:E6:80:13:AC:65:84:43:74 keys/admintest4.key idsc:IDS_CONNECTORS_ALL

and got this client assertion as an answer:
eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2QTo2Mzo4QTo5OTpFNjo4MDoxMzpBQzo2NTo4OTpGQzoxOTpDMDozMjpCNzoxNzpBNjpCNDo0Mzo3NDprZXlpZDo2QTo2Qzo2NTo4OTpGQzoxOTpDMDozMjpCNzoxNzpBNjpCNDo0Mzo3NCIsInN1YiI6IjZBOjYzOjhBOjk5OkU2OjgwOjEzOkFDOjY1Ojg5OkZDOjE5OkMwOjMyOkI3OjE3OjZBOjYzOjhBOjk5OkU2OjgwOjEzOkFDOjY1Ojg5OkZDOjE5OkMwOjMyOkI3OjE3OkE2OkI0OjQzOjc0IiwiZXhwIjoxNjQzMzc4MDA1LCJuYmYiOjE2NDMzNzQ0MDwiYXVkIjoiaWRzYzpJRFNfQ09OTkVDVE9SU19BTEwifQ.fPZVNoGURG4pjOMVpCUxBBfHhQpZ2xq6U1NEd3HH1jH-ZsSJ3-d3RxWkCKerX943Qvu2gJ4VfdXLxtsEoo-j4qo60-QGG1esOlEb3U2iCULHOG7dzWcDRjqtzYxgzxL6cbdDJOVrgtH43BeUM7bQzW8ZEkNnvjGCt0zaNCspgQ1__E9V1zqrgP1Um5a5OB1YqCz3tDqtzRt7r_ygJPtigXBGk289YILQUiEPI2mWe8vGfqBR1El0_d2BT9vndFUH7kNdtVwFluMcW2q6rpHB6cAuaH7G5f8hr2y85A

And used this to create an access token with:
curl localhost:4567/token --data "grant_type=client_credentials&client_assertion_type=urn:ietf:params:oauth:client-assertio_assertion=eyJhbGciOiJSUzI1NiJ9.eyJpc3MiOiI2QTo2Mzo4QTo5OTpFNjo4MDoxMzpBQzo2NTo4OTpGQzoxOTpDMDozMjpCNzoxNzpBNjpCNDo0Mzo3NDprZjo4MDoxMzpBQzo2NTo4OTpGQzoxOTpDMDozMjpCNzoxNzpBNjpCNDo0Mzo3NCIsInN1YiI6IjZBOjYzOjhBOjk5OkU2OjgwOjEzOkFDOjY1Ojg5OkZDOjE5OkMwOjc0OmtleWlkOjZBOjYzOjhBOjk5OkU2OjgwOjEzOkFDOjY1Ojg5OkZDOjE5OkMwOjMyOkI3OjE3OkE2OkI0OjQzOjc0IiwiZXhwIjoxNjQzMzc4MDA1LCJuYmYiOjE0MzM3NDQwNSwiYXVkIjoiaWRzYzpJRFNfQ09OTkVDVE9SU19BTEwifQ.fPZVNoGURG4pjOMVpCUxBBfHhQpZ2xq6U1NEd3HH1jH-ZsSJ3-d3RxWkCKerX943Qvu2gsc7HIzT6WWZoo-j4qo60-QGG1esOlEb3U2iCULHOG7dzWcDRjqtzYxgzxL6cbdDJOVrgtH43BeUM7bQzW8ZEkNnvjGCt0zaNCspgQ1__E9V1zqrgP1Um5a5OB1YqCDiRz7t3oi6b_ygJPtigXBGk289YILQUiEPI2mWe8vGfqBR1El0_d2BT9vndFUH7kNdtVwFluMcW2q6rpHB6cAuaH7G5f8hr2y85A
> &scope=idsc:IDS_CONNECTOR_ATTRIBUTES_ALL omejdn:admin omejdn:read omejdn:write"

And got an access token as response.
What I expected to happen
To get access to the API by using this access token.
What actually happened
I'm using Insomnia to send a GET Request to the API and used the access token as a bearer token but received a 403 Forbidden.

The quest of trying to solve it
What is your best guess as to what might have happened?
That I forgot something in the configuration of the client or in the setup of the API.
Thanks in advance!

Hi! It seems like you were trying to access the User Selfservice API (/api/v1/user/*). This API is for giving user's the chance to change their attributes (Think phone number, address, password, etc.). You have authenticated your client using the client_credentials grant. Hence there is no user which the client is acting on behalf of.
I assume you want to make changes to either Omejdn or your client using an API?
Since your client is registered as an admin, you could use the Admin API (/api/v1/config/*) to change the config files.
For more information on the relation between clients and users in OAuth 2.0, please refer to RFC 6749.

Thanks, that solved my problem! I hadn't thought about the difference between a client and an user.
It seems like the omejdn admin api is working.

authors: bellebaum boxer-code


text:
Allow members to temporarily rename their group

Idea
Allow members of a group to rename it.
Keep the guild group name as a default, and place restrictions on the new names.
Implementation proposal
Add a new timer command groupname <new name> which renames the current group.
The name's aren't cached anywhere, so this should be a matter of getting the current timer and setting the name attribute.

The following snippet was hotpatched into a running instance and tested without issue.
An additional check for name duplicates might be useful, although not essential
from cmdClient import cmd

@cmd("rename",
     group="Timer",
     desc="Rename your group.")
async def cmd_rename(ctx):
    """
    Usage``:
        rename <groupname>
    Description:
        Set the name of your current group to `groupname`.
    Arguments::
        groupname: The new name for your group, less than `20` charachters long.
    Related:
        join, status, groups
    """
    timer = ctx.client.interface.get_timer_for(ctx.author.id)
    if timer is None:
        return await ctx.error_reply(
            "You need to join a group first!"
        )
    if not (0 < len(ctx.arg_str) < 20):
        return await ctx.error_reply(
            "Please supply a new group name under `20` characters long!\n"
            "**Usage:** `rename <groupname>`"
        )
    timer.name = ctx.arg_str
    await ctx.embedreply("Your group has been renamed to **{}**.".format(ctx.arg_str))

repo: Intery/PomoBot

license: MIT


text:
🛑 stenets.no is down

In d4d0ee4, stenets.no (https://stenets.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: stenets.no is back up in 142dc53 after 10 minutes.

repo: Intus-AS/Types-status


text:
🛑 verksted.mardahl.no is down

In 11ef9eb, verksted.mardahl.no (https://verksted.mardahl.no) was down:

HTTP code: 0
Response time: 0 ms

Resolved: verksted.mardahl.no is back up in ff0a801 after 8 hours, 20 minutes.


text:
Easy ruby input

読みの行を直接クリックして編集すると、
コピペ可能なルビ形式（青空文庫形式）に自動で編集してくれるツール
公式エディタの 範囲選択→右クリック→ルビ入力 より直感的にする。

[ ] 打ち込んだテキストからその場でルビ出力する
[ ] CeVIO API連動、視聴も可
[ ] ccs/ccst読み込んで編集する

使用ライブラリに日本語入力問題があるため、v11.xにアップデートする必要がある。


text:
Split the involtReceivedPin for pins and strings?

It was considered at some point, currently it's easier to operate between values within read only UI elements so - for example: show element can both show numeric value and string easily (in terms of code). Maybe if additional calculations will not have any impact on performance this should be done.
involtReceivedPin -> involtReceivedPin + involtReceivedString ??

This issue is not about  only the received pins but the whole semantics, currently it can be confusing in terms of Hardware-software relation, names could be shorter.
For example:  pin.A[0] instead of involtReceivedPin[0]
similarly... pin.P[10] , pin.S[0] etc.

The new release will introduce new variables but previous naming will also work.

repo: Involt/Involt

license: mit


text:
fix: build crashing on Node 20.9.0 or higher

tsx was crashing during builds throwing the error TypeError [ERR_INVALID_RETURN_PROPERTY_VALUE]. Fix builds by updating tsx to latest.

Note: builds tested again in Node 20.4.0 to ensure this fix doesn't break on people running an older Node.

closes #260

link #260

I don't see the changes to tarballs in the cache folder being committed, can you commit those changes?

@abrenneke updated, the caching on windows is diff. So I update the caches on my Mac. Was going to ask how we could fix this for both OS.

Yeah I wish there was a solution to the caches changes on different OSes for things like esbuild

authors: abrenneke codemile

repo: Ironclad/rivet


text:
max length of tacos ,charades-sta and ActivityNet Cap

hello，
in a bach ,How do you load video features of different lengths into a tensor? padding them to a max length? if so, what is the max length for tacos ,charades-sta and ActivityNet Cap , respectively?

@TAY-985 Yes, padding them to a pre-set max length, you may refer the function pad_video_seq'' in util/data_util.py''. The max_length is set as 128 for these datasets. And the hyper-param is controlled by --max_pos_len'' in main.py''.

repo: IsaacChanghau/VSLNet


text:
Please add --disable-seccomp-filter-sandbox

Please change your debs to add the --disable-seccomp-filter-sandbox flag to the .desktop file.

I'll rebuild the debs in a few minutes. I will be opening a PR on the pi-apps-coders/files repo to add the files.

@ryanfortner thanks!

repacked and uploaded. please merge https://github.com/Pi-Apps-Coders/files/pull/31, then I can make the changes to pi-apps scripts

authors: Botspot Itai-Nelken ryanfortner


text:
why am i doing this

if you want to attatch a link to this repo just look it up online and do it
some basic changes (noindex tag to dev, readme.md, credits at the bottom)

no thanks!

authors: DsYkX ItsEnvyQ

repo: ItsEnvyQ/portfolio


text:
Consider markup file compatibility

In disword, I use YAML for reading contents of a /help command. Maybe something similar could be done here with quine-generated dataclasses to represent the YAML structure. Thoughts on this are welcomed.

hmmm interesting. i will take a look on it later

repo: ItsRqtl/interactions-help


text:
install does not copy ts headers

Please state the information for your system

OpenCV version: 3.1.0
Host OS: Linux (Ubuntu 14.04) / Windows 10
CMake 3.5.2

In which part of the OpenCV library you got the issue?
installing
Expected behaviour
all headers from modules/ts/include/opencv2 should get copied during install
Actual behaviour

ts.hpp missing from install/include/opencv2
libopencv_ts310.a is build and installed properly

Additional description
being able to build unit tests locally (w/o having to recompile all of opencv) is a necessity.
i tried to enable BUILD_TESTS as well (though i'd prefer not to), no difference.
Code example to reproduce the issue / Steps to reproduce the issue
Please try to give a full example which will compile as is.
#include "opencv2/ts.hpp"
TEST(MyModule, regression_1)
{
    int z=42;
    ASSERT_EQ(0, z);
}
TEST(MyModule, regression_2)
{
    // not throwing anything counts as "passed"
}
CV_TEST_MAIN("cvmeaow")

ts module is not a part of official OpenCV API. It is for internal usage only.
You should probably use Google Tests directly.

hmm, ok.
all i'm saying is - this would simplify writing unit tests enormously.

authors: alalek berak

repo: Itseez/opencv


text:
Add Google verification tag and bug fix.

I added Google Verification tag to verify our website. I also fixed the bug in ServiceDetail we found yesterday.

Look good, it should be work.

authors: J-Jullaphong Pichayanon

repo: J-Jullaphong/JongMaiHUB


text:
Plugin to auto post to twitter for (Question2Answer)

Please trying to work using TwitterAPIExchange. help me out
This code doesn’t work. It’s supposed to get the post and it’s url and send to twitter. it doesn’t show any error. the problem is from the “build_twitter_status” cause that’s what’s going to be pages to $postfields.
//This registers the events and gets the post and sends it to twitter
public function process_event($event, $userid, $handle, $cookieid, $params) {
require_once QA_INCLUDE_DIR . 'qa-app-emails.php';
require_once QA_INCLUDE_DIR . 'qa-app-format.php';
require_once QA_INCLUDE_DIR . 'qa-util-string.php';
		switch ($event) {
			//this gets question posts
			case 'q_post':
				$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
					$this->post_tweets(
					$this->build_twitter_status(
							$sendhandle,
							$params['title'],
							$params['text'],
								qa_q_path($params['postid'], $params['title'], true) //url of the questions post
						)
					);
			break;

			//this get answer posts
			case 'a_post':
				$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
					$this->post_tweets(
					$this->build_twitter_status(
							$sendhandle,
							$params['title'],
							$params['text'],
								qa_q_path($params['postid'], $params['title'], true, 'A') //url of the questions post
						)
					);
			break;

			//this gets comment posts
			case 'c_post':

				$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
					$this->post_tweets(
						$this->build_twitter_status(
							$sendhandle,
							$params['title'],
							$params['text'],
								qa_q_path($params['postid'], $params['title'], true, 'C')//url of the questions post
						)
					);
		}
	}

	//This is the status message that will go to twitter
	private function build_twitter_status($who, $title, $content, $url) {
		return array(
			'status' => array(
				'message[body]' => sprintf("%s asked a new question \"%s\" on #QNA, check it out!", $who, $title),
				'message[url]' => $url,
			)
		);
	}

	//This is the twitter request
	function post_tweets()
	{

		require_once $this->directory . 'TwitterAPIExchange.php';
		// Setting our Authentication Variables that we got after creating an application
		$settings = array(
			'oauth_access_token' => qa_opt('qa_twitter_at'),
			'oauth_access_token_secret' => qa_opt('qa_twitter_ts'),
			'consumer_key' => qa_opt('qa_twitter_ck'),
			'consumer_secret' => qa_opt('qa_twitter_cs')
		);

		$url = "https://api.twitter.com/1.1/statuses/update.json";
		$requestMethod = "POST";

		//This is where ths post status goes
		$postfields = $this->build_twitter_status();

		$twitter = new TwitterAPIExchange($settings);
		$tweets = $twitter->setPostfields($postfields)
			->buildOauth($url, $requestMethod)
				->performRequest();
		return $tweets;
	}

While this code works, but it only makes the posts send to twitter but not the url of the post too. i want to be able to send the post and it’s url. the problem is from the “build_twitter_status” cause that’s what’s going to be pages to $postfields
       public function process_event($event, $userid, $handle, $cookieid, $params) {
	    require_once QA_INCLUDE_DIR . 'qa-app-emails.php';
	    require_once QA_INCLUDE_DIR . 'qa-app-format.php';
	    require_once QA_INCLUDE_DIR . 'qa-util-string.php';

		switch ($event) {
			case 'q_post':
				$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
					$this->post_tweets(
					$sendhandle,
					$params['title'],
					$params['text'],
						qa_q_path($params['postid'], $params['title'], true)
					);
			break;

			case 'a_post':
				$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
					$this->post_tweets(
					$sendhandle,
					$params['title'],
					$params['text'],
						qa_q_path($params['postid'], $params['title'], true, 'A')
					);
			break;

			case 'c_post':

				$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
					$this->post_tweets(
					$sendhandle,
					$params['title'],
					$params['text'],
						qa_q_path($params['postid'], $params['title'], true, 'C')
					);
		}
	}

	private function build_twitter_status() {
		$tweetquestion = $_POST[’title’]; // get’s the question posts
		$tweetanswer = $_POST['a_content’]; // get’s the answer posts
		$tweetcomment = $_POST[‘c_content’]; // get’s the comment posts

		if($tweetquestion) {
			return $tweetquestion;
		}
		else if($tweetanswer) {
			return $tweetanswer;
		}
		else if($tweetcomment) {
			return $tweetcomment;
		}
	}

	function post_tweets()
	{

		require_once $this->directory . 'TwitterAPIExchange.php';
		// Setting our Authentication Variables that we got after creating an application
		$settings = array(
			'oauth_access_token' => qa_opt('qa_twitter_at'),
			'oauth_access_token_secret' => qa_opt('qa_twitter_ts'),
			'consumer_key' => qa_opt('qa_twitter_ck'),
			'consumer_secret' => qa_opt('qa_twitter_cs')
		);

		$url = "https://api.twitter.com/1.1/statuses/update.json";
		$requestMethod = "POST";

		$postfields = array(
			'status' => $this->build_twitter_status()
		);
		$twitter = new TwitterAPIExchange($settings);
		$tweets = $twitter->setPostfields($postfields)
			->buildOauth($url, $requestMethod)
				->performRequest();
		return $tweets;
	}

Hi,
Can you post this as a new Github issue https://github.com/j7mbo/twitter-api-php/issues. That way other people can contribute to a solution also.
Thanks,
James

On 23 Aug 2015, at 13:46, Karlista Okoh notifications@github.com wrote:
Please trying to work using TwitterAPIExchange. help me out
This code doesn’t work. It’s supposed to get the post and it’s url and send to twitter. it doesn’t show any error. the problem is from the “build_twitter_status” cause that’s what’s going to be pages to $postfields.
//This registers the events and gets the post and sends it to twitter
public function process_event($event, $userid, $handle, $cookieid, $params) {
require_once QA_INCLUDE_DIR . 'qa-app-emails.php';
require_once QA_INCLUDE_DIR . 'qa-app-format.php';
require_once QA_INCLUDE_DIR . 'qa-util-string.php';
    switch ($event) {
        //this gets question posts
        case 'q_post':
            $sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
                $this->post_tweets(
                $this->build_twitter_status(
                        $sendhandle,
                        $params['title'],
                        $params['text'],
                            qa_q_path($params['postid'], $params['title'], true) //url of the questions post
                    )
                );
        break;

        //this get answer posts
        case 'a_post':
            $sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
                $this->post_tweets(
                $this->build_twitter_status(
                        $sendhandle,
                        $params['title'],
                        $params['text'],
                            qa_q_path($params['postid'], $params['title'], true, 'A') //url of the questions post
                    )
                );
        break;

        //this gets comment posts
        case 'c_post':

            $sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
                $this->post_tweets(
                    $this->build_twitter_status(
                        $sendhandle,
                        $params['title'],
                        $params['text'],
                            qa_q_path($params['postid'], $params['title'], true, 'C')//url of the questions post
                    )
                );
    }
}

//This is the status message that will go to twitter
private function build_twitter_status($who, $title, $content, $url) {
    return array(
        'status' => array(
            'message[body]' => sprintf("%s asked a new question \"%s\" on #QNA, check it out!", $who, $title),
            'message[url]' => $url,
        )
    );
}

//This is the twitter request
function post_tweets()
{

    require_once $this->directory . 'TwitterAPIExchange.php';
    // Setting our Authentication Variables that we got after creating an application
    $settings = array(
        'oauth_access_token' => qa_opt('qa_twitter_at'),
        'oauth_access_token_secret' => qa_opt('qa_twitter_ts'),
        'consumer_key' => qa_opt('qa_twitter_ck'),
        'consumer_secret' => qa_opt('qa_twitter_cs')
    );

    $url = "https://api.twitter.com/1.1/statuses/update.json";
    $requestMethod = "POST";

    //This is where ths post status goes
    $postfields = $this->build_twitter_status();

    $twitter = new TwitterAPIExchange($settings);
    $tweets = $twitter->setPostfields($postfields)
        ->buildOauth($url, $requestMethod)
            ->performRequest();
    return $tweets;
}

While this code works, but it only makes the posts send to twitter but not the url of the post too. i want to be able to send the post and it’s url. the problem is from the “build_twitter_status” cause that’s what’s going to be pages to $postfields
public function process_event($event, $userid, $handle, $cookieid, $params) {
require_once QA_INCLUDE_DIR . 'qa-app-emails.php';
require_once QA_INCLUDE_DIR . 'qa-app-format.php';
require_once QA_INCLUDE_DIR . 'qa-util-string.php';
    switch ($event) {
        case 'q_post':
            $sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
                $this->post_tweets(
                $sendhandle,
                $params['title'],
                $params['text'],
                    qa_q_path($params['postid'], $params['title'], true)
                );
        break;

        case 'a_post':
            $sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
                $this->post_tweets(
                $sendhandle,
                $params['title'],
                $params['text'],
                    qa_q_path($params['postid'], $params['title'], true, 'A')
                );
        break;

        case 'c_post':

            $sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
                $this->post_tweets(
                $sendhandle,
                $params['title'],
                $params['text'],
                    qa_q_path($params['postid'], $params['title'], true, 'C')
                );
    }
}

private function build_twitter_status() {
    $tweetquestion = $_POST[’title’]; // get’s the question posts
    $tweetanswer = $_POST['a_content’]; // get’s the answer posts
    $tweetcomment = $_POST[‘c_content’]; // get’s the comment posts

    if($tweetquestion) {
        return $tweetquestion;
    }
    else if($tweetanswer) {
        return $tweetanswer;
    }
    else if($tweetcomment) {
        return $tweetcomment;
    }
}

function post_tweets()
{

    require_once $this->directory . 'TwitterAPIExchange.php';
    // Setting our Authentication Variables that we got after creating an application
    $settings = array(
        'oauth_access_token' => qa_opt('qa_twitter_at'),
        'oauth_access_token_secret' => qa_opt('qa_twitter_ts'),
        'consumer_key' => qa_opt('qa_twitter_ck'),
        'consumer_secret' => qa_opt('qa_twitter_cs')
    );

    $url = "https://api.twitter.com/1.1/statuses/update.json";
    $requestMethod = "POST";

    $postfields = array(
        'status' => $this->build_twitter_status()
    );
    $twitter = new TwitterAPIExchange($settings);
    $tweets = $twitter->setPostfields($postfields)
        ->buildOauth($url, $requestMethod)
            ->performRequest();
    return $tweets;
}

—
Reply to this email directly or view it on GitHub https://github.com/J7mbo/twitter-api-php/issues/151.

https://github.com/J7mbo/twitter-api-php/issues/151 https://github.com/J7mbo/twitter-api-php/issues/151
i just did.. that’s the link

On Aug 23, 2015, at 1:48 PM, James Mallison notifications@github.com wrote:
Hi,
Can you post this as a new Github issue https://github.com/j7mbo/twitter-api-php/issues. That way other people can contribute to a solution also.
Thanks,
James

On 23 Aug 2015, at 13:46, Karlista Okoh notifications@github.com wrote:
Please trying to work using TwitterAPIExchange. help me out
This code doesn’t work. It’s supposed to get the post and it’s url and send to twitter. it doesn’t show any error. the problem is from the “build_twitter_status” cause that’s what’s going to be pages to $postfields.
//This registers the events and gets the post and sends it to twitter
public function process_event($event, $userid, $handle, $cookieid, $params) {
require_once QA_INCLUDE_DIR . 'qa-app-emails.php';
require_once QA_INCLUDE_DIR . 'qa-app-format.php';
require_once QA_INCLUDE_DIR . 'qa-util-string.php';
switch ($event) {
//this gets question posts
case 'q_post':
$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
$this->post_tweets(
$this->build_twitter_status(
$sendhandle,
$params['title'],
$params['text'],
qa_q_path($params['postid'], $params['title'], true) //url of the questions post
)
);
break;
//this get answer posts
case 'a_post':
$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
$this->post_tweets(
$this->build_twitter_status(
$sendhandle,
$params['title'],
$params['text'],
qa_q_path($params['postid'], $params['title'], true, 'A') //url of the questions post
)
);
break;
//this gets comment posts
case 'c_post':
$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
$this->post_tweets(
$this->build_twitter_status(
$sendhandle,
$params['title'],
$params['text'],
qa_q_path($params['postid'], $params['title'], true, 'C')//url of the questions post
)
);
}
}
//This is the status message that will go to twitter
private function build_twitter_status($who, $title, $content, $url) {
return array(
'status' => array(
'message[body]' => sprintf("%s asked a new question "%s" on #QNA, check it out!", $who, $title),
'message[url]' => $url,
)
);
}
//This is the twitter request
function post_tweets()
{
require_once $this->directory . 'TwitterAPIExchange.php';
// Setting our Authentication Variables that we got after creating an application
$settings = array(
'oauth_access_token' => qa_opt('qa_twitter_at'),
'oauth_access_token_secret' => qa_opt('qa_twitter_ts'),
'consumer_key' => qa_opt('qa_twitter_ck'),
'consumer_secret' => qa_opt('qa_twitter_cs')
);
$url = "https://api.twitter.com/1.1/statuses/update.json";
$requestMethod = "POST";
//This is where ths post status goes
$postfields = $this->build_twitter_status();
$twitter = new TwitterAPIExchange($settings);
$tweets = $twitter->setPostfields($postfields)
->buildOauth($url, $requestMethod)
->performRequest();
return $tweets;
}
While this code works, but it only makes the posts send to twitter but not the url of the post too. i want to be able to send the post and it’s url. the problem is from the “build_twitter_status” cause that’s what’s going to be pages to $postfields
public function process_event($event, $userid, $handle, $cookieid, $params) {
require_once QA_INCLUDE_DIR . 'qa-app-emails.php';
require_once QA_INCLUDE_DIR . 'qa-app-format.php';
require_once QA_INCLUDE_DIR . 'qa-util-string.php';
switch ($event) {
case 'q_post':
$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
$this->post_tweets(
$sendhandle,
$params['title'],
$params['text'],
qa_q_path($params['postid'], $params['title'], true)
);
break;
case 'a_post':
$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
$this->post_tweets(
$sendhandle,
$params['title'],
$params['text'],
qa_q_path($params['postid'], $params['title'], true, 'A')
);
break;
case 'c_post':
$sendhandle=isset($handle) ? $handle : qa_lang('main/anonymous');
$this->post_tweets(
$sendhandle,
$params['title'],
$params['text'],
qa_q_path($params['postid'], $params['title'], true, 'C')
);
}
}
private function build_twitter_status() {
$tweetquestion = $_POST[’title’]; // get’s the question posts
$tweetanswer = $_POST['a_content’]; // get’s the answer posts
$tweetcomment = $_POST[‘c_content’]; // get’s the comment posts
if($tweetquestion) {
return $tweetquestion;
}
else if($tweetanswer) {
return $tweetanswer;
}
else if($tweetcomment) {
return $tweetcomment;
}
}
function post_tweets()
{
require_once $this->directory . 'TwitterAPIExchange.php';
// Setting our Authentication Variables that we got after creating an application
$settings = array(
'oauth_access_token' => qa_opt('qa_twitter_at'),
'oauth_access_token_secret' => qa_opt('qa_twitter_ts'),
'consumer_key' => qa_opt('qa_twitter_ck'),
'consumer_secret' => qa_opt('qa_twitter_cs')
);
$url = "https://api.twitter.com/1.1/statuses/update.json";
$requestMethod = "POST";
$postfields = array(
'status' => $this->build_twitter_status()
);
$twitter = new TwitterAPIExchange($settings);
$tweets = $twitter->setPostfields($postfields)
->buildOauth($url, $requestMethod)
->performRequest();
return $tweets;
}
—
Reply to this email directly or view it on GitHub https://github.com/J7mbo/twitter-api-php/issues/151.

—
Reply to this email directly or view it on GitHub https://github.com/J7mbo/twitter-api-php/issues/151#issuecomment-133829745.

Hi, this is an old one, closing for now but if you do need help please feel free to reopen a new issue!


text:
We cant do 2 or more "performRequest"

We cant do 2 or more "performRequest" with differents methods:
$url = 'https://api.twitter.com/1.1/statuses/retweet/'.$id_tweet.'.json';
			$requestMethod = 'POST';
			$postfields = array();
			$jsonraw1=$this -> twitter -> buildOauth($url, $requestMethod) -> setPostfields($postfields) -> performRequest();
$url = "https://api.twitter.com/1.1/statuses/home_timeline.json";
			$getfield = "";

			$jsonraw2 =  $this -> twitter -> setGetfield($getfield)
                -> buildOauth($url, 'GET')
                -> performRequest();

throw an exception:
"You can only choose get OR post fields"
We show it at line 94 and 131 in your library. We fixed it adding the following lines to performRequest() method:
$this->postfields = NULL;         $this->getfield = NULL;
just before the return $json;

Solved in: https://github.com/J7mbo/twitter-api-php/pull/169

nice!

Unfortunately the PR in question doesn't do it in the nicest way (class constants). That's just one option, though :-) I'll close for now, but if you guys want something in please feel free to make another PR into develop that uses private vars and a setter and maybe we can get something in.


text:
Pass Configuration to model repo interfaces

Description

see https://github.com/JCSDA-internal/oops/pull/2284 for what is needed

@travissluka , "happy" to work on this if you are still under the weather. Just ping me.

@travissluka , "happy" to work on this if you are still under the weather. Just ping me.

@guillaumevernieres Have at it, otherwise I was going to look at it tomorrow

authors: guillaumevernieres travissluka

repo: JCSDA-internal/soca


text:
TypeError: _write_metrics() missing 1 required positional argument: 'data_time'

File "/home/a/.local/lib/python3.8/site-packages/detectron2/engine/train_loop.py", line 133, in train
self.run_step()
File "/home/a/code/centerX-master/engine/defaults.py", line 353, in run_step
self._write_metrics(metrics_dict)
TypeError: _write_metrics() missing 1 required positional argument: 'data_time'

Maybe the your detectron2 version is not match.
refer to https://github.com/JDAI-CV/centerX/issues/17#issue-772594795

Maybe the your detectron2 version is not match.
refer to #17 (comment)

学习率每设置好，导致FloatingPointError: Loss became infinite or NaN at iteration=227!，进而导致了这个错误。

repo: JDAI-CV/centerX


text:
TableStorageTarget and  EventHubTarget with dependency update

Table Storage: https://github.com/Azure/azure-cosmos-table-dotnet/issues/43
EventHubs: https://www.nuget.org/packages/Microsoft.Azure.EventHubs/

thanks @snakefoot

authors: JDetmar snakefoot


text:
Machine Design Models

[x] Create appropriate machine design models that represent real structures and components.
[x] Draw a free body diagram of a structure of machine component.

Machine Design Models complete.

Great 👍👍🏾


text:
can you lazy load npm modules

this is fantastic when using your own components,  but if I wanted to lazy load a npm package component it doesn't seem to be able to lazy load that in.
for example, I have the react-tooltip npm package component that's added based on a condition
{activity.host?.following && (
    <Tooltip id="following" place='left' />
)}

so I'd like to lazy load it in, normally it would be
import { Tooltip } from 'react-tooltip';

however, if I use lazily load instead
const { Tooltip } = lazily(() => import("react-tooltip"))

The component doesn't show, but VSCode shows that it knows the component location in the npm packages, so not sure why this wouldn't work ?
dose or can this package support lazily loading other npm packages?

Hi! So to be honest I never used it with npm packages before but there's nothing that should prevent you form using it :)
I tried this code and it worked
"use client";

import { Suspense } from "react";
import { lazily } from "react-lazily";

const { Tooltip } = lazily(() => import("react-tooltip"));

export default function Home() {
  return (
    <Suspense fallback={null}>
      <div data-tooltip-id="following" data-tooltip-content="Hello world!">
        hover me
      </div>
      <Tooltip id="following" place="bottom" />
    </Suspense>
  );
}

I did it on a clean nextjs install:
bunx create-next-app
cd my-app/
bun add react-tooltip react-lazily
code src/app/page.tsx
bun dev

Yes, sorry I was mistaken, it actually worked from the beginning but the browser cache was able to fool me into thinking it didn't despite the fact I was sure I had cleared it out beforehand 🤪

authors: JLarky PTAHume

repo: JLarky/react-lazily


text:
🛑 Experimental Server is down

In 2b05c4e, Experimental Server (https://server.jm26.net/status.txt) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Experimental Server is back up in 8d000ad.


text:
[BE/REFACTOR] actuator를 활용한 health check

📌 관련 이슈
closed #235
✨ PR 내용

health-check actuactor 를 사용하도록 변경

주의 사항
브랜치 방향 꼭 확인하세요!!!!

Forked Repository로부터 온 Pull Request의 secrets 접근
기본적으로 Fork Repo에서 trigger된 workflow는 secrets에 접근할 수 없다.

upstream repo에서는 test 결과가 보이지 않도록 변경하였습니다.

repo: JNU-econovation/black-company


text:
Customize??

Hi, great job! Is there anyway to customize it? Like change colors and speed?

Hey. Thanks. At the moment there is no way to customize it. We work on it.

Awesome. Thanks.
On Dec 17, 2015 16:46, "Maxim" notifications@github.com wrote:

Hey. Thanks. At the moment there is no way to customize it. We work on it.
—
Reply to this email directly or view it on GitHub
https://github.com/JSSolutions/meteor-spinner/issues/1#issuecomment-165488763
.

authors: olumytee uzumaxy

repo: JSSolutions/meteor-spinner


text:
🛑 Glitch is down

In 0bbb816, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 391 ms

Resolved: Glitch is back up in f5b4cd1 after 46 minutes.

repo: JYFUX/upptime


text:
🛑 Glitch is down

In 91535a0, Glitch ($GLITCH) was down:

HTTP code: 503
Response time: 176 ms

Resolved: Glitch is back up in 4701cb9.


text:
Correct server/client time offset

Server notifies client of time at hub connection and an offset is calculated. Any client created dates are corrected by the calculated offset. Possible solution to #950

Can you rebase this? It's been like a year I know 😢

Replaced with #1240

authors: davidfowl garysharp

repo: JabbR/JabbR


text:
Set value for custom marker

Set the value for the custom marker. This allows you to display the current value on each marker.

This would be awesome if merged! :)

Looks like this pull request is no longer needed. Someone else added the value passing.


text:
CVE-2007-4559 Patch

Patching CVE-2007-4559
Hi, we are security researchers from the Advanced Research Center at Trellix. We have began a campaign to patch a widespread bug named CVE-2007-4559. CVE-2007-4559 is a 15 year old bug in the Python tarfile package. By using extract() or extractall() on a tarfile object without sanitizing input, a maliciously crafted .tar file could perform a directory path traversal attack. We found at least one unsantized extractall() in your codebase and are providing a patch for you via pull request. The patch essentially checks to see if all tarfile members will be extracted safely and throws an exception otherwise. We encourage you to use this patch or your own solution to secure against CVE-2007-4559. Further technical information about the vulnerability can be found in this blog.
If you have further questions you may contact us through this projects lead researcher Kasimir Schulz.

Hi~ @TrellixVulnTeam
Thanks for the effort. This repo is a benchmark released from my ESEC/FSE 2022 paper, providing projects with many real-world numerical bugs, aiming to evaluate the numerical bug detection techniques from the software testing community. The patch of this PR seems to target the subject ID_12, which is collected from https://github.com/skorch-dev/skorch. I thought skorch would appreciate the PR since it helps to fix a CVE bug.

authors: Jacob-yen TrellixVulnTeam

repo: Jacob-yen/GRIST


text:
Remove $ sign from our rocket

Remove $ sign from our rocket

@AftabMankapure , not required.


text:
TECH-1260: OWASP dependency check suppressionFiles

JIRA
https://jira.jahia.org/browse/TECH-1260
Description
Provide OWASP dependency check suppressionFiles - our own and the global one from OWASP
Tests
The following are included in this PR

[ ] Unit Tests (Most changes should have unit tests)
[ ] Integration Tests

Checklist
I have considered the following implications of my change:

[ ] Security (in particular for changes to authentication, authorization, data fetching, ...)
[ ] Performance
[ ] Migration
[ ] Code maintainability

Documentation

[ ] Inline documentation
[ ] Internal Documentation (wiki)
[ ] User-facing Documentation

@Fgerthoffert : I got that url from: https://github.com/jeremylong/DependencyCheck/issues/1928#issue-444937360 and I thought it is the default, if nothing is configured. I checked the sources now, and they do not take that file via the github url, but as the file is part of the dependency checker package they use the relative file packed in the version we use. Using the URL would however always use the latest "false positives". I don't know if one has to ask permission to use that?
As I am currently also updating our own suppression file, I am seeing another problem. If it is part of jahia-private (synchronized to jahia), a simple commit/merge in this file will trigger the whole rebuilding of jahia (jahia-private, jahia-pack-private, jahia-ee), which is overkill. So maybe it is not a good idea to have that file in our main repo.

@Fgerthoffert : I got that url from: jeremylong/DependencyCheck#1928 (comment) and I thought it is the default, if nothing is configured. I checked the sources now, and they do not take that file via the github url, but as the file is part of the dependency checker package they use the relative file packed in the version we use. Using the URL would however always use the latest "false positives". I don't know if one has to ask permission to use that?
As I am currently also updating our own suppression file, I am seeing another problem. If it is part of jahia-private (synchronized to jahia), a simple commit/merge in this file will trigger the whole rebuilding of jahia (jahia-private, jahia-pack-private, jahia-ee), which is overkill. So maybe it is not a good idea to have that file in our main repo.

Ok, let's directly link to the author's file for now. I don't believe we need to ask permission (especially since we stay within GitHub)

authors: Fgerthoffert bpapez

repo: Jahia/jahia-modules-action


text:
Handling multiple optional arguments

Nicely handle optional arguments, so that undefined does not need to be passed e.g.
canvas.fillText('text', 0, 0, undefined, 'black');

// Should be able to be done in the following way
// without the need for a maxWidth

canvas.fillText('text', 0, 0, 'black');

Unsure if this will be possible with all methods

Not considering this since moving to typescript

repo: JakeSidSmith/canvasimo


text:
@OnItemSelected auto fired in Spinner

In my spinner implementation, I am updating cursor adapter of spinner via cursor loader.
As soon as it gets loaded, OnItemSelected get fired with position equals to "0". Need to find way to stop it.

This is not a behavior of Butter Knife, but of the normal item selection listener in Android.

It might be related to these topics:
http://stackoverflow.com/q/13397933
http://stackoverflow.com/q/2297601
http://stackoverflow.com/q/21747917

authors: JakeWharton abhi007tyagi mustafababil

repo: JakeWharton/butterknife


text:
Added Any-extensions for view-binding

These functions take the target view as a parameter instead of relying on
the receiver type to be a View, or something from which we can derive
a View.

Likely no longer relevant, but for those passing by,
bindView(view, id) can already be achieved via view.bindView(id)

authors: AllanWang kevinmost

repo: JakeWharton/kotterknife


text:
Update Usage

replace org.jakewharton.mosaic with com.jakewharton.mosaic

Thanks. Shouldn't write documentation late at night.

authors: JakeWharton dcampogiani

repo: JakeWharton/mosaic


text:
Inline tags show horizontal in input

You recently implemented the inline tags (which look awesome), but it would be best, if there was an option to have the tags show horizontally in the input, like the image attached. Thanks :)

@Codemaine  Let me know if I am missing something, but it works like this now.

This is how it shows on my implementation

Shows the same on the documentation

This is how it shows on my implementation

@Codemaine That is how it should be. You've set a width some where on the input (maybe on the parent container). If the space left in the container is less than the width of the input, the input wraps to a new line. The same logic applies to the tags as well. They wrap inside the tag list.
Other implementations of tag inputs with inline tags work the same way. Here is an example: https://mantine.dev/core/tags-input/

Yea, I'm aware that it's supposed to wrap when there's no available horizontal space, that's why I'm requesting for this. You should allow the user to scroll horizontally to view the tags, to keep the input's height constant.

Ah, I see. You didn't make that clear in your initial comment. This isn't exactly a default behavior for tag inputs so I'll have to test this out to see if it's a good fit.

authors: Codemaine JaleelB

repo: JaleelB/emblor


text:
[1.20.4] Item duping

Discovered on Fabric
When you left click on the belt while it eqiped, it duplicates an item you have in first slot

Duplicate of #45, thanks

repo: JamCoreModding/utility-belt


text:
Many icons are not themed properly

e.g. play/pause button, shuffle, repeat, etc

This issue is probably now more important with the latte palette

Fixed with v2.3.0!

repo: James-McK/Catppuccin-MusicBee


text:
Some JTokenTypes are not Differentiable

JTokenTypes like Guid and Uri is not distinguishable from String when serialized, as such they should be removed.
The problem is you will get differing results from deployment and testing if you don't realize that when deserialized it changes to the more general type even though it was more specific.
Steps to reproduce
var payload = new JObject();
payload["sub"] = Guid.Empty;
var serializedPayload = payload.ToString();
var deserializedPayload = JsonConvert.DeserializeObject<JObject>(serializedPayload);

var result1 = payload["sub"].Type == JTokenType.Guid;
var result2 = deserializedPayload["sub"].Type == JTokenType.Guid;

Assert.IsTrue(result1 == result2);

That's because there is no way for Json.NET to know that it should be a GUID. It's just a string when parsing.
Cast instead of using Value(), e.g. (Guid)obj["id"]

Reference: Guid becomes string in JObject.ToString + JObject.Parse #1060

JTokenTypes like Guid and Uri is not distinguishable from String when serialized, as such they should be removed.

So is date. So it decimal and double. But if that information isn't kept then errors, especially to do with floating point numbers, creep in when values are cast back to their original type.

authors: JamesNK moh-hassan timeracers


text:
StringEnumConverter - custom string values for enum

This code works perfect on library for .NET 3.5, but 2.0 - have issues. Output on 2.0 is {"Field":"Second"}, instead of {"Field":"edited2"}.
    internal class Program
    {
        public static void Main(string[] args)
        {
            var obj = new ClassWithEnum
            {
                Field = SimpleEnum.Second
            };
            var str = JsonConvert.SerializeObject(obj);
            Console.Write(str);
            Console.Read();
        }
    }

    public class ClassWithEnum
    {
        public SimpleEnum Field;
    }

    [JsonConverter(typeof(StringEnumConverter))]
    public enum SimpleEnum
    {
        [EnumMember(Value = "firstEdited")]
        First,
        [EnumMember(Value = "secondEdited")]
        Second
    }

Because 2.0 doesn't support EnumMember

authors: JamesNK vkrasovskiy-playq


text:
Update REV Hardware Client to 1.6.5

This release has lots of high-impact bugfixes: https://github.com/REVrobotics/REV-Software-Binaries/releases/tag/rhc-1.6.5

Please hold off on merging this for the moment

This PR is ready to be merged now. I've updated the version to 1.6.6: https://github.com/REVrobotics/REV-Software-Binaries/releases/tag/rhc-1.6.6

Thanks Noah!

authors: JamieSinn NoahAndrews

repo: JamieSinn/CSA-USB-Tool


text:
missing files

there is no js library for modals, accordion, tabs, navbar dropdown in the zip file

From their home page: "W3.CSS is standard CSS only (No jQuery or JavaScript library)."
Just copy paste the scripts you need from their examples.
I would also suggest youmightnotneedjquery or a small lib like Alpine or even htmx if you're into keeping the web rad, green, efficient and safe.

From their home page: "W3.CSS is standard CSS only (No jQuery or JavaScript library)." Just copy paste the scripts you need from their examples. I would also suggest youmightnotneedjquery or a small lib like Alpine or even htmx if you're into keeping the web rad, green, efficient and safe.

It would be nice to be used css animation for modal, navbar dropdown, sidebar, tabs and accordion  if javascript is unwanted, for example input checked with a label to display a div...

authors: manuchap razvacos


text:
refactor: use visible instead of ref

simplified code and removes an unneeded ref.

Taking a look now.

It's less broken, there's still an issue with the slot.

Can you talk in 30 min or so?  (I'd like to explore whether we can avoid the use of slots, for now.)

@drewwills sure

@drewwills this PR now includes the follow up fixes for Edge and IE

Excellent, I'll pull it down tomorrow.

This IE fix looks "good" to me.
I like how they are organized into other file(s), how they are very slim, and how they are thoroughly-commented.

This solution appears to be working now -- ready for merge, AFAIK.

authors: ChristianMurphy drewwills

repo: Jasig/NotificationPortlet


text:
TypeError: can't convert String into Array when GEM_PATH is set

[INFO] --- sass-maven-plugin:1.1.1:update-stylesheets (default) @ lor ---
[INFO] Compiling SASS Templates
[INFO] Queing SASS Template for compile: /Users/maxcom/git-checkout/lorsource/src/main/webapp/sass => /Users/maxcom/git-checkout/lorsource/target/lor-1.0-SNAPSHOT
TypeError: can't convert String into Array
       + at org/jruby/RubyArray.java:2963
  (root) at <script>:5
org.jruby.embed.EvalFailedException: (TypeError) can't convert String into Array
    at org.jruby.embed.internal.EmbedEvalUnitImpl.run(EmbedEvalUnitImpl.java:136)
    at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:90)
    at org.jruby.embed.jsr223.JRubyEngine.eval(JRubyEngine.java:153)
    at org.jasig.maven.plugin.sass.AbstractSassMojo.executeSassScript(AbstractSassMojo.java:191)
    at org.jasig.maven.plugin.sass.UpdateStylesheetsMojo.execute(UpdateStylesheetsMojo.java:43)

Here is the beginning of that script:
[ERROR] require 'rubygems'
[ERROR] env = { 'GEM_PATH' => [
[ERROR] '/Users/maxcom/git-checkout/lorsource/target/rubygems'
[ERROR] ] }
[ERROR] env['GEM_PATH'] += ENV['GEM_PATH'] unless ENV['GEM_PATH'].nil?
[ERROR] Gem.paths = env

Workaround: unset GEM_PATH before running mvn

+1. Looking forward to 1.1.2 as I am running into this issue.

use this plugin and you'll be fine:
<plugin>
  <groupId>nl.geodienstencentrum.maven</groupId>
  <artifactId>sass-maven-plugin</artifactId>
  <version>2.5</version>
</plugin>

see http://www.geodienstencentrum.nl/sass-maven-plugin/update-stylesheets-mojo.html

This version is no longer maintained. Refer to more recent forks at https://github.com/Jasig/sass-maven-plugin/network for more up to date versions.

authors: ChristianMurphy dcmoore maxcom yegor256

repo: Jasig/sass-maven-plugin